blob: 6399c932ef6a10dda88cfec443a22f37bc6427f8 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000851EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000897OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000898GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Julien Lerouge3a96a4d2009-10-26 20:00:35 +0000916NO_VARIADIC_MACROS
917NO_MISSING_FIELD_INITIALIZERS
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000918USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000919USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000920HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000921HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000922ALLOCA
923MMAP_FILE
924LLVMCC1
925LLVMCC1PLUS
926LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000927LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000928LLVMGCC_VERSION
929LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000930LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000931SHLIBEXT
932LLVM_PREFIX
933LLVM_BINDIR
934LLVM_LIBDIR
935LLVM_DATADIR
936LLVM_DOCSDIR
937LLVM_ETCDIR
938LLVM_INCLUDEDIR
939LLVM_INFODIR
940LLVM_MANDIR
941LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000942BINDINGS_TO_BUILD
943ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000944OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000945ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000946RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000947RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000948LIBOBJS
949LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000950ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000951 ac_precious_vars='build_alias
952host_alias
953target_alias
954CC
955CFLAGS
956LDFLAGS
957CPPFLAGS
958CPP
959CXX
960CXXFLAGS
961CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000962CXXCPP
963F77
964FFLAGS'
965ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000966projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000967projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000968projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000969projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000970projects/llvm-reopt
971projects/llvm-gcc
972projects/llvm-java
973projects/llvm-tv
974projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000975projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000976projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000977
978# Initialize some variables set by options.
979ac_init_help=
980ac_init_version=false
981# The variables have the same names as the options, with
982# dashes changed to underlines.
983cache_file=/dev/null
984exec_prefix=NONE
985no_create=
986no_recursion=
987prefix=NONE
988program_prefix=NONE
989program_suffix=NONE
990program_transform_name=s,x,x,
991silent=
992site=
993srcdir=
994verbose=
995x_includes=NONE
996x_libraries=NONE
997
998# Installation directory options.
999# These are left unexpanded so users can "make install exec_prefix=/foo"
1000# and all the variables that are supposed to be based on exec_prefix
1001# by default will actually change.
1002# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001003# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001004bindir='${exec_prefix}/bin'
1005sbindir='${exec_prefix}/sbin'
1006libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001007datarootdir='${prefix}/share'
1008datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001009sysconfdir='${prefix}/etc'
1010sharedstatedir='${prefix}/com'
1011localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001012includedir='${prefix}/include'
1013oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015infodir='${datarootdir}/info'
1016htmldir='${docdir}'
1017dvidir='${docdir}'
1018pdfdir='${docdir}'
1019psdir='${docdir}'
1020libdir='${exec_prefix}/lib'
1021localedir='${datarootdir}/locale'
1022mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001023
1024ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001025ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001026for ac_option
1027do
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001030 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001031 ac_prev=
1032 continue
1033 fi
1034
Reid Spencera773bd52006-08-04 18:18:08 +00001035 case $ac_option in
1036 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *) ac_optarg=yes ;;
1038 esac
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1041
Reid Spencera773bd52006-08-04 18:18:08 +00001042 case $ac_dashdash$ac_option in
1043 --)
1044 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001045
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 ac_prev=bindir ;;
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1050
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1055
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1062
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1065
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001067 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001069 datadir=$ac_optarg ;;
1070
Reid Spencera773bd52006-08-04 18:18:08 +00001071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1077
John Criswell7a73b802003-06-30 21:59:07 +00001078 -disable-* | --disable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001085 eval enable_$ac_feature=no ;;
1086
1087 -docdir | --docdir | --docdi | --doc | --do)
1088 ac_prev=docdir ;;
1089 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090 docdir=$ac_optarg ;;
1091
1092 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 ac_prev=dvidir ;;
1094 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001096
1097 -enable-* | --enable-*)
1098 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001100 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001101 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1102 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001103 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001104 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001105
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1114
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1117 with_gas=yes ;;
1118
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1125
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1130
Reid Spencera773bd52006-08-04 18:18:08 +00001131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 ac_prev=htmldir ;;
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 | --ht=*)
1135 htmldir=$ac_optarg ;;
1136
John Criswell7a73b802003-06-30 21:59:07 +00001137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1143
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 ac_prev=infodir ;;
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1148
1149 -libdir | --libdir | --libdi | --libd)
1150 ac_prev=libdir ;;
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1153
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1160
Reid Spencera773bd52006-08-04 18:18:08 +00001161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1165
John Criswell7a73b802003-06-30 21:59:07 +00001166 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001167 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001171 localstatedir=$ac_optarg ;;
1172
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 ac_prev=mandir ;;
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1177
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1180 with_fp=no ;;
1181
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1184 no_create=yes ;;
1185
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 no_recursion=yes ;;
1189
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1198
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 ac_prev=prefix ;;
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1203
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1210
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1217
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1234
Reid Spencera773bd52006-08-04 18:18:08 +00001235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 ac_prev=pdfdir ;;
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1239
1240 -psdir | --psdir | --psdi | --psd | --ps)
1241 ac_prev=psdir ;;
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 psdir=$ac_optarg ;;
1244
John Criswell7a73b802003-06-30 21:59:07 +00001245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 silent=yes ;;
1248
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1254
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1265
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1270
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1275
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1282
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1287
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1290
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1293
1294 -with-* | --with-*)
1295 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001297 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001298 { echo "$as_me: error: invalid package name: $ac_package" >&2
1299 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001300 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001301 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001302
1303 -without-* | --without-*)
1304 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001306 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001307 { echo "$as_me: error: invalid package name: $ac_package" >&2
1308 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001309 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001310 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1315
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1322
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1329
1330 -*) { echo "$as_me: error: unrecognized option: $ac_option
1331Try \`$0 --help' for more information." >&2
1332 { (exit 1); exit 1; }; }
1333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1339 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1340 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001341 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001342 export $ac_envvar ;;
1343
1344 *)
1345 # FIXME: should be removed in autoconf 3.0.
1346 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 ;;
1351
1352 esac
1353done
1354
1355if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 { echo "$as_me: error: missing argument to $ac_option" >&2
1358 { (exit 1); exit 1; }; }
1359fi
1360
Reid Spencera773bd52006-08-04 18:18:08 +00001361# Be sure to have absolute directory names.
1362for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001366do
Reid Spencera773bd52006-08-04 18:18:08 +00001367 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001368 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001371 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001372 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1373 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001374done
1375
1376# There might be people who depend on the old broken behavior: `$host'
1377# used to hold the argument of --host etc.
1378# FIXME: To remove some day.
1379build=$build_alias
1380host=$host_alias
1381target=$target_alias
1382
1383# FIXME: To remove some day.
1384if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388 If a cross compiler is detected then cross compile mode will be used." >&2
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1391 fi
1392fi
1393
1394ac_tool_prefix=
1395test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397test "$silent" = yes && exec 6>/dev/null
1398
1399
Reid Spencera773bd52006-08-04 18:18:08 +00001400ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401ac_ls_di=`ls -di .` &&
1402ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 { echo "$as_me: error: Working directory cannot be determined" >&2
1404 { (exit 1); exit 1; }; }
1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 { echo "$as_me: error: pwd does not report name of working directory" >&2
1407 { (exit 1); exit 1; }; }
1408
1409
John Criswell7a73b802003-06-30 21:59:07 +00001410# Find the source files, if location was not specified.
1411if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001415$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001416 X"$0" : 'X\(//\)[^/]' \| \
1417 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001419echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\).*/{
1433 s//\1/
1434 q
1435 }
1436 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001437 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001438 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001439 srcdir=..
1440 fi
1441else
1442 ac_srcdir_defaulted=no
1443fi
Reid Spencera773bd52006-08-04 18:18:08 +00001444if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001447 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001448fi
Reid Spencera773bd52006-08-04 18:18:08 +00001449ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450ac_abs_confdir=`(
1451 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001452 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001453 pwd)`
1454# When building in place, set srcdir=.
1455if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1457fi
1458# Remove unnecessary trailing slashes from srcdir.
1459# Double slashes in file names in object file debugging info
1460# mess up M-x gdb in Emacs.
1461case $srcdir in
1462*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463esac
1464for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469done
John Criswell7a73b802003-06-30 21:59:07 +00001470
1471#
1472# Report the --help message.
1473#
1474if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001478\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001479
1480Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483VAR=VALUE. See below for descriptions of some of the useful variables.
1484
1485Defaults for the options are specified in brackets.
1486
1487Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497
John Criswell7a73b802003-06-30 21:59:07 +00001498Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001500 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001502 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001503
1504By default, \`make install' will install all the files in
1505\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507for instance \`--prefix=\$HOME'.
1508
1509For better control, use the options below.
1510
1511Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001531_ACEOF
1532
1533 cat <<\_ACEOF
1534
1535System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1539_ACEOF
1540fi
1541
1542if test -n "$ac_init_help"; then
1543 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001544 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001545 esac
1546 cat <<\_ACEOF
1547
1548Optional Features:
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001551 --enable-optimized Compile with optimizations enabled (default is NO)
1552 --enable-profiling Compile with profiling enabled (default is NO)
1553 --enable-assertions Compile with assertion checks enabled (default is
1554 YES)
David Greenea696d242007-06-28 19:36:08 +00001555 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001556 Compile with expensive debug checks enabled (default
1557 is NO)
1558 --enable-debug-runtime Build runtime libs with debug symbols (default is
1559 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001560 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1561 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001563 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001564 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001565 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001566 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001567 --enable-targets Build specific host targets: all or
1568 target1,target2,... Valid targets are: host, x86,
1569 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1570 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1571 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001572 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1573 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001574 --enable-bindings Build specific language bindings:
1575 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001576 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001577 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1578 Win32)
1579 --enable-llvmc-dynamic-plugins
1580 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001581 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001582 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001583 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001584 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001585 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001586 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001587 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001588 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001589 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001594 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1595 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001596 --with-llvmgcc Specify location of llvm-gcc driver (default
1597 searches PATH)
1598 --with-llvmgxx Specify location of llvm-g++ driver (default
1599 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001600 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001601 --with-ocaml-libdir Specify install location for ocaml bindings (default
1602 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001603 --with-binutils-include Specify path to binutils/include/ containing
1604 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001605 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-pic try to use only PIC/non-PIC objects [default=use
1608 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001609 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001610 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001611 --with-oprofile=<prefix>
1612 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001613
1614Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001615 CC C compiler command
1616 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001619 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001621 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001624 CXXCPP C++ preprocessor
1625 F77 Fortran 77 compiler command
1626 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628Use these variables to override the choices made by `configure' or to help
1629it to find libraries and programs with nonstandard names/locations.
1630
1631Report bugs to <llvmbugs@cs.uiuc.edu>.
1632_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001633ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001634fi
1635
1636if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001639 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001640 ac_builddir=.
1641
Reid Spencera773bd52006-08-04 18:18:08 +00001642case "$ac_dir" in
1643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644*)
John Criswell7a73b802003-06-30 21:59:07 +00001645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652esac
1653ac_abs_top_builddir=$ac_pwd
1654ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655# for backward compatibility:
1656ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001657
1658case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001659 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001660 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001664 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001671esac
Reid Spencera773bd52006-08-04 18:18:08 +00001672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001673
Reid Spencera773bd52006-08-04 18:18:08 +00001674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001682 else
1683 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001686 done
1687fi
1688
Reid Spencera773bd52006-08-04 18:18:08 +00001689test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001690if $ac_init_version; then
1691 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001692llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001693generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001694
Reid Spencera773bd52006-08-04 18:18:08 +00001695Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001699
Tanya Lattnerc2264592009-08-22 21:01:26 +00001700Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001701_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001702 exit
John Criswell7a73b802003-06-30 21:59:07 +00001703fi
Reid Spencera773bd52006-08-04 18:18:08 +00001704cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001705This file contains any messages produced by compilers while
1706running configure, to aid debugging if configure makes a mistake.
1707
Tanya Lattner953042b2009-08-22 04:37:30 +00001708It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001709generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001710
1711 $ $0 $@
1712
1713_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001714exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001715{
1716cat <<_ASUNAME
1717## --------- ##
1718## Platform. ##
1719## --------- ##
1720
1721hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726
1727/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1729
1730/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001733/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001734/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1737
1738_ASUNAME
1739
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 echo "PATH: $as_dir"
1746done
Reid Spencera773bd52006-08-04 18:18:08 +00001747IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001748
1749} >&5
1750
1751cat >&5 <<_ACEOF
1752
1753
1754## ----------- ##
1755## Core tests. ##
1756## ----------- ##
1757
1758_ACEOF
1759
1760
1761# Keep a trace of the command line.
1762# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001764# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001765# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001766ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001767ac_configure_args0=
1768ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001769ac_must_keep_next=false
1770for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001771do
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 for ac_arg
1773 do
1774 case $ac_arg in
1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777 | -silent | --silent | --silen | --sile | --sil)
1778 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001779 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001780 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 case $ac_pass in
1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1784 2)
1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001787 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001789 case $ac_arg in
1790 *=* | --config-cache | -C | -disable-* | --disable-* \
1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793 | -with-* | --with-* | -without-* | --without-* | --x)
1794 case "$ac_configure_args0 " in
1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796 esac
1797 ;;
1798 -* ) ac_must_keep_next=true ;;
1799 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001801 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ;;
1803 esac
1804 done
John Criswell7a73b802003-06-30 21:59:07 +00001805done
John Criswell0c38eaf2003-09-10 15:17:25 +00001806$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807$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 +00001808
1809# When interrupted or exit'd, cleanup temporary files, and complete
1810# config.log. We remove comments because anyway the quotes in there
1811# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001812# WARNING: Use '\'' to represent an apostrophe within the trap.
1813# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001814trap 'exit_status=$?
1815 # Save into config.log some information that might help in debugging.
1816 {
1817 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001818
John Criswell7a73b802003-06-30 21:59:07 +00001819 cat <<\_ASBOX
1820## ---------------- ##
1821## Cache variables. ##
1822## ---------------- ##
1823_ASBOX
1824 echo
1825 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001826(
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in #(
1830 *${as_nl}*)
1831 case $ac_var in #(
1832 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1833echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834 esac
1835 case $ac_var in #(
1836 _ | IFS | as_nl) ;; #(
1837 *) $as_unset $ac_var ;;
1838 esac ;;
1839 esac
1840 done
John Criswell7a73b802003-06-30 21:59:07 +00001841 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001844 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001845 "s/'\''/'\''\\\\'\'''\''/g;
1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001848 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001851 esac |
1852 sort
1853)
John Criswell7a73b802003-06-30 21:59:07 +00001854 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001855
1856 cat <<\_ASBOX
1857## ----------------- ##
1858## Output variables. ##
1859## ----------------- ##
1860_ASBOX
1861 echo
1862 for ac_var in $ac_subst_vars
1863 do
Reid Spencera773bd52006-08-04 18:18:08 +00001864 eval ac_val=\$$ac_var
1865 case $ac_val in
1866 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 esac
1868 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001869 done | sort
1870 echo
1871
1872 if test -n "$ac_subst_files"; then
1873 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001874## ------------------- ##
1875## File substitutions. ##
1876## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001877_ASBOX
1878 echo
1879 for ac_var in $ac_subst_files
1880 do
Reid Spencera773bd52006-08-04 18:18:08 +00001881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001886 done | sort
1887 echo
1888 fi
1889
John Criswell7a73b802003-06-30 21:59:07 +00001890 if test -s confdefs.h; then
1891 cat <<\_ASBOX
1892## ----------- ##
1893## confdefs.h. ##
1894## ----------- ##
1895_ASBOX
1896 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001897 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001898 echo
1899 fi
1900 test "$ac_signal" != 0 &&
1901 echo "$as_me: caught signal $ac_signal"
1902 echo "$as_me: exit $exit_status"
1903 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001904 rm -f core *.core core.conftest.* &&
1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001906 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001907' 0
John Criswell7a73b802003-06-30 21:59:07 +00001908for ac_signal in 1 2 13 15; do
1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910done
1911ac_signal=0
1912
1913# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001914rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001915
1916# Predefined preprocessor variables.
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_NAME "$PACKAGE_NAME"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_VERSION "$PACKAGE_VERSION"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_STRING "$PACKAGE_STRING"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940_ACEOF
1941
1942
1943# Let the site file select an alternate cache file if it wants to.
1944# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001945if test -n "$CONFIG_SITE"; then
1946 set x "$CONFIG_SITE"
1947elif test "x$prefix" != xNONE; then
1948 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1949else
1950 set x "$ac_default_prefix/share/config.site" \
1951 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001952fi
Reid Spencera773bd52006-08-04 18:18:08 +00001953shift
1954for ac_site_file
1955do
John Criswell7a73b802003-06-30 21:59:07 +00001956 if test -r "$ac_site_file"; then
1957 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1958echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1960 . "$ac_site_file"
1961 fi
1962done
1963
1964if test -r "$cache_file"; then
1965 # Some versions of bash will fail to source /dev/null (special
1966 # files actually), so we avoid doing that.
1967 if test -f "$cache_file"; then
1968 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1969echo "$as_me: loading cache $cache_file" >&6;}
1970 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001973 esac
1974 fi
1975else
1976 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1977echo "$as_me: creating cache $cache_file" >&6;}
1978 >$cache_file
1979fi
1980
1981# Check that the precious variables saved in the cache have kept the same
1982# value.
1983ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001984for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001989 case $ac_old_set,$ac_new_set in
1990 set,)
1991 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,set)
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1996echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1998 ,);;
1999 *)
2000 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002001 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002002echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002003 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002004echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002005 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002006echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002007 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002008 fi;;
2009 esac
2010 # Pass precious variables to config.status.
2011 if test "$ac_new_set" = set; then
2012 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002013 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002014 *) ac_arg=$ac_var=$ac_new_val ;;
2015 esac
2016 case " $ac_configure_args " in
2017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2018 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2019 esac
2020 fi
2021done
2022if $ac_cache_corrupted; then
2023 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2024echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2025 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2026echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2027 { (exit 1); exit 1; }; }
2028fi
2029
Reid Spencera773bd52006-08-04 18:18:08 +00002030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
John Criswell7a73b802003-06-30 21:59:07 +00002054ac_ext=c
2055ac_cpp='$CPP $CPPFLAGS'
2056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058ac_compiler_gnu=$ac_cv_c_compiler_gnu
2059
2060
2061
Tanya Lattnerc2264592009-08-22 21:01:26 +00002062LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063
2064
2065
2066
2067
2068
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002071for ac_dir in autoconf "$srcdir"/autoconf; do
2072 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/install-sh -c"
2075 break
Reid Spencera773bd52006-08-04 18:18:08 +00002076 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/install.sh -c"
2079 break
Reid Spencera773bd52006-08-04 18:18:08 +00002080 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/shtool install -c"
2083 break
2084 fi
2085done
2086if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002087 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2088echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002089 { (exit 1); exit 1; }; }
2090fi
Reid Spencera773bd52006-08-04 18:18:08 +00002091
2092# These three variables are undocumented and unsupported,
2093# and are intended to be withdrawn in a future Autoconf release.
2094# They can cause serious problems if a builder's source tree is in a directory
2095# whose full name contains unusual characters.
2096ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2099
John Criswell7a73b802003-06-30 21:59:07 +00002100
John Criswell392aaa32003-07-22 19:18:09 +00002101
Reid Spencer2706f8c2004-09-19 23:53:36 +00002102if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002103 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2104 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002105echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2106 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002107 fi
John Criswell93e1c722003-09-15 17:04:06 +00002108fi
2109
John Criswell33a911a2003-11-25 20:36:46 +00002110for i in `ls ${srcdir}/projects`
2111do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 if test -d ${srcdir}/projects/${i} ; then
2113 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 CVS) ;;
2115 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002118 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002121 # llvm-test is the old name of the test-suite, kept here for backwards
2122 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002123 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002125 test-suite) subdirs="$subdirs projects/test-suite"
2126 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002132 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002133 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002134 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002135 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002136 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002137 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002138 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002139 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002140 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002141 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002142 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2143echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002144 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002145 esac
John Criswell33a911a2003-11-25 20:36:46 +00002146 fi
2147done
John Criswell559a6c12003-09-30 16:31:48 +00002148
John Criswell7a73b802003-06-30 21:59:07 +00002149
2150# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002151$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2152 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2153echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002154 { (exit 1); exit 1; }; }
2155
Reid Spencera773bd52006-08-04 18:18:08 +00002156{ echo "$as_me:$LINENO: checking build system type" >&5
2157echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002158if test "${ac_cv_build+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
Reid Spencera773bd52006-08-04 18:18:08 +00002161 ac_build_alias=$build_alias
2162test "x$ac_build_alias" = x &&
2163 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2164test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002165 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2166echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2167 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002168ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2169 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2170echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002171 { (exit 1); exit 1; }; }
2172
2173fi
Reid Spencera773bd52006-08-04 18:18:08 +00002174{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2175echo "${ECHO_T}$ac_cv_build" >&6; }
2176case $ac_cv_build in
2177*-*-*) ;;
2178*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2179echo "$as_me: error: invalid value of canonical build" >&2;}
2180 { (exit 1); exit 1; }; };;
2181esac
John Criswell7a73b802003-06-30 21:59:07 +00002182build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002183ac_save_IFS=$IFS; IFS='-'
2184set x $ac_cv_build
2185shift
2186build_cpu=$1
2187build_vendor=$2
2188shift; shift
2189# Remember, the first character of IFS is used to create $*,
2190# except with old shells:
2191build_os=$*
2192IFS=$ac_save_IFS
2193case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002194
2195
Reid Spencera773bd52006-08-04 18:18:08 +00002196{ echo "$as_me:$LINENO: checking host system type" >&5
2197echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002198if test "${ac_cv_host+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
Reid Spencera773bd52006-08-04 18:18:08 +00002201 if test "x$host_alias" = x; then
2202 ac_cv_host=$ac_cv_build
2203else
2204 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2205 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2206echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002207 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002208fi
John Criswell7a73b802003-06-30 21:59:07 +00002209
2210fi
Reid Spencera773bd52006-08-04 18:18:08 +00002211{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2212echo "${ECHO_T}$ac_cv_host" >&6; }
2213case $ac_cv_host in
2214*-*-*) ;;
2215*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2216echo "$as_me: error: invalid value of canonical host" >&2;}
2217 { (exit 1); exit 1; }; };;
2218esac
John Criswell7a73b802003-06-30 21:59:07 +00002219host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002220ac_save_IFS=$IFS; IFS='-'
2221set x $ac_cv_host
2222shift
2223host_cpu=$1
2224host_vendor=$2
2225shift; shift
2226# Remember, the first character of IFS is used to create $*,
2227# except with old shells:
2228host_os=$*
2229IFS=$ac_save_IFS
2230case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002231
2232
Reid Spencera773bd52006-08-04 18:18:08 +00002233{ echo "$as_me:$LINENO: checking target system type" >&5
2234echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002235if test "${ac_cv_target+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
Reid Spencera773bd52006-08-04 18:18:08 +00002238 if test "x$target_alias" = x; then
2239 ac_cv_target=$ac_cv_host
2240else
2241 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2242 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2243echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002245fi
John Criswell7a73b802003-06-30 21:59:07 +00002246
2247fi
Reid Spencera773bd52006-08-04 18:18:08 +00002248{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2249echo "${ECHO_T}$ac_cv_target" >&6; }
2250case $ac_cv_target in
2251*-*-*) ;;
2252*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2253echo "$as_me: error: invalid value of canonical target" >&2;}
2254 { (exit 1); exit 1; }; };;
2255esac
John Criswell7a73b802003-06-30 21:59:07 +00002256target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002257ac_save_IFS=$IFS; IFS='-'
2258set x $ac_cv_target
2259shift
2260target_cpu=$1
2261target_vendor=$2
2262shift; shift
2263# Remember, the first character of IFS is used to create $*,
2264# except with old shells:
2265target_os=$*
2266IFS=$ac_save_IFS
2267case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002268
2269
2270# The aliases save the names the user supplied, while $host etc.
2271# will get canonicalized.
2272test -n "$target_alias" &&
2273 test "$program_prefix$program_suffix$program_transform_name" = \
2274 NONENONEs,x,x, &&
2275 program_prefix=${target_alias}-
2276
Reid Spencera773bd52006-08-04 18:18:08 +00002277{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2278echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002282 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="AIX"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002288 *-*-irix*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="IRIX"
2292 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Cygwin"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002300 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Darwin"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="FreeBSD"
2307 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002308 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002311 llvm_cv_os_type="OpenBSD"
2312 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002313 *-*-netbsd*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="NetBSD"
2317 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002318 *-*-dragonfly*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="DragonFly"
2322 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002323 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002326 llvm_cv_os_type="HP-UX"
2327 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="Interix"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 llvm_cv_os_type="Linux"
2337 llvm_cv_platform_type="Unix" ;;
2338 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002339 llvm_cv_link_all_option="-Wl,-z,allextract"
2340 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341 llvm_cv_os_type="SunOS"
2342 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002343 *-*-auroraux*)
2344 llvm_cv_link_all_option="-Wl,-z,allextract"
2345 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2346 llvm_cv_os_type="AuroraUX"
2347 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002349 llvm_cv_link_all_option="-Wl,--whole-archive"
2350 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351 llvm_cv_os_type="Win32"
2352 llvm_cv_platform_type="Win32" ;;
2353 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002356 llvm_cv_os_type="MingW"
2357 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002358 *-*-haiku*)
2359 llvm_cv_link_all_option="-Wl,--whole-archive"
2360 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2361 llvm_cv_os_type="Haiku"
2362 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002363 *-unknown-eabi*)
2364 llvm_cv_link_all_option="-Wl,--whole-archive"
2365 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2366 llvm_cv_os_type="Freestanding"
2367 llvm_cv_platform_type="Unix" ;;
2368 *-unknown-elf*)
2369 llvm_cv_link_all_option="-Wl,--whole-archive"
2370 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2371 llvm_cv_os_type="Freestanding"
2372 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002374 llvm_cv_link_all_option=""
2375 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002376 llvm_cv_os_type="Unknown"
2377 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002378esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379fi
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2381echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002382
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002383{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2384echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2385if test "${llvm_cv_target_os_type+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388 case $target in
2389 *-*-aix*)
2390 llvm_cv_target_os_type="AIX" ;;
2391 *-*-irix*)
2392 llvm_cv_target_os_type="IRIX" ;;
2393 *-*-cygwin*)
2394 llvm_cv_target_os_type="Cygwin" ;;
2395 *-*-darwin*)
2396 llvm_cv_target_os_type="Darwin" ;;
2397 *-*-freebsd*)
2398 llvm_cv_target_os_type="FreeBSD" ;;
2399 *-*-openbsd*)
2400 llvm_cv_target_os_type="OpenBSD" ;;
2401 *-*-netbsd*)
2402 llvm_cv_target_os_type="NetBSD" ;;
2403 *-*-dragonfly*)
2404 llvm_cv_target_os_type="DragonFly" ;;
2405 *-*-hpux*)
2406 llvm_cv_target_os_type="HP-UX" ;;
2407 *-*-interix*)
2408 llvm_cv_target_os_type="Interix" ;;
2409 *-*-linux*)
2410 llvm_cv_target_os_type="Linux" ;;
2411 *-*-solaris*)
2412 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002413 *-*-auroraux*)
2414 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002415 *-*-win32*)
2416 llvm_cv_target_os_type="Win32" ;;
2417 *-*-mingw*)
2418 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002419 *-*-haiku*)
2420 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002421 *-unknown-eabi*)
2422 llvm_cv_target_os_type="Freestanding" ;;
2423 *)
2424 llvm_cv_target_os_type="Unknown" ;;
2425esac
2426fi
2427{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2428echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2429
Reid Spencer7b3e8512004-12-24 06:29:05 +00002430if test "$llvm_cv_os_type" = "Unknown" ; then
2431 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2432echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002433 { (exit 1); exit 1; }; }
2434fi
2435
Reid Spencer7b3e8512004-12-24 06:29:05 +00002436OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002438HOST_OS=$llvm_cv_os_type
2439
2440TARGET_OS=$llvm_cv_target_os_type
2441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442
Reid Spencera773bd52006-08-04 18:18:08 +00002443LINKALL=$llvm_cv_link_all_option
2444
2445NOLINKALL=$llvm_cv_no_link_all_option
2446
2447
Reid Spencer7b3e8512004-12-24 06:29:05 +00002448case $llvm_cv_platform_type in
2449 Unix)
2450
2451cat >>confdefs.h <<\_ACEOF
2452#define LLVM_ON_UNIX 1
2453_ACEOF
2454
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002455 LLVM_ON_UNIX=1
2456
2457 LLVM_ON_WIN32=0
2458
Reid Spencer7b3e8512004-12-24 06:29:05 +00002459 ;;
2460 Win32)
2461
2462cat >>confdefs.h <<\_ACEOF
2463#define LLVM_ON_WIN32 1
2464_ACEOF
2465
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002466 LLVM_ON_UNIX=0
2467
2468 LLVM_ON_WIN32=1
2469
Reid Spencer7b3e8512004-12-24 06:29:05 +00002470 ;;
2471esac
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473{ echo "$as_me:$LINENO: checking target architecture" >&5
2474echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475if test "${llvm_cv_target_arch+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002479 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002480 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002481 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2482 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002483 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002484 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002485 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002486 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002487 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002488 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002489 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002490 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002491 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002492esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493fi
Reid Spencera773bd52006-08-04 18:18:08 +00002494{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2495echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497if test "$llvm_cv_target_arch" = "Unknown" ; then
2498 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2499echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2500fi
John Criswell76595452003-07-01 22:07:39 +00002501
Nick Lewycky83fc4472009-09-29 05:48:51 +00002502# Determine the LLVM native architecture for the target
2503case "$llvm_cv_target_arch" in
2504 x86) LLVM_NATIVE_ARCH="X86" ;;
2505 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2506 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2507esac
2508
2509ARCH=$llvm_cv_target_arch
2510
2511
2512ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513ac_cpp='$CPP $CPPFLAGS'
2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002517if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2519set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002534 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 +00002535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539done
2540done
Reid Spencera773bd52006-08-04 18:18:08 +00002541IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542
2543fi
2544fi
2545CC=$ac_cv_prog_CC
2546if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002547 { echo "$as_me:$LINENO: result: $CC" >&5
2548echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549else
Reid Spencera773bd52006-08-04 18:18:08 +00002550 { echo "$as_me:$LINENO: result: no" >&5
2551echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552fi
2553
Reid Spencera773bd52006-08-04 18:18:08 +00002554
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002555fi
2556if test -z "$ac_cv_prog_CC"; then
2557 ac_ct_CC=$CC
2558 # Extract the first word of "gcc", so it can be a program name with args.
2559set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002574 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 +00002575 ac_cv_prog_ac_ct_CC="gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580done
Reid Spencera773bd52006-08-04 18:18:08 +00002581IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582
2583fi
2584fi
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589else
Reid Spencera773bd52006-08-04 18:18:08 +00002590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592fi
2593
Reid Spencera773bd52006-08-04 18:18:08 +00002594 if test "x$ac_ct_CC" = x; then
2595 CC=""
2596 else
2597 case $cross_compiling:$ac_tool_warned in
2598yes:)
2599{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2600whose name does not start with the host triplet. If you think this
2601configuration is useful to you, please write to autoconf@gnu.org." >&5
2602echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2603whose name does not start with the host triplet. If you think this
2604configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2605ac_tool_warned=yes ;;
2606esac
2607 CC=$ac_ct_CC
2608 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609else
2610 CC="$ac_cv_prog_CC"
2611fi
2612
2613if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002614 if test -n "$ac_tool_prefix"; then
2615 # 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 +00002616set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619if test "${ac_cv_prog_CC+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002631 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 +00002632 ac_cv_prog_CC="${ac_tool_prefix}cc"
2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636done
2637done
Reid Spencera773bd52006-08-04 18:18:08 +00002638IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002644 { echo "$as_me:$LINENO: result: $CC" >&5
2645echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646else
Reid Spencera773bd52006-08-04 18:18:08 +00002647 { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649fi
2650
Reid Spencera773bd52006-08-04 18:18:08 +00002651
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653fi
2654if test -z "$CC"; then
2655 # Extract the first word of "cc", so it can be a program name with args.
2656set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659if test "${ac_cv_prog_CC+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665 ac_prog_rejected=no
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002672 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 +00002673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2674 ac_prog_rejected=yes
2675 continue
2676 fi
2677 ac_cv_prog_CC="cc"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681done
2682done
Reid Spencera773bd52006-08-04 18:18:08 +00002683IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684
2685if test $ac_prog_rejected = yes; then
2686 # We found a bogon in the path, so make sure we never use it.
2687 set dummy $ac_cv_prog_CC
2688 shift
2689 if test $# != 0; then
2690 # We chose a different compiler from the bogus one.
2691 # However, it has the same basename, so the bogon will be chosen
2692 # first if we set CC to just the basename; use the full file name.
2693 shift
2694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2695 fi
2696fi
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002701 { echo "$as_me:$LINENO: result: $CC" >&5
2702echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703else
Reid Spencera773bd52006-08-04 18:18:08 +00002704 { echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706fi
2707
Reid Spencera773bd52006-08-04 18:18:08 +00002708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709fi
2710if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002712 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002713 do
2714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002718if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002730 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 +00002731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736done
Reid Spencera773bd52006-08-04 18:18:08 +00002737IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002738
2739fi
2740fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741CC=$ac_cv_prog_CC
2742if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002743 { echo "$as_me:$LINENO: result: $CC" >&5
2744echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002745else
Reid Spencera773bd52006-08-04 18:18:08 +00002746 { echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002748fi
2749
Reid Spencera773bd52006-08-04 18:18:08 +00002750
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002752 done
2753fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754if test -z "$CC"; then
2755 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002756 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002757do
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002762if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002774 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 +00002775 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
2780done
Reid Spencera773bd52006-08-04 18:18:08 +00002781IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002782
2783fi
2784fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002785ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002787 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2788echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002789else
Reid Spencera773bd52006-08-04 18:18:08 +00002790 { echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002792fi
2793
Reid Spencera773bd52006-08-04 18:18:08 +00002794
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002795 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002796done
John Criswell7a73b802003-06-30 21:59:07 +00002797
Reid Spencera773bd52006-08-04 18:18:08 +00002798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802yes:)
2803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2804whose name does not start with the host triplet. If you think this
2805configuration is useful to you, please write to autoconf@gnu.org." >&5
2806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2807whose name does not start with the host triplet. If you think this
2808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2809ac_tool_warned=yes ;;
2810esac
2811 CC=$ac_ct_CC
2812 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002813fi
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815fi
2816
2817
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002818test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2819See \`config.log' for more details." >&5
2820echo "$as_me: error: no acceptable C compiler found in \$PATH
2821See \`config.log' for more details." >&2;}
2822 { (exit 1); exit 1; }; }
2823
John Criswell7a73b802003-06-30 21:59:07 +00002824# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002825echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002826ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002827{ (ac_try="$ac_compiler --version >&5"
2828case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
2832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002837{ (ac_try="$ac_compiler -v >&5"
2838case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002847{ (ac_try="$ac_compiler -V >&5"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
2852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857
2858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002864
John Criswell7a73b802003-06-30 21:59:07 +00002865int
2866main ()
2867{
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002874ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002875# Try to create an executable without -o first, disregard a.out.
2876# It will help us diagnose broken compilers, and finding out an intuition
2877# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002878{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2879echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002880ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002881#
2882# List of possible output files, starting from the most likely.
2883# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2884# only as a last resort. b.out is created by i960 compilers.
2885ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2886#
2887# The IRIX 6 linker writes into existing files which may not be
2888# executable, retaining their permissions. Remove them first so a
2889# subsequent execution test works.
2890ac_rmfiles=
2891for ac_file in $ac_files
2892do
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2896 esac
2897done
2898rm -f $ac_rmfiles
2899
2900if { (ac_try="$ac_link_default"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2911# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2912# in a Makefile. We should not override ac_cv_exeext if it was cached,
2913# so that the user can short-circuit this test for compilers unknown to
2914# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002915for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002916do
2917 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002918 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002920 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002921 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002922 # We found the default executable, but exeext='' is most
2923 # certainly right.
2924 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002925 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2927 then :; else
2928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 fi
2930 # We set ac_cv_exeext here because the later test for it is not
2931 # safe: cross compilers may not add the suffix if given an `-o'
2932 # argument, so we may need to know it at that point already.
2933 # Even if this section looks crufty: it has the advantage of
2934 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002936 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002937 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 esac
2939done
Reid Spencera773bd52006-08-04 18:18:08 +00002940test "$ac_cv_exeext" = no && ac_cv_exeext=
2941
John Criswell7a73b802003-06-30 21:59:07 +00002942else
2943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002944sed 's/^/| /' conftest.$ac_ext >&5
2945
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002946{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002947See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002948echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002949See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002950 { (exit 77); exit 77; }; }
2951fi
2952
2953ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002954{ echo "$as_me:$LINENO: result: $ac_file" >&5
2955echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002956
Reid Spencera773bd52006-08-04 18:18:08 +00002957# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002958# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002959{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2960echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2962# If not cross compiling, check that we can run a simple program.
2963if test "$cross_compiling" != yes; then
2964 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002980If you meant to cross compile, use \`--host'.
2981See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002983If you meant to cross compile, use \`--host'.
2984See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002985 { (exit 1); exit 1; }; }
2986 fi
2987 fi
2988fi
Reid Spencera773bd52006-08-04 18:18:08 +00002989{ echo "$as_me:$LINENO: result: yes" >&5
2990echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002991
John Criswell0c38eaf2003-09-10 15:17:25 +00002992rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002993ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002994# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002995# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002996{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2998{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003000
Reid Spencera773bd52006-08-04 18:18:08 +00003001{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3003if { (ac_try="$ac_link"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; then
3013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3015# work properly (i.e., refer to `conftest.exe'), while it won't with
3016# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003017for ac_file in conftest.exe conftest conftest.*; do
3018 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003019 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003022 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003023 * ) break;;
3024 esac
3025done
3026else
John Criswell0c38eaf2003-09-10 15:17:25 +00003027 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028See \`config.log' for more details." >&5
3029echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003031 { (exit 1); exit 1; }; }
3032fi
3033
3034rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003035{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038rm -f conftest.$ac_ext
3039EXEEXT=$ac_cv_exeext
3040ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003041{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003043if test "${ac_cv_objext+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003052
John Criswell7a73b802003-06-30 21:59:07 +00003053int
3054main ()
3055{
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003062if { (ac_try="$ac_compile"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003074 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079done
3080else
3081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085See \`config.log' for more details." >&5
3086echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003088 { (exit 1); exit 1; }; }
3089fi
3090
3091rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092fi
Reid Spencera773bd52006-08-04 18:18:08 +00003093{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003095OBJEXT=$ac_cv_objext
3096ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003097{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003099if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003108
John Criswell7a73b802003-06-30 21:59:07 +00003109int
3110main ()
3111{
3112#ifndef __GNUC__
3113 choke me
3114#endif
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003128 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003154 ac_compiler_gnu=yes
3155else
3156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003157sed 's/^/| /' conftest.$ac_ext >&5
3158
Reid Spencera773bd52006-08-04 18:18:08 +00003159 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003160fi
Reid Spencera773bd52006-08-04 18:18:08 +00003161
3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003163ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003164
3165fi
Reid Spencera773bd52006-08-04 18:18:08 +00003166{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3167echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003168GCC=`test $ac_compiler_gnu = yes && echo yes`
3169ac_test_CFLAGS=${CFLAGS+set}
3170ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003171{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3172echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003173if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
Reid Spencera773bd52006-08-04 18:18:08 +00003176 ac_save_c_werror_flag=$ac_c_werror_flag
3177 ac_c_werror_flag=yes
3178 ac_cv_prog_cc_g=no
3179 CFLAGS="-g"
3180 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003186
John Criswell7a73b802003-06-30 21:59:07 +00003187int
3188main ()
3189{
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003230else
3231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003232sed 's/^/| /' conftest.$ac_ext >&5
3233
Reid Spencera773bd52006-08-04 18:18:08 +00003234 CFLAGS=""
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250rm -f conftest.$ac_objext
3251if { (ac_try="$ac_compile"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
3269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003284 :
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 ac_c_werror_flag=$ac_save_c_werror_flag
3290 CFLAGS="-g"
3291 cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (ac_try="$ac_compile"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3321 { (case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_try") 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003340 ac_cv_prog_cc_g=yes
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
John Criswell7a73b802003-06-30 21:59:07 +00003346fi
Reid Spencera773bd52006-08-04 18:18:08 +00003347
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003349fi
Reid Spencera773bd52006-08-04 18:18:08 +00003350
3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352fi
3353
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3356fi
3357{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3358echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359if test "$ac_test_CFLAGS" = set; then
3360 CFLAGS=$ac_save_CFLAGS
3361elif test $ac_cv_prog_cc_g = yes; then
3362 if test "$GCC" = yes; then
3363 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003364 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003366 fi
3367else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368 if test "$GCC" = yes; then
3369 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003370 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003372 fi
3373fi
Reid Spencera773bd52006-08-04 18:18:08 +00003374{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3375echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3376if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
Reid Spencera773bd52006-08-04 18:18:08 +00003379 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380ac_save_CC=$CC
3381cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h. */
3387#include <stdarg.h>
3388#include <stdio.h>
3389#include <sys/types.h>
3390#include <sys/stat.h>
3391/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392struct buf { int x; };
3393FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394static char *e (p, i)
3395 char **p;
3396 int i;
3397{
3398 return p[i];
3399}
3400static char *f (char * (*g) (char **, int), char **p, ...)
3401{
3402 char *s;
3403 va_list v;
3404 va_start (v,p);
3405 s = g (p, va_arg (v,int));
3406 va_end (v);
3407 return s;
3408}
3409
3410/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003413 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003416 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3418
Reid Spencera773bd52006-08-04 18:18:08 +00003419/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3421#define FOO(x) 'x'
3422int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424int test (int i, double x);
3425struct s1 {int (*f) (int a);};
3426struct s2 {int (*f) (double a);};
3427int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3428int argc;
3429char **argv;
3430int
3431main ()
3432{
3433return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3434 ;
3435 return 0;
3436}
3437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003438for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440do
3441 CC="$ac_save_CC $ac_arg"
3442 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003443if { (ac_try="$ac_compile"
3444case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_try") 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003476 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
Reid Spencera773bd52006-08-04 18:18:08 +00003481
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482fi
Reid Spencera773bd52006-08-04 18:18:08 +00003483
3484rm -f core conftest.err conftest.$ac_objext
3485 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003486done
Reid Spencera773bd52006-08-04 18:18:08 +00003487rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003488CC=$ac_save_CC
3489
3490fi
Reid Spencera773bd52006-08-04 18:18:08 +00003491# AC_CACHE_VAL
3492case "x$ac_cv_prog_cc_c89" in
3493 x)
3494 { echo "$as_me:$LINENO: result: none needed" >&5
3495echo "${ECHO_T}none needed" >&6; } ;;
3496 xno)
3497 { echo "$as_me:$LINENO: result: unsupported" >&5
3498echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003500 CC="$CC $ac_cv_prog_cc_c89"
3501 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3502echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503esac
3504
John Criswell0c38eaf2003-09-10 15:17:25 +00003505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003518{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3519echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003520# On Suns, sometimes $CPP names a directory.
3521if test -n "$CPP" && test -d "$CPP"; then
3522 CPP=
3523fi
3524if test -z "$CPP"; then
3525 if test "${ac_cv_prog_CPP+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528 # Double quotes because CPP needs to be expanded
3529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3530 do
3531 ac_preproc_ok=false
3532for ac_c_preproc_warn_flag in '' yes
3533do
3534 # Use a header file that comes with gcc, so configuring glibc
3535 # with a fresh cross-compiler works.
3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537 # <limits.h> exists even on freestanding compilers.
3538 # On the NeXT, cc -E runs the code through the compiler's parser,
3539 # not just through cpp. "Syntax error" is here to catch this case.
3540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546#ifdef __STDC__
3547# include <limits.h>
3548#else
3549# include <assert.h>
3550#endif
3551 Syntax error
3552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003553if { (ac_try="$ac_cpp conftest.$ac_ext"
3554case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_c_preproc_warn_flag
3568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 else
3570 ac_cpp_err=
3571 fi
3572else
3573 ac_cpp_err=yes
3574fi
3575if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576 :
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 # Broken: fails on valid input.
3582continue
3583fi
Reid Spencera773bd52006-08-04 18:18:08 +00003584
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585rm -f conftest.err conftest.$ac_ext
3586
Reid Spencera773bd52006-08-04 18:18:08 +00003587 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 # can be detected and how.
3589 cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h. */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h. */
3595#include <ac_nonexistent.h>
3596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003597if { (ac_try="$ac_cpp conftest.$ac_ext"
3598case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601esac
3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 else
3614 ac_cpp_err=
3615 fi
3616else
3617 ac_cpp_err=yes
3618fi
3619if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Broken: success on invalid input.
3621continue
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 # Passes both tests.
3627ac_preproc_ok=:
3628break
3629fi
Reid Spencera773bd52006-08-04 18:18:08 +00003630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637 break
3638fi
3639
3640 done
3641 ac_cv_prog_CPP=$CPP
3642
3643fi
3644 CPP=$ac_cv_prog_CPP
3645else
3646 ac_cv_prog_CPP=$CPP
3647fi
Reid Spencera773bd52006-08-04 18:18:08 +00003648{ echo "$as_me:$LINENO: result: $CPP" >&5
3649echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003650ac_preproc_ok=false
3651for ac_c_preproc_warn_flag in '' yes
3652do
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656 # <limits.h> exists even on freestanding compilers.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp. "Syntax error" is here to catch this case.
3659 cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670 Syntax error
3671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003672if { (ac_try="$ac_cpp conftest.$ac_ext"
3673case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676esac
3677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003684 (exit $ac_status); } >/dev/null; then
3685 if test -s conftest.err; then
3686 ac_cpp_err=$ac_c_preproc_warn_flag
3687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3688 else
3689 ac_cpp_err=
3690 fi
3691else
3692 ac_cpp_err=yes
3693fi
3694if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003695 :
3696else
3697 echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 # Broken: fails on valid input.
3701continue
3702fi
Reid Spencera773bd52006-08-04 18:18:08 +00003703
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003704rm -f conftest.err conftest.$ac_ext
3705
Reid Spencera773bd52006-08-04 18:18:08 +00003706 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003707 # can be detected and how.
3708 cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714#include <ac_nonexistent.h>
3715_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003716if { (ac_try="$ac_cpp conftest.$ac_ext"
3717case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3734 fi
3735else
3736 ac_cpp_err=yes
3737fi
3738if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003739 # Broken: success on invalid input.
3740continue
3741else
3742 echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 # Passes both tests.
3746ac_preproc_ok=:
3747break
3748fi
Reid Spencera773bd52006-08-04 18:18:08 +00003749
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003750rm -f conftest.err conftest.$ac_ext
3751
3752done
3753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754rm -f conftest.err conftest.$ac_ext
3755if $ac_preproc_ok; then
3756 :
3757else
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3759See \`config.log' for more details." >&5
3760echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3761See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3763fi
3764
John Criswell7a73b802003-06-30 21:59:07 +00003765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
John Criswell7a73b802003-06-30 21:59:07 +00003771
Reid Spencera773bd52006-08-04 18:18:08 +00003772{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3773echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003774if test "${ac_cv_path_GREP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
Reid Spencera773bd52006-08-04 18:18:08 +00003777 # Extract the first word of "grep ggrep" to use in msg output
3778if test -z "$GREP"; then
3779set dummy grep ggrep; ac_prog_name=$2
3780if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
Reid Spencera773bd52006-08-04 18:18:08 +00003783 ac_path_GREP_found=false
3784# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003790 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003791 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003792 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003793 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003794 # Check for GNU ac_path_GREP and select it if it is found.
3795 # Check for GNU $ac_path_GREP
3796case `"$ac_path_GREP" --version 2>&1` in
3797*GNU*)
3798 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799*)
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'GREP' >> "conftest.nl"
3808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_GREP="$ac_path_GREP"
3814 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003815 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
3822
3823 $ac_path_GREP_found && break 3
3824 done
3825done
3826
3827done
3828IFS=$as_save_IFS
3829
3830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003831fi
Reid Spencera773bd52006-08-04 18:18:08 +00003832
3833GREP="$ac_cv_path_GREP"
3834if test -z "$GREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
3840else
3841 ac_cv_path_GREP=$GREP
3842fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003843
John Criswell7a73b802003-06-30 21:59:07 +00003844
Reid Spencera773bd52006-08-04 18:18:08 +00003845fi
3846{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3847echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3848 GREP="$ac_cv_path_GREP"
3849
3850
3851{ echo "$as_me:$LINENO: checking for egrep" >&5
3852echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3853if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3857 then ac_cv_path_EGREP="$GREP -E"
3858 else
3859 # Extract the first word of "egrep" to use in msg output
3860if test -z "$EGREP"; then
3861set dummy egrep; ac_prog_name=$2
3862if test "${ac_cv_path_EGREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 ac_path_EGREP_found=false
3866# Loop through the user's path and test for each of PROGNAME-LIST
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in egrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003875 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003876 # Check for GNU ac_path_EGREP and select it if it is found.
3877 # Check for GNU $ac_path_EGREP
3878case `"$ac_path_EGREP" --version 2>&1` in
3879*GNU*)
3880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3881*)
3882 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'EGREP' >> "conftest.nl"
3890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_EGREP="$ac_path_EGREP"
3896 ac_path_EGREP_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902esac
3903
3904
3905 $ac_path_EGREP_found && break 3
3906 done
3907done
3908
3909done
3910IFS=$as_save_IFS
3911
3912
3913fi
3914
3915EGREP="$ac_cv_path_EGREP"
3916if test -z "$EGREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3920fi
3921
3922else
3923 ac_cv_path_EGREP=$EGREP
3924fi
3925
3926
3927 fi
3928fi
3929{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3931 EGREP="$ac_cv_path_EGREP"
3932
3933
3934{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3935echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003936if test "${ac_cv_header_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003945#include <stdlib.h>
3946#include <stdarg.h>
3947#include <string.h>
3948#include <float.h>
3949
John Criswell0c38eaf2003-09-10 15:17:25 +00003950int
3951main ()
3952{
3953
3954 ;
3955 return 0;
3956}
John Criswell7a73b802003-06-30 21:59:07 +00003957_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003959if { (ac_try="$ac_compile"
3960case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963esac
3964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003966 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3973 { (case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_try") 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986esac
3987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003992 ac_cv_header_stdc=yes
3993else
3994 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
Reid Spencera773bd52006-08-04 18:18:08 +00003997 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003998fi
Reid Spencera773bd52006-08-04 18:18:08 +00003999
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004001
4002if test $ac_cv_header_stdc = yes; then
4003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004010#include <string.h>
4011
4012_ACEOF
4013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004014 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004015 :
4016else
4017 ac_cv_header_stdc=no
4018fi
4019rm -f conftest*
4020
4021fi
4022
4023if test $ac_cv_header_stdc = yes; then
4024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004031#include <stdlib.h>
4032
4033_ACEOF
4034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004035 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004036 :
4037else
4038 ac_cv_header_stdc=no
4039fi
4040rm -f conftest*
4041
4042fi
4043
4044if test $ac_cv_header_stdc = yes; then
4045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046 if test "$cross_compiling" = yes; then
4047 :
4048else
4049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004050/* confdefs.h. */
4051_ACEOF
4052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
4054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004055#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004056#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004057#if ((' ' & 0x0FF) == 0x020)
4058# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4059# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4060#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004061# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004062 (('a' <= (c) && (c) <= 'i') \
4063 || ('j' <= (c) && (c) <= 'r') \
4064 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004065# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4066#endif
4067
4068#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4069int
4070main ()
4071{
4072 int i;
4073 for (i = 0; i < 256; i++)
4074 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004075 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004076 return 2;
4077 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004078}
4079_ACEOF
4080rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004081if { (ac_try="$ac_link"
4082case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 :
4101else
4102 echo "$as_me: program exited with status $ac_status" >&5
4103echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004104sed 's/^/| /' conftest.$ac_ext >&5
4105
John Criswell7a73b802003-06-30 21:59:07 +00004106( exit $ac_status )
4107ac_cv_header_stdc=no
4108fi
Reid Spencera773bd52006-08-04 18:18:08 +00004109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4110fi
4111
4112
John Criswell7a73b802003-06-30 21:59:07 +00004113fi
4114fi
Reid Spencera773bd52006-08-04 18:18:08 +00004115{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4116echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004117if test $ac_cv_header_stdc = yes; then
4118
4119cat >>confdefs.h <<\_ACEOF
4120#define STDC_HEADERS 1
4121_ACEOF
4122
4123fi
4124
Reid Spencera773bd52006-08-04 18:18:08 +00004125# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4136 inttypes.h stdint.h unistd.h
4137do
4138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4139{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144 cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150$ac_includes_default
4151
4152#include <$ac_header>
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004188 eval "$as_ac_Header=yes"
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 eval "$as_ac_Header=no"
4194fi
4195
4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197fi
4198ac_res=`eval echo '${'$as_ac_Header'}'`
4199 { echo "$as_me:$LINENO: result: $ac_res" >&5
4200echo "${ECHO_T}$ac_res" >&6; }
4201if test `eval echo '${'$as_ac_Header'}'` = yes; then
4202 cat >>confdefs.h <<_ACEOF
4203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204_ACEOF
4205
4206fi
4207
4208done
4209
4210
4211{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4212echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4213if test "${ac_cv_c_bigendian+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 # See if sys/param.h defines the BYTE_ORDER macro.
4217cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223#include <sys/types.h>
4224#include <sys/param.h>
4225
4226int
4227main ()
4228{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004229#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004230 bogus endian macros
4231#endif
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (ac_try="$ac_compile"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004271 # It does; now see whether it defined to BIG_ENDIAN or not.
4272cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
4278#include <sys/types.h>
4279#include <sys/param.h>
4280
4281int
4282main ()
4283{
4284#if BYTE_ORDER != BIG_ENDIAN
4285 not big endian
4286#endif
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext
4293if { (ac_try="$ac_compile"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004326 ac_cv_c_bigendian=yes
4327else
4328 echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_cv_c_bigendian=no
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335else
4336 echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 # It does not; compile a test program.
4340if test "$cross_compiling" = yes; then
4341 # try to guess the endianness by grepping values into an object file
4342 ac_cv_c_bigendian=unknown
4343 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4350short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4351void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4352short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4353short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4354void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4355int
4356main ()
4357{
4358 _ascii (); _ebcdic ();
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext
4364if { (ac_try="$ac_compile"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004376 (exit $ac_status); } &&
4377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004397 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4398 ac_cv_c_bigendian=yes
4399fi
4400if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4401 if test "$ac_cv_c_bigendian" = unknown; then
4402 ac_cv_c_bigendian=no
4403 else
4404 # finding both strings is unlikely to happen, but who knows?
4405 ac_cv_c_bigendian=unknown
4406 fi
4407fi
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412
4413fi
4414
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416else
4417 cat >conftest.$ac_ext <<_ACEOF
4418/* confdefs.h. */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
4422/* end confdefs.h. */
4423$ac_includes_default
4424int
4425main ()
4426{
4427
4428 /* Are we little or big endian? From Harbison&Steele. */
4429 union
4430 {
4431 long int l;
4432 char c[sizeof (long int)];
4433 } u;
4434 u.l = 1;
4435 return u.c[sizeof (long int) - 1] == 1;
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441rm -f conftest$ac_exeext
4442if { (ac_try="$ac_link"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_c_bigendian=no
4462else
4463 echo "$as_me: program exited with status $ac_status" >&5
4464echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467( exit $ac_status )
4468ac_cv_c_bigendian=yes
4469fi
4470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4471fi
4472
4473
4474fi
4475
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477fi
4478{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4479echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4480case $ac_cv_c_bigendian in
4481 yes)
4482 ENDIAN=big
4483 ;;
4484 no)
4485 ENDIAN=little
4486 ;;
4487 *)
4488 { { echo "$as_me:$LINENO: error: unknown endianness
4489presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4490echo "$as_me: error: unknown endianness
4491presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4492 { (exit 1); exit 1; }; } ;;
4493esac
4494
4495
4496if test "$cross_compiling" = yes; then
4497 LLVM_CROSS_COMPILING=1
4498
4499
4500{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4501echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4502if test "${ac_cv_build_exeext+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4506 ac_cv_build_exeext=.exe
4507else
4508 ac_build_prefix=${build_alias}-
4509
4510 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4511set dummy ${ac_build_prefix}gcc; ac_word=$2
4512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004526 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 +00004527 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537BUILD_CC=$ac_cv_prog_BUILD_CC
4538if test -n "$BUILD_CC"; then
4539 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4540echo "${ECHO_T}$BUILD_CC" >&6; }
4541else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6; }
4544fi
4545
4546
4547 if test -z "$BUILD_CC"; then
4548 # Extract the first word of "gcc", so it can be a program name with args.
4549set dummy gcc; ac_word=$2
4550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 if test -n "$BUILD_CC"; then
4556 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004564 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 +00004565 ac_cv_prog_BUILD_CC="gcc"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575BUILD_CC=$ac_cv_prog_BUILD_CC
4576if test -n "$BUILD_CC"; then
4577 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4578echo "${ECHO_T}$BUILD_CC" >&6; }
4579else
4580 { echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6; }
4582fi
4583
4584
4585 if test -z "$BUILD_CC"; then
4586 # Extract the first word of "cc", so it can be a program name with args.
4587set dummy cc; ac_word=$2
4588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593 if test -n "$BUILD_CC"; then
4594 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4595else
4596 ac_prog_rejected=no
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004603 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 +00004604 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4605 ac_prog_rejected=yes
4606 continue
4607 fi
4608 ac_cv_prog_BUILD_CC="cc"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612done
4613done
4614IFS=$as_save_IFS
4615
4616if test $ac_prog_rejected = yes; then
4617 # We found a bogon in the path, so make sure we never use it.
4618 set dummy $ac_cv_prog_BUILD_CC
4619 shift
4620 if test $# != 0; then
4621 # We chose a different compiler from the bogus one.
4622 # However, it has the same basename, so the bogon will be chosen
4623 # first if we set BUILD_CC to just the basename; use the full file name.
4624 shift
4625 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4626 fi
4627fi
4628fi
4629fi
4630BUILD_CC=$ac_cv_prog_BUILD_CC
4631if test -n "$BUILD_CC"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4633echo "${ECHO_T}$BUILD_CC" >&6; }
4634else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6; }
4637fi
4638
4639
4640 fi
4641 fi
4642 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4643echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4644 { (exit 1); exit 1; }; }
4645 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4646 rm -f conftest*
4647 echo 'int main () { return 0; }' > conftest.$ac_ext
4648 ac_cv_build_exeext=
4649 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4650 (eval $ac_build_link) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; then
4654 for file in conftest.*; do
4655 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004656 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004657 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4658 esac
4659 done
4660 else
4661 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4662echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4663 { (exit 1); exit 1; }; }
4664 fi
4665 rm -f conftest*
4666 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4667fi
4668fi
4669
4670BUILD_EXEEXT=""
4671test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4672{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4673echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4674ac_build_exeext=$BUILD_EXEEXT
4675
Jim Grosbach673612e2008-10-02 22:56:44 +00004676 ac_build_prefix=${build_alias}-
4677 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4678set dummy ${ac_build_prefix}g++; ac_word=$2
4679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004693 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 +00004694 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698done
4699done
4700IFS=$as_save_IFS
4701
4702fi
4703fi
4704BUILD_CXX=$ac_cv_prog_BUILD_CXX
4705if test -n "$BUILD_CXX"; then
4706 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4707echo "${ECHO_T}$BUILD_CXX" >&6; }
4708else
4709 { echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6; }
4711fi
4712
4713
4714 if test -z "$BUILD_CXX"; then
4715 # Extract the first word of "g++", so it can be a program name with args.
4716set dummy g++; ac_word=$2
4717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 if test -n "$BUILD_CXX"; then
4723 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004731 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 +00004732 ac_cv_prog_BUILD_CXX="g++"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736done
4737done
4738IFS=$as_save_IFS
4739
4740fi
4741fi
4742BUILD_CXX=$ac_cv_prog_BUILD_CXX
4743if test -n "$BUILD_CXX"; then
4744 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4745echo "${ECHO_T}$BUILD_CXX" >&6; }
4746else
4747 { echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6; }
4749fi
4750
4751
4752 if test -z "$BUILD_CXX"; then
4753 # Extract the first word of "c++", so it can be a program name with args.
4754set dummy c++; ac_word=$2
4755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$BUILD_CXX"; then
4761 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4762else
4763 ac_prog_rejected=no
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004770 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 +00004771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4772 ac_prog_rejected=yes
4773 continue
4774 fi
4775 ac_cv_prog_BUILD_CXX="c++"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779done
4780done
4781IFS=$as_save_IFS
4782
4783if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy $ac_cv_prog_BUILD_CXX
4786 shift
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set BUILD_CXX to just the basename; use the full file name.
4791 shift
4792 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4793 fi
4794fi
4795fi
4796fi
4797BUILD_CXX=$ac_cv_prog_BUILD_CXX
4798if test -n "$BUILD_CXX"; then
4799 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4800echo "${ECHO_T}$BUILD_CXX" >&6; }
4801else
4802 { echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6; }
4804fi
4805
4806
4807 fi
4808 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004809else
4810 LLVM_CROSS_COMPILING=0
4811
4812fi
4813
Nick Lewycky5b28f862009-04-10 05:18:27 +00004814if 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 +00004815 cvsbuild="yes"
4816 optimize="no"
4817 CVSBUILD=CVSBUILD=1
4818
4819else
4820 cvsbuild="no"
4821 optimize="yes"
4822fi
4823
4824
4825# Check whether --enable-optimized was given.
4826if test "${enable_optimized+set}" = set; then
4827 enableval=$enable_optimized;
4828else
4829 enableval=$optimize
4830fi
4831
4832if test ${enableval} = "no" ; then
4833 ENABLE_OPTIMIZED=
4834
4835else
4836 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4837
4838fi
4839
David Greene2a5a12c2009-04-17 14:50:39 +00004840# Check whether --enable-profiling was given.
4841if test "${enable_profiling+set}" = set; then
4842 enableval=$enable_profiling;
4843else
4844 enableval="no"
4845fi
4846
4847if test ${enableval} = "no" ; then
4848 ENABLE_PROFILING=
4849
4850else
4851 ENABLE_PROFILING=ENABLE_PROFILING=1
4852
4853fi
4854
Reid Spencera773bd52006-08-04 18:18:08 +00004855# Check whether --enable-assertions was given.
4856if test "${enable_assertions+set}" = set; then
4857 enableval=$enable_assertions;
4858else
4859 enableval="yes"
4860fi
4861
4862if test ${enableval} = "yes" ; then
4863 DISABLE_ASSERTIONS=
4864
4865else
4866 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4867
4868fi
4869
David Greenea696d242007-06-28 19:36:08 +00004870# Check whether --enable-expensive-checks was given.
4871if test "${enable_expensive_checks+set}" = set; then
4872 enableval=$enable_expensive_checks;
4873else
4874 enableval="no"
4875fi
4876
4877if test ${enableval} = "yes" ; then
4878 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4879
4880 EXPENSIVE_CHECKS=yes
4881
4882else
4883 ENABLE_EXPENSIVE_CHECKS=
4884
4885 EXPENSIVE_CHECKS=no
4886
4887fi
4888
Reid Spencer8b2e1412006-11-17 03:32:33 +00004889# Check whether --enable-debug-runtime was given.
4890if test "${enable_debug_runtime+set}" = set; then
4891 enableval=$enable_debug_runtime;
4892else
4893 enableval=no
4894fi
4895
4896if test ${enableval} = "no" ; then
4897 DEBUG_RUNTIME=
4898
4899else
4900 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4901
4902fi
4903
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004904# Check whether --enable-debug-symbols was given.
4905if test "${enable_debug_symbols+set}" = set; then
4906 enableval=$enable_debug_symbols;
4907else
4908 enableval=no
4909fi
4910
4911if test ${enableval} = "no" ; then
4912 DEBUG_SYMBOLS=
4913
4914else
4915 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4916
4917fi
4918
Reid Spencera773bd52006-08-04 18:18:08 +00004919# Check whether --enable-jit was given.
4920if test "${enable_jit+set}" = set; then
4921 enableval=$enable_jit;
4922else
4923 enableval=default
4924fi
4925
4926if test ${enableval} = "no"
4927then
4928 JIT=
4929
4930else
4931 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004932 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004933 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004934 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004935 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004936 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004937 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004938 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004939 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004940 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004941 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004942 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004943 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004944 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004945 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004946 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004947 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004948 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004949 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004950 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004951 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004952 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004953 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004954 Blackfin) TARGET_HAS_JIT=0
4955 ;;
4956 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004957 ;;
4958 esac
4959fi
4960
4961# Check whether --enable-doxygen was given.
4962if test "${enable_doxygen+set}" = set; then
4963 enableval=$enable_doxygen;
4964else
4965 enableval=default
4966fi
4967
4968case "$enableval" in
4969 yes) ENABLE_DOXYGEN=1
4970 ;;
4971 no) ENABLE_DOXYGEN=0
4972 ;;
4973 default) ENABLE_DOXYGEN=0
4974 ;;
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4976echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978esac
4979
4980# Check whether --enable-threads was given.
4981if test "${enable_threads+set}" = set; then
4982 enableval=$enable_threads;
4983else
Reid Spencer65c5d752006-11-05 17:08:18 +00004984 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004985fi
4986
4987case "$enableval" in
4988 yes) ENABLE_THREADS=1
4989 ;;
4990 no) ENABLE_THREADS=0
4991 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004992 default) ENABLE_THREADS=1
4993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4995echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4997esac
4998
Owen Andersona8603702009-05-19 22:18:56 +00004999cat >>confdefs.h <<_ACEOF
5000#define ENABLE_THREADS $ENABLE_THREADS
5001_ACEOF
5002
5003
Reid Spencer89b0d992006-12-16 22:07:52 +00005004# Check whether --enable-pic was given.
5005if test "${enable_pic+set}" = set; then
5006 enableval=$enable_pic;
5007else
5008 enableval=default
5009fi
5010
5011case "$enableval" in
5012 yes) ENABLE_PIC=1
5013 ;;
5014 no) ENABLE_PIC=0
5015 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005016 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005017 ;;
5018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5019echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5020 { (exit 1); exit 1; }; } ;;
5021esac
5022
5023cat >>confdefs.h <<_ACEOF
5024#define ENABLE_PIC $ENABLE_PIC
5025_ACEOF
5026
5027
Reid Spencera773bd52006-08-04 18:18:08 +00005028TARGETS_TO_BUILD=""
5029# Check whether --enable-targets was given.
5030if test "${enable_targets+set}" = set; then
5031 enableval=$enable_targets;
5032else
5033 enableval=all
5034fi
5035
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005036if test "$enableval" = host-only ; then
5037 enableval=host
5038fi
Reid Spencera773bd52006-08-04 18:18:08 +00005039case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005040 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 +00005041 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5042 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005043 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5044 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5046 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5047 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5048 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5049 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5050 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5051 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5052 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5053 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5054 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5055 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5056 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5057 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5058 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005059 host) case "$llvm_cv_target_arch" in
5060 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5061 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5062 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5063 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5064 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5065 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5066 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5067 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5068 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5069 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5070 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5071 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5072 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5073 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5074echo "$as_me: error: Can not set target to build" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5076 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005077 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5078echo "$as_me: error: Unrecognized target $a_target" >&2;}
5079 { (exit 1); exit 1; }; } ;;
5080 esac
5081 done
5082 ;;
5083esac
Reid Spencera773bd52006-08-04 18:18:08 +00005084TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5085
5086
Douglas Gregor0711c302009-06-17 00:43:20 +00005087# Determine whether we are building LLVM support for the native architecture.
5088# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5089for a_target in $TARGETS_TO_BUILD; do
5090 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005091 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005092
5093cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005094#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005095_ACEOF
5096
5097 fi
5098done
5099
Douglas Gregor1555a232009-06-16 20:12:29 +00005100# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005101# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005102LLVM_ENUM_TARGETS=""
5103LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005104LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005105for target_to_build in $TARGETS_TO_BUILD; do
5106 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5107 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5108 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5109 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5111 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5112 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005113done
5114
5115
5116
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005117
Reid Spencer65c5d752006-11-05 17:08:18 +00005118# Check whether --enable-cbe-printf-a was given.
5119if test "${enable_cbe_printf_a+set}" = set; then
5120 enableval=$enable_cbe_printf_a;
5121else
5122 enableval=default
5123fi
5124
5125case "$enableval" in
5126 yes) ENABLE_CBE_PRINTF_A=1
5127 ;;
5128 no) ENABLE_CBE_PRINTF_A=0
5129 ;;
5130 default) ENABLE_CBE_PRINTF_A=1
5131 ;;
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5133echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5135esac
5136
5137cat >>confdefs.h <<_ACEOF
5138#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5139_ACEOF
5140
5141
Reid Spencera773bd52006-08-04 18:18:08 +00005142
5143# Check whether --with-llvmgccdir was given.
5144if test "${with_llvmgccdir+set}" = set; then
5145 withval=$with_llvmgccdir;
5146else
5147 withval=default
5148fi
5149
5150case "$withval" in
5151 default) WITH_LLVMGCCDIR=default ;;
5152 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5153 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5154echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156esac
5157
5158
Devang Patel5d28b882007-12-04 22:54:47 +00005159# Check whether --with-llvmgcc was given.
5160if test "${with_llvmgcc+set}" = set; then
5161 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5162 WITH_LLVMGCCDIR=""
5163fi
5164
5165
5166
5167# Check whether --with-llvmgxx was given.
5168if test "${with_llvmgxx+set}" = set; then
5169 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5170 WITH_LLVMGCCDIR=""
5171fi
5172
Douglas Gregor01746742009-05-11 18:05:52 +00005173
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005174if test -n "$LLVMGCC"; then
5175 LLVMGCCCOMMAND="$LLVMGCC"
5176fi
5177
5178if test -n "$LLVMGXX"; then
5179 LLVMGXXCOMMAND="$LLVMGXX"
5180fi
Devang Patel5d28b882007-12-04 22:54:47 +00005181
5182if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5183 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5184echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5185 { (exit 1); exit 1; }; };
5186fi
5187
5188if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5189 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5190echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5191 { (exit 1); exit 1; }; };
5192fi
5193
5194
Reid Spencera773bd52006-08-04 18:18:08 +00005195# Check whether --with-extra-options was given.
5196if test "${with_extra_options+set}" = set; then
5197 withval=$with_extra_options;
5198else
5199 withval=default
5200fi
5201
5202case "$withval" in
5203 default) EXTRA_OPTIONS= ;;
5204 *) EXTRA_OPTIONS=$withval ;;
5205esac
5206EXTRA_OPTIONS=$EXTRA_OPTIONS
5207
5208
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005209# Check whether --enable-bindings was given.
5210if test "${enable_bindings+set}" = set; then
5211 enableval=$enable_bindings;
5212else
5213 enableval=default
5214fi
5215
5216BINDINGS_TO_BUILD=""
5217case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005218 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005219 all ) BINDINGS_TO_BUILD="ocaml" ;;
5220 none | no) BINDINGS_TO_BUILD="" ;;
5221 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5222 case "$a_binding" in
5223 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5224 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5225echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5227 esac
5228 done
5229 ;;
5230esac
5231
Reid Spencera773bd52006-08-04 18:18:08 +00005232
Gordon Henriksenf0915682007-10-02 16:42:22 +00005233# Check whether --with-ocaml-libdir was given.
5234if test "${with_ocaml_libdir+set}" = set; then
5235 withval=$with_ocaml_libdir;
5236else
5237 withval=auto
5238fi
5239
5240case "$withval" in
5241 auto) with_ocaml_libdir="$withval" ;;
5242 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5244echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247
5248
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005249# Check whether --with-binutils-include was given.
5250if test "${with_binutils_include+set}" = set; then
5251 withval=$with_binutils_include;
5252else
5253 withval=default
5254fi
5255
5256case "$withval" in
5257 default) WITH_BINUTILS_INCDIR=default ;;
5258 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5260echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5262esac
5263if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5264 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5265
5266 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5267 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5268 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5269echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5270 { (exit 1); exit 1; }; };
5271 fi
5272fi
5273
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005274# Check whether --enable-libffi was given.
5275if test "${enable_libffi+set}" = set; then
5276 enableval=$enable_libffi;
5277else
5278 enableval=yes
5279fi
5280
5281case "$enableval" in
5282 yes) llvm_cv_enable_libffi="yes" ;;
5283 no) llvm_cv_enable_libffi="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5285echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5287esac
5288
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005289if test "$llvm_cv_os_type" = "Win32" ; then
5290 llvmc_dynamic="yes"
5291else
5292 llvmc_dynamic="no"
5293fi
5294
5295# Check whether --enable-llvmc-dynamic was given.
5296if test "${enable_llvmc_dynamic+set}" = set; then
5297 enableval=$enable_llvmc_dynamic;
5298else
5299 enableval=$llvmc_dynamic
5300fi
5301
5302if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5303 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5304
5305else
5306 ENABLE_LLVMC_DYNAMIC=
5307
5308fi
5309
5310# Check whether --enable-llvmc-dynamic-plugins was given.
5311if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5312 enableval=$enable_llvmc_dynamic_plugins;
5313else
5314 enableval=yes
5315fi
5316
5317if test ${enableval} = "yes" ; then
5318 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5319
5320else
5321 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5322
5323fi
5324
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005325
Reid Spencera773bd52006-08-04 18:18:08 +00005326ac_ext=c
5327ac_cpp='$CPP $CPPFLAGS'
5328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5332echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5333# On Suns, sometimes $CPP names a directory.
5334if test -n "$CPP" && test -d "$CPP"; then
5335 CPP=
5336fi
5337if test -z "$CPP"; then
5338 if test "${ac_cv_prog_CPP+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 # Double quotes because CPP needs to be expanded
5342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5343 do
5344 ac_preproc_ok=false
5345for ac_c_preproc_warn_flag in '' yes
5346do
5347 # Use a header file that comes with gcc, so configuring glibc
5348 # with a fresh cross-compiler works.
5349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 # <limits.h> exists even on freestanding compilers.
5351 # On the NeXT, cc -E runs the code through the compiler's parser,
5352 # not just through cpp. "Syntax error" is here to catch this case.
5353 cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h. */
5359#ifdef __STDC__
5360# include <limits.h>
5361#else
5362# include <assert.h>
5363#endif
5364 Syntax error
5365_ACEOF
5366if { (ac_try="$ac_cpp conftest.$ac_ext"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_c_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5382 else
5383 ac_cpp_err=
5384 fi
5385else
5386 ac_cpp_err=yes
5387fi
5388if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005389 :
5390else
5391 echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 # Broken: fails on valid input.
5395continue
5396fi
5397
5398rm -f conftest.err conftest.$ac_ext
5399
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408#include <ac_nonexistent.h>
5409_ACEOF
5410if { (ac_try="$ac_cpp conftest.$ac_ext"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005422 (exit $ac_status); } >/dev/null; then
5423 if test -s conftest.err; then
5424 ac_cpp_err=$ac_c_preproc_warn_flag
5425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426 else
5427 ac_cpp_err=
5428 fi
5429else
5430 ac_cpp_err=yes
5431fi
5432if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005433 # Broken: success on invalid input.
5434continue
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 # Passes both tests.
5440ac_preproc_ok=:
5441break
5442fi
5443
5444rm -f conftest.err conftest.$ac_ext
5445
5446done
5447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448rm -f conftest.err conftest.$ac_ext
5449if $ac_preproc_ok; then
5450 break
5451fi
5452
5453 done
5454 ac_cv_prog_CPP=$CPP
5455
5456fi
5457 CPP=$ac_cv_prog_CPP
5458else
5459 ac_cv_prog_CPP=$CPP
5460fi
5461{ echo "$as_me:$LINENO: result: $CPP" >&5
5462echo "${ECHO_T}$CPP" >&6; }
5463ac_preproc_ok=false
5464for ac_c_preproc_warn_flag in '' yes
5465do
5466 # Use a header file that comes with gcc, so configuring glibc
5467 # with a fresh cross-compiler works.
5468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469 # <limits.h> exists even on freestanding compilers.
5470 # On the NeXT, cc -E runs the code through the compiler's parser,
5471 # not just through cpp. "Syntax error" is here to catch this case.
5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478#ifdef __STDC__
5479# include <limits.h>
5480#else
5481# include <assert.h>
5482#endif
5483 Syntax error
5484_ACEOF
5485if { (ac_try="$ac_cpp conftest.$ac_ext"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_c_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 else
5502 ac_cpp_err=
5503 fi
5504else
5505 ac_cpp_err=yes
5506fi
5507if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005508 :
5509else
5510 echo "$as_me: failed program was:" >&5
5511sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 # Broken: fails on valid input.
5514continue
5515fi
5516
5517rm -f conftest.err conftest.$ac_ext
5518
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
5521 cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h. */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h. */
5527#include <ac_nonexistent.h>
5528_ACEOF
5529if { (ac_try="$ac_cpp conftest.$ac_ext"
5530case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545 else
5546 ac_cpp_err=
5547 fi
5548else
5549 ac_cpp_err=yes
5550fi
5551if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005552 # Broken: success on invalid input.
5553continue
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 # Passes both tests.
5559ac_preproc_ok=:
5560break
5561fi
5562
5563rm -f conftest.err conftest.$ac_ext
5564
5565done
5566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567rm -f conftest.err conftest.$ac_ext
5568if $ac_preproc_ok; then
5569 :
5570else
5571 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5572See \`config.log' for more details." >&5
5573echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5574See \`config.log' for more details." >&2;}
5575 { (exit 1); exit 1; }; }
5576fi
5577
5578ac_ext=c
5579ac_cpp='$CPP $CPPFLAGS'
5580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583
5584ac_ext=c
5585ac_cpp='$CPP $CPPFLAGS'
5586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589if test -n "$ac_tool_prefix"; then
5590 for ac_prog in gcc
5591 do
5592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5596if test "${ac_cv_prog_CC+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599 if test -n "$CC"; then
5600 ac_cv_prog_CC="$CC" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005608 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 +00005609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615IFS=$as_save_IFS
5616
5617fi
5618fi
5619CC=$ac_cv_prog_CC
5620if test -n "$CC"; then
5621 { echo "$as_me:$LINENO: result: $CC" >&5
5622echo "${ECHO_T}$CC" >&6; }
5623else
5624 { echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6; }
5626fi
5627
5628
5629 test -n "$CC" && break
5630 done
5631fi
5632if test -z "$CC"; then
5633 ac_ct_CC=$CC
5634 for ac_prog in gcc
5635do
5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
5637set dummy $ac_prog; ac_word=$2
5638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643 if test -n "$ac_ct_CC"; then
5644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005652 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 +00005653 ac_cv_prog_ac_ct_CC="$ac_prog"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663ac_ct_CC=$ac_cv_prog_ac_ct_CC
5664if test -n "$ac_ct_CC"; then
5665 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5666echo "${ECHO_T}$ac_ct_CC" >&6; }
5667else
5668 { echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6; }
5670fi
5671
5672
5673 test -n "$ac_ct_CC" && break
5674done
5675
5676 if test "x$ac_ct_CC" = x; then
5677 CC=""
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680yes:)
5681{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5682whose name does not start with the host triplet. If you think this
5683configuration is useful to you, please write to autoconf@gnu.org." >&5
5684echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5685whose name does not start with the host triplet. If you think this
5686configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689 CC=$ac_ct_CC
5690 fi
5691fi
5692
5693
5694test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5695See \`config.log' for more details." >&5
5696echo "$as_me: error: no acceptable C compiler found in \$PATH
5697See \`config.log' for more details." >&2;}
5698 { (exit 1); exit 1; }; }
5699
5700# Provide some information about the compiler.
5701echo "$as_me:$LINENO: checking for C compiler version" >&5
5702ac_compiler=`set X $ac_compile; echo $2`
5703{ (ac_try="$ac_compiler --version >&5"
5704case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compiler --version >&5") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }
5713{ (ac_try="$ac_compiler -v >&5"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler -v >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723{ (ac_try="$ac_compiler -V >&5"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compiler -V >&5") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5733
5734{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5735echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5736if test "${ac_cv_c_compiler_gnu+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745
5746int
5747main ()
5748{
5749#ifndef __GNUC__
5750 choke me
5751#endif
5752
5753 ;
5754 return 0;
5755}
5756_ACEOF
5757rm -f conftest.$ac_objext
5758if { (ac_try="$ac_compile"
5759case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_try") 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005791 ac_compiler_gnu=yes
5792else
5793 echo "$as_me: failed program was:" >&5
5794sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_compiler_gnu=no
5797fi
5798
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800ac_cv_c_compiler_gnu=$ac_compiler_gnu
5801
5802fi
5803{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5804echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5805GCC=`test $ac_compiler_gnu = yes && echo yes`
5806ac_test_CFLAGS=${CFLAGS+set}
5807ac_save_CFLAGS=$CFLAGS
5808{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5809echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5810if test "${ac_cv_prog_cc_g+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 ac_save_c_werror_flag=$ac_c_werror_flag
5814 ac_c_werror_flag=yes
5815 ac_cv_prog_cc_g=no
5816 CFLAGS="-g"
5817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823
5824int
5825main ()
5826{
5827
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext
5833if { (ac_try="$ac_compile"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_try") 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005866 ac_cv_prog_cc_g=yes
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871 CFLAGS=""
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878
5879int
5880main ()
5881{
5882
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005921 :
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_c_werror_flag=$ac_save_c_werror_flag
5927 CFLAGS="-g"
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (ac_try="$ac_compile"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005977 ac_cv_prog_cc_g=yes
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982
5983fi
5984
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986fi
5987
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989fi
5990
5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5993fi
5994{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5996if test "$ac_test_CFLAGS" = set; then
5997 CFLAGS=$ac_save_CFLAGS
5998elif test $ac_cv_prog_cc_g = yes; then
5999 if test "$GCC" = yes; then
6000 CFLAGS="-g -O2"
6001 else
6002 CFLAGS="-g"
6003 fi
6004else
6005 if test "$GCC" = yes; then
6006 CFLAGS="-O2"
6007 else
6008 CFLAGS=
6009 fi
6010fi
6011{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6012echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6013if test "${ac_cv_prog_cc_c89+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016 ac_cv_prog_cc_c89=no
6017ac_save_CC=$CC
6018cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
6024#include <stdarg.h>
6025#include <stdio.h>
6026#include <sys/types.h>
6027#include <sys/stat.h>
6028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6029struct buf { int x; };
6030FILE * (*rcsopen) (struct buf *, struct stat *, int);
6031static char *e (p, i)
6032 char **p;
6033 int i;
6034{
6035 return p[i];
6036}
6037static char *f (char * (*g) (char **, int), char **p, ...)
6038{
6039 char *s;
6040 va_list v;
6041 va_start (v,p);
6042 s = g (p, va_arg (v,int));
6043 va_end (v);
6044 return s;
6045}
6046
6047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6048 function prototypes and stuff, but not '\xHH' hex character constants.
6049 These don't provoke an error unfortunately, instead are silently treated
6050 as 'x'. The following induces an error, until -std is added to get
6051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6052 array size at least. It's necessary to write '\x00'==0 to get something
6053 that's true only with -std. */
6054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6055
6056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6057 inside strings and character constants. */
6058#define FOO(x) 'x'
6059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6060
6061int test (int i, double x);
6062struct s1 {int (*f) (int a);};
6063struct s2 {int (*f) (double a);};
6064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6065int argc;
6066char **argv;
6067int
6068main ()
6069{
6070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6077do
6078 CC="$ac_save_CC $ac_arg"
6079 rm -f conftest.$ac_objext
6080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest.$ac_objext'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006113 ac_cv_prog_cc_c89=$ac_arg
6114else
6115 echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext
6122 test "x$ac_cv_prog_cc_c89" != "xno" && break
6123done
6124rm -f conftest.$ac_ext
6125CC=$ac_save_CC
6126
6127fi
6128# AC_CACHE_VAL
6129case "x$ac_cv_prog_cc_c89" in
6130 x)
6131 { echo "$as_me:$LINENO: result: none needed" >&5
6132echo "${ECHO_T}none needed" >&6; } ;;
6133 xno)
6134 { echo "$as_me:$LINENO: result: unsupported" >&5
6135echo "${ECHO_T}unsupported" >&6; } ;;
6136 *)
6137 CC="$CC $ac_cv_prog_cc_c89"
6138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6139echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6140esac
6141
6142
6143ac_ext=c
6144ac_cpp='$CPP $CPPFLAGS'
6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149ac_ext=cpp
6150ac_cpp='$CXXCPP $CPPFLAGS'
6151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6154if test -z "$CXX"; then
6155 if test -n "$CCC"; then
6156 CXX=$CCC
6157 else
6158 if test -n "$ac_tool_prefix"; then
6159 for ac_prog in g++
6160 do
6161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165if test "${ac_cv_prog_CXX+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 if test -n "$CXX"; then
6169 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006177 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 +00006178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182done
6183done
6184IFS=$as_save_IFS
6185
6186fi
6187fi
6188CXX=$ac_cv_prog_CXX
6189if test -n "$CXX"; then
6190 { echo "$as_me:$LINENO: result: $CXX" >&5
6191echo "${ECHO_T}$CXX" >&6; }
6192else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194echo "${ECHO_T}no" >&6; }
6195fi
6196
6197
6198 test -n "$CXX" && break
6199 done
6200fi
6201if test -z "$CXX"; then
6202 ac_ct_CXX=$CXX
6203 for ac_prog in g++
6204do
6205 # Extract the first word of "$ac_prog", so it can be a program name with args.
6206set dummy $ac_prog; ac_word=$2
6207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212 if test -n "$ac_ct_CXX"; then
6213 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006221 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 +00006222 ac_cv_prog_ac_ct_CXX="$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6233if test -n "$ac_ct_CXX"; then
6234 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6235echo "${ECHO_T}$ac_ct_CXX" >&6; }
6236else
6237 { echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6; }
6239fi
6240
6241
6242 test -n "$ac_ct_CXX" && break
6243done
6244
6245 if test "x$ac_ct_CXX" = x; then
6246 CXX="g++"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251whose name does not start with the host triplet. If you think this
6252configuration is useful to you, please write to autoconf@gnu.org." >&5
6253echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254whose name does not start with the host triplet. If you think this
6255configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256ac_tool_warned=yes ;;
6257esac
6258 CXX=$ac_ct_CXX
6259 fi
6260fi
6261
6262 fi
6263fi
6264# Provide some information about the compiler.
6265echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6266ac_compiler=`set X $ac_compile; echo $2`
6267{ (ac_try="$ac_compiler --version >&5"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compiler --version >&5") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }
6277{ (ac_try="$ac_compiler -v >&5"
6278case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compiler -v >&5") 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }
6287{ (ac_try="$ac_compiler -V >&5"
6288case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291esac
6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compiler -V >&5") 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }
6297
6298{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6299echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6300if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
6309
6310int
6311main ()
6312{
6313#ifndef __GNUC__
6314 choke me
6315#endif
6316
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (ac_try="$ac_compile"
6323case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6336 { (case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_try") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_try") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006355 ac_compiler_gnu=yes
6356else
6357 echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 ac_compiler_gnu=no
6361fi
6362
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6365
6366fi
6367{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6368echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6369GXX=`test $ac_compiler_gnu = yes && echo yes`
6370ac_test_CXXFLAGS=${CXXFLAGS+set}
6371ac_save_CXXFLAGS=$CXXFLAGS
6372{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6373echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6374if test "${ac_cv_prog_cxx_g+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6378 ac_cxx_werror_flag=yes
6379 ac_cv_prog_cxx_g=no
6380 CXXFLAGS="-g"
6381 cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h. */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h. */
6387
6388int
6389main ()
6390{
6391
6392 ;
6393 return 0;
6394}
6395_ACEOF
6396rm -f conftest.$ac_objext
6397if { (ac_try="$ac_compile"
6398case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compile") 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6411 { (case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
6415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_try") 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_try") 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006430 ac_cv_prog_cxx_g=yes
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 CXXFLAGS=""
6436 cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h. */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
6451rm -f conftest.$ac_objext
6452if { (ac_try="$ac_compile"
6453case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6466 { (case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469esac
6470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_try") 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest.$ac_objext'
6476 { (case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_try") 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006485 :
6486else
6487 echo "$as_me: failed program was:" >&5
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6491 CXXFLAGS="-g"
6492 cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h. */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h. */
6498
6499int
6500main ()
6501{
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (ac_try="$ac_compile"
6509case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512esac
6513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_compile") 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6522 { (case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_try") 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006541 ac_cv_prog_cxx_g=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546
6547fi
6548
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6557fi
6558{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6559echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6560if test "$ac_test_CXXFLAGS" = set; then
6561 CXXFLAGS=$ac_save_CXXFLAGS
6562elif test $ac_cv_prog_cxx_g = yes; then
6563 if test "$GXX" = yes; then
6564 CXXFLAGS="-g -O2"
6565 else
6566 CXXFLAGS="-g"
6567 fi
6568else
6569 if test "$GXX" = yes; then
6570 CXXFLAGS="-O2"
6571 else
6572 CXXFLAGS=
6573 fi
6574fi
6575ac_ext=c
6576ac_cpp='$CPP $CPPFLAGS'
6577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6579ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580
Reid Spencera773bd52006-08-04 18:18:08 +00006581
6582{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6583echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6584if test "${lt_cv_path_NM+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 if test -n "$NM"; then
6588 # Let the user override the test.
6589 lt_cv_path_NM="$NM"
6590else
6591 lt_nm_to_check="${ac_tool_prefix}nm"
6592 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6593 lt_nm_to_check="$lt_nm_to_check nm"
6594 fi
6595 for lt_tmp_nm in $lt_nm_to_check; do
6596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6597 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6598 IFS="$lt_save_ifs"
6599 test -z "$ac_dir" && ac_dir=.
6600 tmp_nm="$ac_dir/$lt_tmp_nm"
6601 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6602 # Check to see if the nm accepts a BSD-compat flag.
6603 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6604 # nm: unknown option "B" ignored
6605 # Tru64's nm complains that /dev/null is an invalid object file
6606 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6607 */dev/null* | *'Invalid file or object type'*)
6608 lt_cv_path_NM="$tmp_nm -B"
6609 break
6610 ;;
6611 *)
6612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6613 */dev/null*)
6614 lt_cv_path_NM="$tmp_nm -p"
6615 break
6616 ;;
6617 *)
6618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6619 continue # so that we can try to find one that supports BSD flags
6620 ;;
6621 esac
6622 ;;
6623 esac
6624 fi
6625 done
6626 IFS="$lt_save_ifs"
6627 done
6628 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6629fi
6630fi
6631{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6632echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6633NM="$lt_cv_path_NM"
6634
6635
6636
6637{ echo "$as_me:$LINENO: checking for GNU make" >&5
6638echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6639if test "${llvm_cv_gnu_make_command+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 llvm_cv_gnu_make_command=''
6643 for a in "$MAKE" make gmake gnumake ; do
6644 if test -z "$a" ; then continue ; fi ;
6645 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6646 then
6647 llvm_cv_gnu_make_command=$a ;
6648 break;
6649 fi
6650 done
6651fi
6652{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6653echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6654 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6655 ifGNUmake='' ;
6656 else
6657 ifGNUmake='#' ;
6658 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6659echo "${ECHO_T}\"Not found\"" >&6; };
6660 fi
6661
6662
6663{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6664echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6665LN_S=$as_ln_s
6666if test "$LN_S" = "ln -s"; then
6667 { echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6; }
6669else
6670 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6671echo "${ECHO_T}no, using $LN_S" >&6; }
6672fi
6673
6674# Extract the first word of "cmp", so it can be a program name with args.
6675set dummy cmp; ac_word=$2
6676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678if test "${ac_cv_path_CMP+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681 case $CMP in
6682 [\\/]* | ?:[\\/]*)
6683 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6684 ;;
6685 *)
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006692 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 +00006693 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697done
6698done
6699IFS=$as_save_IFS
6700
6701 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6702 ;;
6703esac
6704fi
6705CMP=$ac_cv_path_CMP
6706if test -n "$CMP"; then
6707 { echo "$as_me:$LINENO: result: $CMP" >&5
6708echo "${ECHO_T}$CMP" >&6; }
6709else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6; }
6712fi
6713
6714
6715# Extract the first word of "cp", so it can be a program name with args.
6716set dummy cp; ac_word=$2
6717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719if test "${ac_cv_path_CP+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722 case $CP in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6725 ;;
6726 *)
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006733 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 +00006734 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739done
6740IFS=$as_save_IFS
6741
6742 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6743 ;;
6744esac
6745fi
6746CP=$ac_cv_path_CP
6747if test -n "$CP"; then
6748 { echo "$as_me:$LINENO: result: $CP" >&5
6749echo "${ECHO_T}$CP" >&6; }
6750else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756# Extract the first word of "date", so it can be a program name with args.
6757set dummy date; ac_word=$2
6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760if test "${ac_cv_path_DATE+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763 case $DATE in
6764 [\\/]* | ?:[\\/]*)
6765 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6766 ;;
6767 *)
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006774 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 +00006775 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780done
6781IFS=$as_save_IFS
6782
6783 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6784 ;;
6785esac
6786fi
6787DATE=$ac_cv_path_DATE
6788if test -n "$DATE"; then
6789 { echo "$as_me:$LINENO: result: $DATE" >&5
6790echo "${ECHO_T}$DATE" >&6; }
6791else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6; }
6794fi
6795
6796
6797# Extract the first word of "find", so it can be a program name with args.
6798set dummy find; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_path_FIND+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 case $FIND in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6807 ;;
6808 *)
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006815 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 +00006816 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6825 ;;
6826esac
6827fi
6828FIND=$ac_cv_path_FIND
6829if test -n "$FIND"; then
6830 { echo "$as_me:$LINENO: result: $FIND" >&5
6831echo "${ECHO_T}$FIND" >&6; }
6832else
6833 { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
6835fi
6836
6837
6838# Extract the first word of "grep", so it can be a program name with args.
6839set dummy grep; ac_word=$2
6840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842if test "${ac_cv_path_GREP+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845 case $GREP in
6846 [\\/]* | ?:[\\/]*)
6847 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6848 ;;
6849 *)
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006856 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 +00006857 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862done
6863IFS=$as_save_IFS
6864
6865 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6866 ;;
6867esac
6868fi
6869GREP=$ac_cv_path_GREP
6870if test -n "$GREP"; then
6871 { echo "$as_me:$LINENO: result: $GREP" >&5
6872echo "${ECHO_T}$GREP" >&6; }
6873else
6874 { echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6; }
6876fi
6877
6878
6879# Extract the first word of "mkdir", so it can be a program name with args.
6880set dummy mkdir; ac_word=$2
6881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883if test "${ac_cv_path_MKDIR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886 case $MKDIR in
6887 [\\/]* | ?:[\\/]*)
6888 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6889 ;;
6890 *)
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006897 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 +00006898 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903done
6904IFS=$as_save_IFS
6905
6906 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6907 ;;
6908esac
6909fi
6910MKDIR=$ac_cv_path_MKDIR
6911if test -n "$MKDIR"; then
6912 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6913echo "${ECHO_T}$MKDIR" >&6; }
6914else
6915 { echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6; }
6917fi
6918
6919
6920# Extract the first word of "mv", so it can be a program name with args.
6921set dummy mv; ac_word=$2
6922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924if test "${ac_cv_path_MV+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 case $MV in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6930 ;;
6931 *)
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006938 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 +00006939 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943done
6944done
6945IFS=$as_save_IFS
6946
6947 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6948 ;;
6949esac
6950fi
6951MV=$ac_cv_path_MV
6952if test -n "$MV"; then
6953 { echo "$as_me:$LINENO: result: $MV" >&5
6954echo "${ECHO_T}$MV" >&6; }
6955else
6956 { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
6958fi
6959
6960
6961if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_prog_RANLIB+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 if test -n "$RANLIB"; then
6970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006978 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 +00006979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989RANLIB=$ac_cv_prog_RANLIB
6990if test -n "$RANLIB"; then
6991 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6992echo "${ECHO_T}$RANLIB" >&6; }
6993else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6; }
6996fi
6997
6998
6999fi
7000if test -z "$ac_cv_prog_RANLIB"; then
7001 ac_ct_RANLIB=$RANLIB
7002 # Extract the first word of "ranlib", so it can be a program name with args.
7003set dummy ranlib; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 if test -n "$ac_ct_RANLIB"; then
7010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007018 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 +00007019 ac_cv_prog_ac_ct_RANLIB="ranlib"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7030if test -n "$ac_ct_RANLIB"; then
7031 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7032echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7033else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6; }
7036fi
7037
7038 if test "x$ac_ct_RANLIB" = x; then
7039 RANLIB=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7044whose name does not start with the host triplet. If you think this
7045configuration is useful to you, please write to autoconf@gnu.org." >&5
7046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7047whose name does not start with the host triplet. If you think this
7048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051 RANLIB=$ac_ct_RANLIB
7052 fi
7053else
7054 RANLIB="$ac_cv_prog_RANLIB"
7055fi
7056
7057# Extract the first word of "rm", so it can be a program name with args.
7058set dummy rm; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_path_RM+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $RM in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007075 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 +00007076 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082IFS=$as_save_IFS
7083
7084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7085 ;;
7086esac
7087fi
7088RM=$ac_cv_path_RM
7089if test -n "$RM"; then
7090 { echo "$as_me:$LINENO: result: $RM" >&5
7091echo "${ECHO_T}$RM" >&6; }
7092else
7093 { echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6; }
7095fi
7096
7097
7098# Extract the first word of "sed", so it can be a program name with args.
7099set dummy sed; ac_word=$2
7100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_path_SED+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 case $SED in
7106 [\\/]* | ?:[\\/]*)
7107 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7108 ;;
7109 *)
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007116 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 +00007117 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121done
7122done
7123IFS=$as_save_IFS
7124
7125 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7126 ;;
7127esac
7128fi
7129SED=$ac_cv_path_SED
7130if test -n "$SED"; then
7131 { echo "$as_me:$LINENO: result: $SED" >&5
7132echo "${ECHO_T}$SED" >&6; }
7133else
7134 { echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6; }
7136fi
7137
7138
7139# Extract the first word of "tar", so it can be a program name with args.
7140set dummy tar; ac_word=$2
7141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_path_TAR+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 case $TAR in
7147 [\\/]* | ?:[\\/]*)
7148 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7149 ;;
7150 *)
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007157 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 +00007158 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162done
7163done
7164IFS=$as_save_IFS
7165
7166 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7167 ;;
7168esac
7169fi
7170TAR=$ac_cv_path_TAR
7171if test -n "$TAR"; then
7172 { echo "$as_me:$LINENO: result: $TAR" >&5
7173echo "${ECHO_T}$TAR" >&6; }
7174else
7175 { echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6; }
7177fi
7178
7179
7180# Extract the first word of "pwd", so it can be a program name with args.
7181set dummy pwd; ac_word=$2
7182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_path_BINPWD+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 case $BINPWD in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7190 ;;
7191 *)
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007198 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 +00007199 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204done
7205IFS=$as_save_IFS
7206
7207 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7208 ;;
7209esac
7210fi
7211BINPWD=$ac_cv_path_BINPWD
7212if test -n "$BINPWD"; then
7213 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7214echo "${ECHO_T}$BINPWD" >&6; }
7215else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
7218fi
7219
7220
7221
7222# Extract the first word of "Graphviz", so it can be a program name with args.
7223set dummy Graphviz; ac_word=$2
7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 case $GRAPHVIZ in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007240 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 +00007241 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247IFS=$as_save_IFS
7248
7249 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7250 ;;
7251esac
7252fi
7253GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7254if test -n "$GRAPHVIZ"; then
7255 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7256echo "${ECHO_T}$GRAPHVIZ" >&6; }
7257else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6; }
7260fi
7261
7262
7263if test "$GRAPHVIZ" != "echo Graphviz" ; then
7264
7265cat >>confdefs.h <<\_ACEOF
7266#define HAVE_GRAPHVIZ 1
7267_ACEOF
7268
Jeff Cohen28783c32007-01-12 18:22:38 +00007269 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007270 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7271 fi
7272
7273cat >>confdefs.h <<_ACEOF
7274#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7275_ACEOF
7276
7277fi
7278# Extract the first word of "dot", so it can be a program name with args.
7279set dummy dot; ac_word=$2
7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282if test "${ac_cv_path_DOT+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 case $DOT in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7288 ;;
7289 *)
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007296 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 +00007297 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303IFS=$as_save_IFS
7304
7305 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7306 ;;
7307esac
7308fi
7309DOT=$ac_cv_path_DOT
7310if test -n "$DOT"; then
7311 { echo "$as_me:$LINENO: result: $DOT" >&5
7312echo "${ECHO_T}$DOT" >&6; }
7313else
7314 { echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6; }
7316fi
7317
7318
7319if test "$DOT" != "echo dot" ; then
7320
7321cat >>confdefs.h <<\_ACEOF
7322#define HAVE_DOT 1
7323_ACEOF
7324
Jeff Cohen28783c32007-01-12 18:22:38 +00007325 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007326 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7327 fi
7328
7329cat >>confdefs.h <<_ACEOF
7330#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7331_ACEOF
7332
7333fi
David Greenef0b9eff2009-07-09 17:16:26 +00007334# Extract the first word of "fdp", so it can be a program name with args.
7335set dummy fdp; ac_word=$2
7336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338if test "${ac_cv_path_FDP+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 case $FDP in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7344 ;;
7345 *)
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357done
7358done
7359IFS=$as_save_IFS
7360
7361 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7362 ;;
7363esac
7364fi
7365FDP=$ac_cv_path_FDP
7366if test -n "$FDP"; then
7367 { echo "$as_me:$LINENO: result: $FDP" >&5
7368echo "${ECHO_T}$FDP" >&6; }
7369else
7370 { echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6; }
7372fi
7373
7374
7375if test "$FDP" != "echo fdp" ; then
7376
7377cat >>confdefs.h <<\_ACEOF
7378#define HAVE_FDP 1
7379_ACEOF
7380
7381 if test "$llvm_cv_os_type" = "MingW" ; then
7382 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7383 fi
7384
7385cat >>confdefs.h <<_ACEOF
7386#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7387_ACEOF
7388
7389fi
7390# Extract the first word of "neato", so it can be a program name with args.
7391set dummy neato; ac_word=$2
7392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_NEATO+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397 case $NEATO in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7400 ;;
7401 *)
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413done
7414done
7415IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7418 ;;
7419esac
7420fi
7421NEATO=$ac_cv_path_NEATO
7422if test -n "$NEATO"; then
7423 { echo "$as_me:$LINENO: result: $NEATO" >&5
7424echo "${ECHO_T}$NEATO" >&6; }
7425else
7426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
7428fi
7429
7430
7431if test "$NEATO" != "echo neato" ; then
7432
7433cat >>confdefs.h <<\_ACEOF
7434#define HAVE_NEATO 1
7435_ACEOF
7436
7437 if test "$llvm_cv_os_type" = "MingW" ; then
7438 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 fi
7440
7441cat >>confdefs.h <<_ACEOF
7442#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7443_ACEOF
7444
7445fi
7446# Extract the first word of "twopi", so it can be a program name with args.
7447set dummy twopi; ac_word=$2
7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_TWOPI+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 case $TWOPI in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7456 ;;
7457 *)
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471IFS=$as_save_IFS
7472
7473 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7474 ;;
7475esac
7476fi
7477TWOPI=$ac_cv_path_TWOPI
7478if test -n "$TWOPI"; then
7479 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7480echo "${ECHO_T}$TWOPI" >&6; }
7481else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487if test "$TWOPI" != "echo twopi" ; then
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define HAVE_TWOPI 1
7491_ACEOF
7492
7493 if test "$llvm_cv_os_type" = "MingW" ; then
7494 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 fi
7496
7497cat >>confdefs.h <<_ACEOF
7498#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7499_ACEOF
7500
7501fi
7502# Extract the first word of "circo", so it can be a program name with args.
7503set dummy circo; ac_word=$2
7504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506if test "${ac_cv_path_CIRCO+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 case $CIRCO in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7512 ;;
7513 *)
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525done
7526done
7527IFS=$as_save_IFS
7528
7529 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7530 ;;
7531esac
7532fi
7533CIRCO=$ac_cv_path_CIRCO
7534if test -n "$CIRCO"; then
7535 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7536echo "${ECHO_T}$CIRCO" >&6; }
7537else
7538 { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
7540fi
7541
7542
7543if test "$CIRCO" != "echo circo" ; then
7544
7545cat >>confdefs.h <<\_ACEOF
7546#define HAVE_CIRCO 1
7547_ACEOF
7548
7549 if test "$llvm_cv_os_type" = "MingW" ; then
7550 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551 fi
7552
7553cat >>confdefs.h <<_ACEOF
7554#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7555_ACEOF
7556
7557fi
Reid Spencera773bd52006-08-04 18:18:08 +00007558for ac_prog in gv gsview32
7559do
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561set dummy $ac_prog; ac_word=$2
7562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564if test "${ac_cv_path_GV+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567 case $GV in
7568 [\\/]* | ?:[\\/]*)
7569 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7570 ;;
7571 *)
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007578 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 +00007579 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584done
7585IFS=$as_save_IFS
7586
7587 ;;
7588esac
7589fi
7590GV=$ac_cv_path_GV
7591if test -n "$GV"; then
7592 { echo "$as_me:$LINENO: result: $GV" >&5
7593echo "${ECHO_T}$GV" >&6; }
7594else
7595 { echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6; }
7597fi
7598
7599
7600 test -n "$GV" && break
7601done
7602test -n "$GV" || GV="echo gv"
7603
7604if test "$GV" != "echo gv" ; then
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_GV 1
7608_ACEOF
7609
Jeff Cohen28783c32007-01-12 18:22:38 +00007610 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007611 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612 fi
7613
7614cat >>confdefs.h <<_ACEOF
7615#define LLVM_PATH_GV "$GV${EXEEXT}"
7616_ACEOF
7617
7618fi
7619# Extract the first word of "dotty", so it can be a program name with args.
7620set dummy dotty; ac_word=$2
7621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623if test "${ac_cv_path_DOTTY+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 case $DOTTY in
7627 [\\/]* | ?:[\\/]*)
7628 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7629 ;;
7630 *)
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007637 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 +00007638 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642done
7643done
7644IFS=$as_save_IFS
7645
7646 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7647 ;;
7648esac
7649fi
7650DOTTY=$ac_cv_path_DOTTY
7651if test -n "$DOTTY"; then
7652 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7653echo "${ECHO_T}$DOTTY" >&6; }
7654else
7655 { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
7657fi
7658
7659
7660if test "$DOTTY" != "echo dotty" ; then
7661
7662cat >>confdefs.h <<\_ACEOF
7663#define HAVE_DOTTY 1
7664_ACEOF
7665
Jeff Cohen28783c32007-01-12 18:22:38 +00007666 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007667 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7668 fi
7669
7670cat >>confdefs.h <<_ACEOF
7671#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7672_ACEOF
7673
7674fi
7675
7676
7677# Extract the first word of "perl", so it can be a program name with args.
7678set dummy perl; ac_word=$2
7679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681if test "${ac_cv_path_PERL+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 case $PERL in
7685 [\\/]* | ?:[\\/]*)
7686 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7687 ;;
7688 *)
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007695 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 +00007696 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701done
7702IFS=$as_save_IFS
7703
7704 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7705 ;;
7706esac
7707fi
7708PERL=$ac_cv_path_PERL
7709if test -n "$PERL"; then
7710 { echo "$as_me:$LINENO: result: $PERL" >&5
7711echo "${ECHO_T}$PERL" >&6; }
7712else
7713 { echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6; }
7715fi
7716
7717
7718if test "$PERL" != "none"; then
7719 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7720echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7721 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7722 { echo "$as_me:$LINENO: result: yes" >&5
7723echo "${ECHO_T}yes" >&6; }
7724 else
7725 PERL=none
7726 { echo "$as_me:$LINENO: result: not found" >&5
7727echo "${ECHO_T}not found" >&6; }
7728 fi
7729fi
7730
7731
7732if test x"$PERL" = xnone; then
7733 HAVE_PERL=0
7734
Reid Spencer59807fa2007-05-17 18:11:03 +00007735 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7736echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7737 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007738else
7739 HAVE_PERL=1
7740
7741fi
7742
7743# Find a good install program. We prefer a C program (faster),
7744# so one script is as good as another. But avoid the broken or
7745# incompatible versions:
7746# SysV /etc/install, /usr/sbin/install
7747# SunOS /usr/etc/install
7748# IRIX /sbin/install
7749# AIX /bin/install
7750# AmigaOS /C/install, which installs bootblocks on floppy discs
7751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7754# OS/2's system install, which has a completely different semantic
7755# ./install, which can be erroneously created by make from ./install.sh.
7756{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7757echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7758if test -z "$INSTALL"; then
7759if test "${ac_cv_path_install+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 # Account for people who put trailing slashes in PATH elements.
7768case $as_dir/ in
7769 ./ | .// | /cC/* | \
7770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7771 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7772 /usr/ucb/* ) ;;
7773 *)
7774 # OSF1 and SCO ODT 3.0 have their own names for install.
7775 # Don't use installbsd from OSF since it installs stuff as root
7776 # by default.
7777 for ac_prog in ginstall scoinst install; do
7778 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007779 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 +00007780 if test $ac_prog = install &&
7781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7782 # AIX install. It has an incompatible calling convention.
7783 :
7784 elif test $ac_prog = install &&
7785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7786 # program-specific install script used by HP pwplus--don't use.
7787 :
7788 else
7789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7790 break 3
7791 fi
7792 fi
7793 done
7794 done
7795 ;;
7796esac
7797done
7798IFS=$as_save_IFS
7799
7800
7801fi
7802 if test "${ac_cv_path_install+set}" = set; then
7803 INSTALL=$ac_cv_path_install
7804 else
7805 # As a last resort, use the slow shell script. Don't cache a
7806 # value for INSTALL within a source directory, because that will
7807 # break other packages using the cache if that directory is
7808 # removed, or if the value is a relative name.
7809 INSTALL=$ac_install_sh
7810 fi
7811fi
7812{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7813echo "${ECHO_T}$INSTALL" >&6; }
7814
7815# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7816# It thinks the first close brace ends the variable substitution.
7817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7818
7819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7820
7821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7822
7823
7824# Extract the first word of "bzip2", so it can be a program name with args.
7825set dummy bzip2; ac_word=$2
7826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7828if test "${ac_cv_path_BZIP2+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831 case $BZIP2 in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7834 ;;
7835 *)
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007842 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 +00007843 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847done
7848done
7849IFS=$as_save_IFS
7850
Reid Spencera773bd52006-08-04 18:18:08 +00007851 ;;
7852esac
7853fi
7854BZIP2=$ac_cv_path_BZIP2
7855if test -n "$BZIP2"; then
7856 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7857echo "${ECHO_T}$BZIP2" >&6; }
7858else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
7861fi
7862
7863
7864# Extract the first word of "doxygen", so it can be a program name with args.
7865set dummy doxygen; ac_word=$2
7866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868if test "${ac_cv_path_DOXYGEN+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 case $DOXYGEN in
7872 [\\/]* | ?:[\\/]*)
7873 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7874 ;;
7875 *)
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007882 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 +00007883 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887done
7888done
7889IFS=$as_save_IFS
7890
Reid Spencera773bd52006-08-04 18:18:08 +00007891 ;;
7892esac
7893fi
7894DOXYGEN=$ac_cv_path_DOXYGEN
7895if test -n "$DOXYGEN"; then
7896 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7897echo "${ECHO_T}$DOXYGEN" >&6; }
7898else
7899 { echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6; }
7901fi
7902
7903
Reid Spencera773bd52006-08-04 18:18:08 +00007904# Extract the first word of "groff", so it can be a program name with args.
7905set dummy groff; ac_word=$2
7906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_GROFF+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $GROFF in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007922 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 +00007923 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
Reid Spencera773bd52006-08-04 18:18:08 +00007931 ;;
7932esac
7933fi
7934GROFF=$ac_cv_path_GROFF
7935if test -n "$GROFF"; then
7936 { echo "$as_me:$LINENO: result: $GROFF" >&5
7937echo "${ECHO_T}$GROFF" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
7944# Extract the first word of "gzip", so it can be a program name with args.
7945set dummy gzip; ac_word=$2
7946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948if test "${ac_cv_path_GZIP+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951 case $GZIP in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7954 ;;
7955 *)
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007962 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 +00007963 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968done
7969IFS=$as_save_IFS
7970
Reid Spencera773bd52006-08-04 18:18:08 +00007971 ;;
7972esac
7973fi
7974GZIP=$ac_cv_path_GZIP
7975if test -n "$GZIP"; then
7976 { echo "$as_me:$LINENO: result: $GZIP" >&5
7977echo "${ECHO_T}$GZIP" >&6; }
7978else
7979 { echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6; }
7981fi
7982
7983
7984# Extract the first word of "pod2html", so it can be a program name with args.
7985set dummy pod2html; ac_word=$2
7986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7988if test "${ac_cv_path_POD2HTML+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991 case $POD2HTML in
7992 [\\/]* | ?:[\\/]*)
7993 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7994 ;;
7995 *)
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008002 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 +00008003 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007done
8008done
8009IFS=$as_save_IFS
8010
Reid Spencera773bd52006-08-04 18:18:08 +00008011 ;;
8012esac
8013fi
8014POD2HTML=$ac_cv_path_POD2HTML
8015if test -n "$POD2HTML"; then
8016 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8017echo "${ECHO_T}$POD2HTML" >&6; }
8018else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6; }
8021fi
8022
8023
8024# Extract the first word of "pod2man", so it can be a program name with args.
8025set dummy pod2man; ac_word=$2
8026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8028if test "${ac_cv_path_POD2MAN+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031 case $POD2MAN in
8032 [\\/]* | ?:[\\/]*)
8033 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8034 ;;
8035 *)
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008042 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 +00008043 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8046 fi
8047done
8048done
8049IFS=$as_save_IFS
8050
Reid Spencera773bd52006-08-04 18:18:08 +00008051 ;;
8052esac
8053fi
8054POD2MAN=$ac_cv_path_POD2MAN
8055if test -n "$POD2MAN"; then
8056 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8057echo "${ECHO_T}$POD2MAN" >&6; }
8058else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6; }
8061fi
8062
8063
8064# Extract the first word of "runtest", so it can be a program name with args.
8065set dummy runtest; ac_word=$2
8066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8068if test "${ac_cv_path_RUNTEST+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 case $RUNTEST in
8072 [\\/]* | ?:[\\/]*)
8073 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8074 ;;
8075 *)
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008082 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 +00008083 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087done
8088done
8089IFS=$as_save_IFS
8090
Reid Spencera773bd52006-08-04 18:18:08 +00008091 ;;
8092esac
8093fi
8094RUNTEST=$ac_cv_path_RUNTEST
8095if test -n "$RUNTEST"; then
8096 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8097echo "${ECHO_T}$RUNTEST" >&6; }
8098else
8099 { echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6; }
8101fi
8102
8103
8104
8105no_itcl=true
8106{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8107echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8108
8109# Check whether --with-tclinclude was given.
8110if test "${with_tclinclude+set}" = set; then
8111 withval=$with_tclinclude; with_tclinclude=${withval}
8112else
8113 with_tclinclude=''
8114fi
8115
8116if test "${ac_cv_path_tclsh+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119
8120if test x"${with_tclinclude}" != x ; then
8121 if test -f ${with_tclinclude}/tclsh ; then
8122 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8123 elif test -f ${with_tclinclude}/src/tclsh ; then
8124 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8125 else
8126 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8127echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8128 { (exit 1); exit 1; }; }
8129 fi
8130fi
8131
8132if test x"${ac_cv_path_tclsh}" = x ; then
8133 { echo "$as_me:$LINENO: result: none" >&5
8134echo "${ECHO_T}none" >&6; }
8135 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
8136do
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138set dummy $ac_prog; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_TCLSH+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 case $TCLSH in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008155 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 +00008156 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162IFS=$as_save_IFS
8163
8164 ;;
8165esac
8166fi
8167TCLSH=$ac_cv_path_TCLSH
8168if test -n "$TCLSH"; then
8169 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8170echo "${ECHO_T}$TCLSH" >&6; }
8171else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
8177 test -n "$TCLSH" && break
8178done
8179
8180 if test x"${TCLSH}" = x ; then
8181 ac_cv_path_tclsh='';
8182 else
8183 ac_cv_path_tclsh="${TCLSH}";
8184 fi
8185else
8186 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8187echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8188 TCLSH="${ac_cv_path_tclsh}"
8189
8190fi
8191
8192fi
8193
8194# Extract the first word of "zip", so it can be a program name with args.
8195set dummy zip; ac_word=$2
8196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8198if test "${ac_cv_path_ZIP+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 case $ZIP in
8202 [\\/]* | ?:[\\/]*)
8203 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008212 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 +00008213 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218done
8219IFS=$as_save_IFS
8220
Reid Spencera773bd52006-08-04 18:18:08 +00008221 ;;
8222esac
8223fi
8224ZIP=$ac_cv_path_ZIP
8225if test -n "$ZIP"; then
8226 { echo "$as_me:$LINENO: result: $ZIP" >&5
8227echo "${ECHO_T}$ZIP" >&6; }
8228else
8229 { echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6; }
8231fi
8232
8233
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008234for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008235do
8236 # Extract the first word of "$ac_prog", so it can be a program name with args.
8237set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8240if test "${ac_cv_path_OCAMLC+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242else
8243 case $OCAMLC in
8244 [\\/]* | ?:[\\/]*)
8245 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8246 ;;
8247 *)
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008254 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 +00008255 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259done
8260done
8261IFS=$as_save_IFS
8262
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008263 ;;
8264esac
8265fi
8266OCAMLC=$ac_cv_path_OCAMLC
8267if test -n "$OCAMLC"; then
8268 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8269echo "${ECHO_T}$OCAMLC" >&6; }
8270else
8271 { echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6; }
8273fi
8274
8275
Gordon Henriksene7072162008-03-07 18:20:01 +00008276 test -n "$OCAMLC" && break
8277done
8278
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008279for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008280do
8281 # Extract the first word of "$ac_prog", so it can be a program name with args.
8282set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8285if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 case $OCAMLOPT in
8289 [\\/]* | ?:[\\/]*)
8290 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8291 ;;
8292 *)
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008299 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 +00008300 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
8305done
8306IFS=$as_save_IFS
8307
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008308 ;;
8309esac
8310fi
8311OCAMLOPT=$ac_cv_path_OCAMLOPT
8312if test -n "$OCAMLOPT"; then
8313 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8314echo "${ECHO_T}$OCAMLOPT" >&6; }
8315else
8316 { echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6; }
8318fi
8319
8320
Gordon Henriksene7072162008-03-07 18:20:01 +00008321 test -n "$OCAMLOPT" && break
8322done
8323
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008324for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008325do
8326 # Extract the first word of "$ac_prog", so it can be a program name with args.
8327set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333 case $OCAMLDEP in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8336 ;;
8337 *)
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008344 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 +00008345 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349done
8350done
8351IFS=$as_save_IFS
8352
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008353 ;;
8354esac
8355fi
8356OCAMLDEP=$ac_cv_path_OCAMLDEP
8357if test -n "$OCAMLDEP"; then
8358 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8359echo "${ECHO_T}$OCAMLDEP" >&6; }
8360else
8361 { echo "$as_me:$LINENO: result: no" >&5
8362echo "${ECHO_T}no" >&6; }
8363fi
8364
8365
Gordon Henriksene7072162008-03-07 18:20:01 +00008366 test -n "$OCAMLDEP" && break
8367done
8368
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008369for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008370do
8371 # Extract the first word of "$ac_prog", so it can be a program name with args.
8372set dummy $ac_prog; ac_word=$2
8373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8375if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 case $OCAMLDOC in
8379 [\\/]* | ?:[\\/]*)
8380 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8381 ;;
8382 *)
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008389 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 +00008390 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394done
8395done
8396IFS=$as_save_IFS
8397
8398 ;;
8399esac
8400fi
8401OCAMLDOC=$ac_cv_path_OCAMLDOC
8402if test -n "$OCAMLDOC"; then
8403 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8404echo "${ECHO_T}$OCAMLDOC" >&6; }
8405else
8406 { echo "$as_me:$LINENO: result: no" >&5
8407echo "${ECHO_T}no" >&6; }
8408fi
8409
8410
8411 test -n "$OCAMLDOC" && break
8412done
8413
Torok Edwincc499a42008-10-22 09:56:27 +00008414for ac_prog in gas as
8415do
8416 # Extract the first word of "$ac_prog", so it can be a program name with args.
8417set dummy $ac_prog; ac_word=$2
8418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8420if test "${ac_cv_path_GAS+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423 case $GAS in
8424 [\\/]* | ?:[\\/]*)
8425 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8426 ;;
8427 *)
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008434 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 +00008435 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 break 2
8438 fi
8439done
8440done
8441IFS=$as_save_IFS
8442
8443 ;;
8444esac
8445fi
8446GAS=$ac_cv_path_GAS
8447if test -n "$GAS"; then
8448 { echo "$as_me:$LINENO: result: $GAS" >&5
8449echo "${ECHO_T}$GAS" >&6; }
8450else
8451 { echo "$as_me:$LINENO: result: no" >&5
8452echo "${ECHO_T}no" >&6; }
8453fi
8454
8455
8456 test -n "$GAS" && break
8457done
8458
Reid Spencera773bd52006-08-04 18:18:08 +00008459
8460{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8461echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8462if test "${llvm_cv_link_use_r+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 ac_ext=c
8466ac_cpp='$CPP $CPPFLAGS'
8467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8469ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470
8471 oldcflags="$CFLAGS"
8472 CFLAGS="$CFLAGS -Wl,-R."
8473 cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h. */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h. */
8479
8480int
8481main ()
8482{
8483int main() { return 0; }
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488rm -f conftest.$ac_objext conftest$ac_exeext
8489if { (ac_try="$ac_link"
8490case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493esac
8494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_link") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_try") 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008522 llvm_cv_link_use_r=yes
8523else
8524 echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 llvm_cv_link_use_r=no
8528fi
8529
Bill Wendlingebcceee2009-04-18 11:20:33 +00008530rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008531 conftest$ac_exeext conftest.$ac_ext
8532 CFLAGS="$oldcflags"
8533 ac_ext=c
8534ac_cpp='$CPP $CPPFLAGS'
8535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8537ac_compiler_gnu=$ac_cv_c_compiler_gnu
8538
8539
8540fi
8541{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8542echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8543if test "$llvm_cv_link_use_r" = yes ; then
8544
8545cat >>confdefs.h <<\_ACEOF
8546#define HAVE_LINK_R 1
8547_ACEOF
8548
8549 fi
8550
8551
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008552{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8553echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8554if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 ac_ext=c
8558ac_cpp='$CPP $CPPFLAGS'
8559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563 oldcflags="$CFLAGS"
8564 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8565 cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h. */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h. */
8571
8572int
8573main ()
8574{
8575int main() { return 0; }
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext conftest$ac_exeext
8581if { (ac_try="$ac_link"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598esac
8599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608esac
8609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_try") 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008614 llvm_cv_link_use_export_dynamic=yes
8615else
8616 echo "$as_me: failed program was:" >&5
8617sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 llvm_cv_link_use_export_dynamic=no
8620fi
8621
Bill Wendlingebcceee2009-04-18 11:20:33 +00008622rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008623 conftest$ac_exeext conftest.$ac_ext
8624 CFLAGS="$oldcflags"
8625 ac_ext=c
8626ac_cpp='$CPP $CPPFLAGS'
8627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629ac_compiler_gnu=$ac_cv_c_compiler_gnu
8630
8631
8632fi
8633{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8634echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8635if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8636
8637cat >>confdefs.h <<\_ACEOF
8638#define HAVE_LINK_EXPORT_DYNAMIC 1
8639_ACEOF
8640
8641 fi
8642
8643
Reid Spencera773bd52006-08-04 18:18:08 +00008644
8645
8646{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8647echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8648if test "${ac_cv_c_const+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651 cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657
8658int
8659main ()
8660{
8661/* FIXME: Include the comments suggested by Paul. */
8662#ifndef __cplusplus
8663 /* Ultrix mips cc rejects this. */
8664 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008665 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008666 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008667 char const *const *ccp;
8668 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008669 /* NEC SVR4.0.2 mips cc rejects this. */
8670 struct point {int x, y;};
8671 static struct point const zero = {0,0};
8672 /* AIX XL C 1.02.0.0 rejects this.
8673 It does not let you subtract one const X* pointer from another in
8674 an arm of an if-expression whose if-part is not a constant
8675 expression */
8676 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008677 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008678 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008679 ++ccp;
8680 p = (char**) ccp;
8681 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008682 { /* SCO 3.2v4 cc rejects this. */
8683 char *t;
8684 char const *s = 0 ? (char *) 0 : (char const *) 0;
8685
8686 *t++ = 0;
8687 if (s) return 0;
8688 }
8689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8690 int x[] = {25, 17};
8691 const int *foo = &x[0];
8692 ++foo;
8693 }
8694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8695 typedef const int *iptr;
8696 iptr p = 0;
8697 ++p;
8698 }
8699 { /* AIX XL C 1.02.0.0 rejects this saying
8700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8701 struct s { int j; const int *ap[3]; };
8702 struct s *b; b->j = 5;
8703 }
8704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8705 const int foo = 10;
8706 if (!foo) return 0;
8707 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008708 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008709#endif
8710
8711 ;
8712 return 0;
8713}
8714_ACEOF
8715rm -f conftest.$ac_objext
8716if { (ac_try="$ac_compile"
8717case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008749 ac_cv_c_const=yes
8750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_cv_c_const=no
8755fi
8756
8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758fi
8759{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8760echo "${ECHO_T}$ac_cv_c_const" >&6; }
8761if test $ac_cv_c_const = no; then
8762
8763cat >>confdefs.h <<\_ACEOF
8764#define const
8765_ACEOF
8766
8767fi
8768
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008769
8770
8771
8772
8773
8774ac_header_dirent=no
8775for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008777{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8778echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781else
8782 cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h. */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h. */
8788#include <sys/types.h>
8789#include <$ac_hdr>
8790
8791int
8792main ()
8793{
8794if ((DIR *) 0)
8795return 0;
8796 ;
8797 return 0;
8798}
8799_ACEOF
8800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008801if { (ac_try="$ac_compile"
8802case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805esac
8806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008813 (exit $ac_status); } &&
8814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8815 { (case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818esac
8819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_try") 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest.$ac_objext'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834 eval "$as_ac_Header=yes"
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
Reid Spencera773bd52006-08-04 18:18:08 +00008839 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840fi
Reid Spencera773bd52006-08-04 18:18:08 +00008841
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008843fi
Reid Spencera773bd52006-08-04 18:18:08 +00008844ac_res=`eval echo '${'$as_ac_Header'}'`
8845 { echo "$as_me:$LINENO: result: $ac_res" >&5
8846echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008847if test `eval echo '${'$as_ac_Header'}'` = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8850_ACEOF
8851
8852ac_header_dirent=$ac_hdr; break
8853fi
8854
8855done
8856# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8857if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8859echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008860if test "${ac_cv_search_opendir+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864cat >conftest.$ac_ext <<_ACEOF
8865/* confdefs.h. */
8866_ACEOF
8867cat confdefs.h >>conftest.$ac_ext
8868cat >>conftest.$ac_ext <<_ACEOF
8869/* end confdefs.h. */
8870
Reid Spencera773bd52006-08-04 18:18:08 +00008871/* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874#ifdef __cplusplus
8875extern "C"
8876#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877char opendir ();
8878int
8879main ()
8880{
Reid Spencera773bd52006-08-04 18:18:08 +00008881return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008882 ;
8883 return 0;
8884}
8885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008886for ac_lib in '' dir; do
8887 if test -z "$ac_lib"; then
8888 ac_res="none required"
8889 else
8890 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008892 fi
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894if { (ac_try="$ac_link"
8895case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898esac
8899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911esac
8912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921esac
8922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_try") 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008927 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008928else
8929 echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008932
8933fi
8934
Bill Wendlingebcceee2009-04-18 11:20:33 +00008935rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008936 conftest$ac_exeext
8937 if test "${ac_cv_search_opendir+set}" = set; then
8938 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008939fi
John Criswell7a73b802003-06-30 21:59:07 +00008940done
Reid Spencera773bd52006-08-04 18:18:08 +00008941if test "${ac_cv_search_opendir+set}" = set; then
8942 :
8943else
8944 ac_cv_search_opendir=no
8945fi
8946rm conftest.$ac_ext
8947LIBS=$ac_func_search_save_LIBS
8948fi
8949{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8950echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8951ac_res=$ac_cv_search_opendir
8952if test "$ac_res" != no; then
8953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008954
Reid Spencera773bd52006-08-04 18:18:08 +00008955fi
8956
8957else
8958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8959echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8960if test "${ac_cv_search_opendir+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962else
8963 ac_func_search_save_LIBS=$LIBS
8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */
8970
8971/* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8974#ifdef __cplusplus
8975extern "C"
8976#endif
8977char opendir ();
8978int
8979main ()
8980{
8981return opendir ();
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986for ac_lib in '' x; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8989 else
8990 ac_res=-l$ac_lib
8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8992 fi
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (ac_try="$ac_link"
8995case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_link") 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009027 ac_cv_search_opendir=$ac_res
9028else
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
9033fi
9034
Bill Wendlingebcceee2009-04-18 11:20:33 +00009035rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009036 conftest$ac_exeext
9037 if test "${ac_cv_search_opendir+set}" = set; then
9038 break
9039fi
9040done
9041if test "${ac_cv_search_opendir+set}" = set; then
9042 :
9043else
9044 ac_cv_search_opendir=no
9045fi
9046rm conftest.$ac_ext
9047LIBS=$ac_func_search_save_LIBS
9048fi
9049{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9050echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9051ac_res=$ac_cv_search_opendir
9052if test "$ac_res" != no; then
9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9054
9055fi
9056
9057fi
John Criswell7a73b802003-06-30 21:59:07 +00009058
9059
9060for ac_header in dlfcn.h
9061do
9062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009067 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009068fi
Reid Spencera773bd52006-08-04 18:18:08 +00009069ac_res=`eval echo '${'$as_ac_Header'}'`
9070 { echo "$as_me:$LINENO: result: $ac_res" >&5
9071echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009072else
Brian Gaeke0a621332004-09-08 20:38:05 +00009073 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009074{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009076cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009077/* confdefs.h. */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009082$ac_includes_default
9083#include <$ac_header>
9084_ACEOF
9085rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009086if { (ac_try="$ac_compile"
9087case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9100 { (case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103esac
9104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_try") 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest.$ac_objext'
9110 { (case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113esac
9114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_try") 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009119 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009120else
9121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009122sed 's/^/| /' conftest.$ac_ext >&5
9123
Reid Spencera773bd52006-08-04 18:18:08 +00009124 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009125fi
Reid Spencera773bd52006-08-04 18:18:08 +00009126
9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009130
9131# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009132{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009134cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009135/* confdefs.h. */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */
9140#include <$ac_header>
9141_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009142if { (ac_try="$ac_cpp conftest.$ac_ext"
9143case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146esac
9147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009154 (exit $ac_status); } >/dev/null; then
9155 if test -s conftest.err; then
9156 ac_cpp_err=$ac_c_preproc_warn_flag
9157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9158 else
9159 ac_cpp_err=
9160 fi
9161else
9162 ac_cpp_err=yes
9163fi
9164if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009165 ac_header_preproc=yes
9166else
9167 echo "$as_me: failed program was:" >&5
9168sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 ac_header_preproc=no
9171fi
Reid Spencera773bd52006-08-04 18:18:08 +00009172
Brian Gaeke0a621332004-09-08 20:38:05 +00009173rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9175echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009176
9177# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9179 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9184 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009185 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009186 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009199 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009200## ----------------------------------- ##
9201## Report this to llvmbugs@cs.uiuc.edu ##
9202## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009203_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009204 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009205 ;;
9206esac
Reid Spencera773bd52006-08-04 18:18:08 +00009207{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009212 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009213fi
Reid Spencera773bd52006-08-04 18:18:08 +00009214ac_res=`eval echo '${'$as_ac_Header'}'`
9215 { echo "$as_me:$LINENO: result: $ac_res" >&5
9216echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009217
9218fi
John Criswell7a73b802003-06-30 21:59:07 +00009219if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222_ACEOF
9223
9224fi
9225
9226done
9227
Reid Spencera773bd52006-08-04 18:18:08 +00009228# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009230 enableval=$enable_ltdl_install;
9231fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009232
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233
Bill Wendlingebcceee2009-04-18 11:20:33 +00009234
9235
9236if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237 INSTALL_LTDL_TRUE=
9238 INSTALL_LTDL_FALSE='#'
9239else
9240 INSTALL_LTDL_TRUE='#'
9241 INSTALL_LTDL_FALSE=
9242fi
9243
Bill Wendlingebcceee2009-04-18 11:20:33 +00009244
9245
9246if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247 CONVENIENCE_LTDL_TRUE=
9248 CONVENIENCE_LTDL_FALSE='#'
9249else
9250 CONVENIENCE_LTDL_TRUE='#'
9251 CONVENIENCE_LTDL_FALSE=
9252fi
9253
9254
Reid Spencera773bd52006-08-04 18:18:08 +00009255{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9256echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257library_names_spec=
9258libname_spec='lib$name'
9259soname_spec=
9260shrext_cmds=".so"
9261postinstall_cmds=
9262postuninstall_cmds=
9263finish_cmds=
9264finish_eval=
9265shlibpath_var=
9266shlibpath_overrides_runpath=unknown
9267version_type=none
9268dynamic_linker="$host_os ld.so"
9269sys_lib_dlsearch_path_spec="/lib /usr/lib"
9270if test "$GCC" = yes; then
9271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9273 # if the path contains ";" then we assume it to be the separator
9274 # otherwise default to the standard path separator (i.e. ":") - it is
9275 # assumed that no part of a normal pathname contains ";" but that should
9276 # okay in the real world where ";" in dirpaths is itself problematic.
9277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9278 else
9279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9280 fi
9281else
9282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9283fi
9284need_lib_prefix=unknown
9285hardcode_into_libs=no
9286
9287# when you set need_version to no, make sure it does not cause -set_version
9288# flags to be left without arguments
9289need_version=unknown
9290
9291case $host_os in
9292aix3*)
9293 version_type=linux
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9295 shlibpath_var=LIBPATH
9296
9297 # AIX 3 has no versioning support, so we append a major version to the name.
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 ;;
9300
9301aix4* | aix5*)
9302 version_type=linux
9303 need_lib_prefix=no
9304 need_version=no
9305 hardcode_into_libs=yes
9306 if test "$host_cpu" = ia64; then
9307 # AIX 5 supports IA64
9308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 else
9311 # With GCC up to 2.95.x, collect2 would create an import file
9312 # for dependence libraries. The import file would start with
9313 # the line `#! .'. This would cause the generated library to
9314 # depend on `.', always an invalid library. This was fixed in
9315 # development snapshots of GCC prior to 3.0.
9316 case $host_os in
9317 aix4 | aix4.[01] | aix4.[01].*)
9318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9319 echo ' yes '
9320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9321 :
9322 else
9323 can_build_shared=no
9324 fi
9325 ;;
9326 esac
9327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9328 # soname into executable. Probably we can add versioning support to
9329 # collect2, so additional links can be useful in future.
9330 if test "$aix_use_runtimelinking" = yes; then
9331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9332 # instead of lib<name>.a to let people know that these are not
9333 # typical AIX shared libraries.
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335 else
9336 # We preserve .a as extension for shared libraries through AIX4.2
9337 # and later when we are not doing run time linking.
9338 library_names_spec='${libname}${release}.a $libname.a'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 fi
9341 shlibpath_var=LIBPATH
9342 fi
9343 ;;
9344
9345amigaos*)
9346 library_names_spec='$libname.ixlibrary $libname.a'
9347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9348 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'
9349 ;;
9350
9351beos*)
9352 library_names_spec='${libname}${shared_ext}'
9353 dynamic_linker="$host_os ld.so"
9354 shlibpath_var=LIBRARY_PATH
9355 ;;
9356
9357bsdi[45]*)
9358 version_type=linux
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9366 # the default ld.so.conf also contains /usr/contrib/lib and
9367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9368 # libtool to hard-code these into programs
9369 ;;
9370
9371cygwin* | mingw* | pw32*)
9372 version_type=windows
9373 shrext_cmds=".dll"
9374 need_version=no
9375 need_lib_prefix=no
9376
9377 case $GCC,$host_os in
9378 yes,cygwin* | yes,mingw* | yes,pw32*)
9379 library_names_spec='$libname.dll.a'
9380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9381 postinstall_cmds='base_file=`basename \${file}`~
9382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9383 dldir=$destdir/`dirname \$dlpath`~
9384 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009385 $install_prog $dir/$dlname \$dldir/$dlname~
9386 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9388 dlpath=$dir/\$dldll~
9389 $rm \$dlpath'
9390 shlibpath_overrides_runpath=yes
9391
9392 case $host_os in
9393 cygwin*)
9394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9397 ;;
9398 mingw*)
9399 # MinGW DLLs use traditional 'lib' prefix
9400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9402 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9403 # It is most probably a Windows format PATH printed by
9404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9405 # path with ; separators, and with drive letters. We can handle the
9406 # drive letters (cygwin fileutils understands them), so leave them,
9407 # especially as we might pass files found there to a mingw objdump,
9408 # which wouldn't understand a cygwinified path. Ahh.
9409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9410 else
9411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9412 fi
9413 ;;
9414 pw32*)
9415 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009416 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 +00009417 ;;
9418 esac
9419 ;;
9420
9421 *)
9422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9423 ;;
9424 esac
9425 dynamic_linker='Win32 ld.exe'
9426 # FIXME: first we should search . and the directory the executable is in
9427 shlibpath_var=PATH
9428 ;;
9429
9430darwin* | rhapsody*)
9431 dynamic_linker="$host_os dyld"
9432 version_type=darwin
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9436 soname_spec='${libname}${release}${major}$shared_ext'
9437 shlibpath_overrides_runpath=yes
9438 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009439 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9441 if test "$GCC" = yes; then
9442 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"`
9443 else
9444 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9445 fi
9446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9447 ;;
9448
9449dgux*)
9450 version_type=linux
9451 need_lib_prefix=no
9452 need_version=no
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 ;;
9457
9458freebsd1*)
9459 dynamic_linker=no
9460 ;;
9461
9462kfreebsd*-gnu)
9463 version_type=linux
9464 need_lib_prefix=no
9465 need_version=no
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=no
9470 hardcode_into_libs=yes
9471 dynamic_linker='GNU ld.so'
9472 ;;
9473
Reid Spencera773bd52006-08-04 18:18:08 +00009474freebsd* | dragonfly*)
9475 # DragonFly does not have aout. When/if they implement a new
9476 # versioning mechanism, adjust this.
9477 if test -x /usr/bin/objformat; then
9478 objformat=`/usr/bin/objformat`
9479 else
9480 case $host_os in
9481 freebsd[123]*) objformat=aout ;;
9482 *) objformat=elf ;;
9483 esac
9484 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485 version_type=freebsd-$objformat
9486 case $version_type in
9487 freebsd-elf*)
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9489 need_version=no
9490 need_lib_prefix=no
9491 ;;
9492 freebsd-*)
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9494 need_version=yes
9495 ;;
9496 esac
9497 shlibpath_var=LD_LIBRARY_PATH
9498 case $host_os in
9499 freebsd2*)
9500 shlibpath_overrides_runpath=yes
9501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009502 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503 shlibpath_overrides_runpath=yes
9504 hardcode_into_libs=yes
9505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009508 shlibpath_overrides_runpath=no
9509 hardcode_into_libs=yes
9510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009511 freebsd*) # from 4.6 on
9512 shlibpath_overrides_runpath=yes
9513 hardcode_into_libs=yes
9514 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515 esac
9516 ;;
9517
9518gnu*)
9519 version_type=linux
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 hardcode_into_libs=yes
9526 ;;
9527
9528hpux9* | hpux10* | hpux11*)
9529 # Give a soname corresponding to the major version so that dld.sl refuses to
9530 # link against other versions.
9531 version_type=sunos
9532 need_lib_prefix=no
9533 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009534 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009535 ia64*)
9536 shrext_cmds='.so'
9537 hardcode_into_libs=yes
9538 dynamic_linker="$host_os dld.so"
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 if test "X$HPUX_IA64_MODE" = X32; then
9544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9545 else
9546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9547 fi
9548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9549 ;;
9550 hppa*64*)
9551 shrext_cmds='.sl'
9552 hardcode_into_libs=yes
9553 dynamic_linker="$host_os dld.sl"
9554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9560 ;;
9561 *)
9562 shrext_cmds='.sl'
9563 dynamic_linker="$host_os dld.sl"
9564 shlibpath_var=SHLIB_PATH
9565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 ;;
9569 esac
9570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9571 postinstall_cmds='chmod 555 $lib'
9572 ;;
9573
Reid Spencera773bd52006-08-04 18:18:08 +00009574interix3*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=no
9583 hardcode_into_libs=yes
9584 ;;
9585
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586irix5* | irix6* | nonstopux*)
9587 case $host_os in
9588 nonstopux*) version_type=nonstopux ;;
9589 *)
9590 if test "$lt_cv_prog_gnu_ld" = yes; then
9591 version_type=linux
9592 else
9593 version_type=irix
9594 fi ;;
9595 esac
9596 need_lib_prefix=no
9597 need_version=no
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9600 case $host_os in
9601 irix5* | nonstopux*)
9602 libsuff= shlibsuff=
9603 ;;
9604 *)
9605 case $LD in # libtool.m4 will add one of these switches to LD
9606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9607 libsuff= shlibsuff= libmagic=32-bit;;
9608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9609 libsuff=32 shlibsuff=N32 libmagic=N32;;
9610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9612 *) libsuff= shlibsuff= libmagic=never-match;;
9613 esac
9614 ;;
9615 esac
9616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9617 shlibpath_overrides_runpath=no
9618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9620 hardcode_into_libs=yes
9621 ;;
9622
9623# No shared lib support for Linux oldld, aout, or coff.
9624linux*oldld* | linux*aout* | linux*coff*)
9625 dynamic_linker=no
9626 ;;
9627
9628# This must be Linux ELF.
9629linux*)
9630 version_type=linux
9631 need_lib_prefix=no
9632 need_version=no
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 shlibpath_overrides_runpath=no
9638 # This implies no fast_install, which is unacceptable.
9639 # Some rework will be needed to allow for fast_install
9640 # before this can be enabled.
9641 hardcode_into_libs=yes
9642
9643 # Append ld.so.conf contents to the search path
9644 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009645 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 +00009646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9647 fi
9648
9649 # We used to test for /lib/ld.so.1 and disable shared libraries on
9650 # powerpc, because MkLinux only supported shared libraries with the
9651 # GNU dynamic linker. Since this was broken with cross compilers,
9652 # most powerpc-linux boxes support dynamic linking these days and
9653 # people can always --disable-shared, the test was removed, and we
9654 # assume the GNU/Linux dynamic linker is in use.
9655 dynamic_linker='GNU/Linux ld.so'
9656 ;;
9657
9658knetbsd*-gnu)
9659 version_type=linux
9660 need_lib_prefix=no
9661 need_version=no
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 dynamic_linker='GNU ld.so'
9668 ;;
9669
9670netbsd*)
9671 version_type=sunos
9672 need_lib_prefix=no
9673 need_version=no
9674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9677 dynamic_linker='NetBSD (a.out) ld.so'
9678 else
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 dynamic_linker='NetBSD ld.elf_so'
9682 fi
9683 shlibpath_var=LD_LIBRARY_PATH
9684 shlibpath_overrides_runpath=yes
9685 hardcode_into_libs=yes
9686 ;;
9687
9688newsos6)
9689 version_type=linux
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=yes
9693 ;;
9694
9695nto-qnx*)
9696 version_type=linux
9697 need_lib_prefix=no
9698 need_version=no
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=yes
9703 ;;
9704
9705openbsd*)
9706 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009707 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9710 case $host_os in
9711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9712 *) need_version=no ;;
9713 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9718 case $host_os in
9719 openbsd2.[89] | openbsd2.[89].*)
9720 shlibpath_overrides_runpath=no
9721 ;;
9722 *)
9723 shlibpath_overrides_runpath=yes
9724 ;;
9725 esac
9726 else
9727 shlibpath_overrides_runpath=yes
9728 fi
9729 ;;
9730
9731os2*)
9732 libname_spec='$name'
9733 shrext_cmds=".dll"
9734 need_lib_prefix=no
9735 library_names_spec='$libname${shared_ext} $libname.a'
9736 dynamic_linker='OS/2 ld.exe'
9737 shlibpath_var=LIBPATH
9738 ;;
9739
9740osf3* | osf4* | osf5*)
9741 version_type=osf
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9749 ;;
9750
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751solaris*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9760 # ldd complains unless libraries are executable
9761 postinstall_cmds='chmod +x $lib'
9762 ;;
9763
9764sunos4*)
9765 version_type=sunos
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 shlibpath_overrides_runpath=yes
9770 if test "$with_gnu_ld" = yes; then
9771 need_lib_prefix=no
9772 fi
9773 need_version=yes
9774 ;;
9775
Reid Spencera773bd52006-08-04 18:18:08 +00009776sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 version_type=linux
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 case $host_vendor in
9782 sni)
9783 shlibpath_overrides_runpath=no
9784 need_lib_prefix=no
9785 export_dynamic_flag_spec='${wl}-Blargedynsym'
9786 runpath_var=LD_RUN_PATH
9787 ;;
9788 siemens)
9789 need_lib_prefix=no
9790 ;;
9791 motorola)
9792 need_lib_prefix=no
9793 need_version=no
9794 shlibpath_overrides_runpath=no
9795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9796 ;;
9797 esac
9798 ;;
9799
9800sysv4*MP*)
9801 if test -d /usr/nec ;then
9802 version_type=linux
9803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9804 soname_spec='$libname${shared_ext}.$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 fi
9807 ;;
9808
Reid Spencera773bd52006-08-04 18:18:08 +00009809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9810 version_type=freebsd-elf
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 hardcode_into_libs=yes
9817 if test "$with_gnu_ld" = yes; then
9818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9819 shlibpath_overrides_runpath=no
9820 else
9821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9822 shlibpath_overrides_runpath=yes
9823 case $host_os in
9824 sco3.2v5*)
9825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9826 ;;
9827 esac
9828 fi
9829 sys_lib_dlsearch_path_spec='/usr/lib'
9830 ;;
9831
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832uts4*)
9833 version_type=linux
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 ;;
9838
9839*)
9840 dynamic_linker=no
9841 ;;
9842esac
Reid Spencera773bd52006-08-04 18:18:08 +00009843{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9844echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845test "$dynamic_linker" = no && can_build_shared=no
9846
Reid Spencera773bd52006-08-04 18:18:08 +00009847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9848if test "$GCC" = yes; then
9849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9850fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851
Reid Spencera773bd52006-08-04 18:18:08 +00009852
9853{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9854echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855if test "${libltdl_cv_shlibext+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857else
9858
9859module=yes
9860eval libltdl_cv_shlibext=$shrext_cmds
9861
9862fi
Reid Spencera773bd52006-08-04 18:18:08 +00009863{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9864echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865if test -n "$libltdl_cv_shlibext"; then
9866
9867cat >>confdefs.h <<_ACEOF
9868#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9869_ACEOF
9870
9871fi
9872
9873
Reid Spencera773bd52006-08-04 18:18:08 +00009874{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9875echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876if test "${libltdl_cv_shlibpath_var+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879 libltdl_cv_shlibpath_var="$shlibpath_var"
9880fi
Reid Spencera773bd52006-08-04 18:18:08 +00009881{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9882echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883if test -n "$libltdl_cv_shlibpath_var"; then
9884
9885cat >>confdefs.h <<_ACEOF
9886#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9887_ACEOF
9888
9889fi
9890
9891
Reid Spencera773bd52006-08-04 18:18:08 +00009892{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9893echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894if test "${libltdl_cv_sys_search_path+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896else
9897 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9898fi
Reid Spencera773bd52006-08-04 18:18:08 +00009899{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9900echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901if test -n "$libltdl_cv_sys_search_path"; then
9902 sys_search_path=
9903 for dir in $libltdl_cv_sys_search_path; do
9904 if test -z "$sys_search_path"; then
9905 sys_search_path="$dir"
9906 else
9907 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9908 fi
9909 done
9910
9911cat >>confdefs.h <<_ACEOF
9912#define LTDL_SYSSEARCHPATH "$sys_search_path"
9913_ACEOF
9914
9915fi
9916
Reid Spencera773bd52006-08-04 18:18:08 +00009917{ echo "$as_me:$LINENO: checking for objdir" >&5
9918echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919if test "${libltdl_cv_objdir+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922 libltdl_cv_objdir="$objdir"
9923 if test -n "$objdir"; then
9924 :
9925 else
9926 rm -f .libs 2>/dev/null
9927 mkdir .libs 2>/dev/null
9928 if test -d .libs; then
9929 libltdl_cv_objdir=.libs
9930 else
9931 # MS-DOS does not allow filenames that begin with a dot.
9932 libltdl_cv_objdir=_libs
9933 fi
9934 rmdir .libs 2>/dev/null
9935 fi
9936
9937fi
Reid Spencera773bd52006-08-04 18:18:08 +00009938{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9939echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940
9941cat >>confdefs.h <<_ACEOF
9942#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9943_ACEOF
9944
9945
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946
9947
9948
9949
9950# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009951{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9952echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955else
9956
9957# These are sane defaults that work on at least a few old systems.
9958# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9959
9960# Character class describing NM global symbol codes.
9961symcode='[BCDEGRST]'
9962
9963# Regexp to match symbols that can be accessed directly from C.
9964sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9965
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966# Transform an extracted symbol line into a proper C declaration
9967lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9968
9969# Transform an extracted symbol line into symbol name and symbol address
9970lt_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'"
9971
9972# Define system-specific variables.
9973case $host_os in
9974aix*)
9975 symcode='[BCDT]'
9976 ;;
9977cygwin* | mingw* | pw32*)
9978 symcode='[ABCDGISTW]'
9979 ;;
9980hpux*) # Its linker distinguishes data from code symbols
9981 if test "$host_cpu" = ia64; then
9982 symcode='[ABCDEGRST]'
9983 fi
9984 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9985 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'"
9986 ;;
9987linux*)
9988 if test "$host_cpu" = ia64; then
9989 symcode='[ABCDGIRSTW]'
9990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9991 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'"
9992 fi
9993 ;;
9994irix* | nonstopux*)
9995 symcode='[BCDEGRST]'
9996 ;;
9997osf*)
9998 symcode='[BCDEGQRST]'
9999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010000solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001 symcode='[BDRT]'
10002 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010003sco3.2v5*)
10004 symcode='[DT]'
10005 ;;
10006sysv4.2uw2*)
10007 symcode='[DT]'
10008 ;;
10009sysv5* | sco5v6* | unixware* | OpenUNIX*)
10010 symcode='[ABDT]'
10011 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012sysv4)
10013 symcode='[DFNSTU]'
10014 ;;
10015esac
10016
10017# Handle CRLF in mingw tool chain
10018opt_cr=
10019case $build_os in
10020mingw*)
10021 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10022 ;;
10023esac
10024
10025# If we're using GNU nm, then use its standard symbol codes.
10026case `$NM -V 2>&1` in
10027*GNU* | *'with BFD'*)
10028 symcode='[ABCDGIRSTW]' ;;
10029esac
10030
10031# Try without a prefix undercore, then with it.
10032for ac_symprfx in "" "_"; do
10033
Reid Spencera773bd52006-08-04 18:18:08 +000010034 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10035 symxfrm="\\1 $ac_symprfx\\2 \\2"
10036
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010038 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 +000010039
10040 # Check to see that the pipe works correctly.
10041 pipe_works=no
10042
10043 rm -f conftest*
10044 cat > conftest.$ac_ext <<EOF
10045#ifdef __cplusplus
10046extern "C" {
10047#endif
10048char nm_test_var;
10049void nm_test_func(){}
10050#ifdef __cplusplus
10051}
10052#endif
10053int main(){nm_test_var='a';nm_test_func();return(0);}
10054EOF
10055
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; then
10061 # Now try to grab the symbols.
10062 nlist=conftest.nm
10063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && test -s "$nlist"; then
10068 # Try sorting and uniquifying the output.
10069 if sort "$nlist" | uniq > "$nlist"T; then
10070 mv -f "$nlist"T "$nlist"
10071 else
10072 rm -f "$nlist"T
10073 fi
10074
10075 # Make sure that we snagged all the symbols we need.
10076 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10077 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10078 cat <<EOF > conftest.$ac_ext
10079#ifdef __cplusplus
10080extern "C" {
10081#endif
10082
10083EOF
10084 # Now generate the symbol file.
10085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10086
10087 cat <<EOF >> conftest.$ac_ext
10088#if defined (__STDC__) && __STDC__
10089# define lt_ptr_t void *
10090#else
10091# define lt_ptr_t char *
10092# define const
10093#endif
10094
10095/* The mapping between symbol names and symbols. */
10096const struct {
10097 const char *name;
10098 lt_ptr_t address;
10099}
10100lt_preloaded_symbols[] =
10101{
10102EOF
10103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10104 cat <<\EOF >> conftest.$ac_ext
10105 {0, (lt_ptr_t) 0}
10106};
10107
10108#ifdef __cplusplus
10109}
10110#endif
10111EOF
10112 # Now try linking the two files.
10113 mv conftest.$ac_objext conftstm.$ac_objext
10114 lt_save_LIBS="$LIBS"
10115 lt_save_CFLAGS="$CFLAGS"
10116 LIBS="conftstm.$ac_objext"
10117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10123 pipe_works=yes
10124 fi
10125 LIBS="$lt_save_LIBS"
10126 CFLAGS="$lt_save_CFLAGS"
10127 else
10128 echo "cannot find nm_test_func in $nlist" >&5
10129 fi
10130 else
10131 echo "cannot find nm_test_var in $nlist" >&5
10132 fi
10133 else
10134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10135 fi
10136 else
10137 echo "$progname: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10139 fi
10140 rm -f conftest* conftst*
10141
10142 # Do not use the global_symbol_pipe unless it works.
10143 if test "$pipe_works" = yes; then
10144 break
10145 else
10146 lt_cv_sys_global_symbol_pipe=
10147 fi
10148done
10149
10150fi
10151
10152if test -z "$lt_cv_sys_global_symbol_pipe"; then
10153 lt_cv_sys_global_symbol_to_cdecl=
10154fi
10155if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010156 { echo "$as_me:$LINENO: result: failed" >&5
10157echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158else
Reid Spencera773bd52006-08-04 18:18:08 +000010159 { echo "$as_me:$LINENO: result: ok" >&5
10160echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161fi
10162
10163
Reid Spencera773bd52006-08-04 18:18:08 +000010164{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10165echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10170 libltdl_cv_preloaded_symbols=yes
10171 else
10172 libltdl_cv_preloaded_symbols=no
10173 fi
10174
10175fi
Reid Spencera773bd52006-08-04 18:18:08 +000010176{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10177echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10179
10180cat >>confdefs.h <<\_ACEOF
10181#define HAVE_PRELOADED_SYMBOLS 1
10182_ACEOF
10183
10184fi
10185
10186LIBADD_DL=
10187
10188ac_ext=c
10189ac_cpp='$CPP $CPPFLAGS'
10190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193
10194
Reid Spencera773bd52006-08-04 18:18:08 +000010195{ echo "$as_me:$LINENO: checking for shl_load" >&5
10196echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197if test "${ac_cv_func_shl_load+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10199else
10200 cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10208#define shl_load innocuous_shl_load
10209
10210/* System header to define __stub macros and hopefully few prototypes,
10211 which can conflict with char shl_load (); below.
10212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10213 <limits.h> exists even on freestanding compilers. */
10214
10215#ifdef __STDC__
10216# include <limits.h>
10217#else
10218# include <assert.h>
10219#endif
10220
10221#undef shl_load
10222
Reid Spencera773bd52006-08-04 18:18:08 +000010223/* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226#ifdef __cplusplus
10227extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229char shl_load ();
10230/* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010233#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235#endif
10236
10237int
10238main ()
10239{
Reid Spencera773bd52006-08-04 18:18:08 +000010240return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010246if { (ac_try="$ac_link"
10247case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250esac
10251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest$ac_exeext'
10270 { (case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_try") 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 ac_cv_func_shl_load=yes
10280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
Reid Spencera773bd52006-08-04 18:18:08 +000010284 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285fi
Reid Spencera773bd52006-08-04 18:18:08 +000010286
Bill Wendlingebcceee2009-04-18 11:20:33 +000010287rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288 conftest$ac_exeext conftest.$ac_ext
10289fi
Reid Spencera773bd52006-08-04 18:18:08 +000010290{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10291echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292if test $ac_cv_func_shl_load = yes; then
10293
10294cat >>confdefs.h <<\_ACEOF
10295#define HAVE_SHL_LOAD 1
10296_ACEOF
10297
10298else
Reid Spencera773bd52006-08-04 18:18:08 +000010299 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10300echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
10304 ac_check_lib_save_LIBS=$LIBS
10305LIBS="-ldld $LIBS"
10306cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312
Reid Spencera773bd52006-08-04 18:18:08 +000010313/* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316#ifdef __cplusplus
10317extern "C"
10318#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319char shl_load ();
10320int
10321main ()
10322{
Reid Spencera773bd52006-08-04 18:18:08 +000010323return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324 ;
10325 return 0;
10326}
10327_ACEOF
10328rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010329if { (ac_try="$ac_link"
10330case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333esac
10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10343 { (case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_try") 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362 ac_cv_lib_dld_shl_load=yes
10363else
10364 echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
Reid Spencera773bd52006-08-04 18:18:08 +000010367 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368fi
Reid Spencera773bd52006-08-04 18:18:08 +000010369
Bill Wendlingebcceee2009-04-18 11:20:33 +000010370rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 conftest$ac_exeext conftest.$ac_ext
10372LIBS=$ac_check_lib_save_LIBS
10373fi
Reid Spencera773bd52006-08-04 18:18:08 +000010374{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10375echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376if test $ac_cv_lib_dld_shl_load = yes; then
10377
10378cat >>confdefs.h <<\_ACEOF
10379#define HAVE_SHL_LOAD 1
10380_ACEOF
10381
10382 LIBADD_DL="$LIBADD_DL -ldld"
10383else
Reid Spencera773bd52006-08-04 18:18:08 +000010384 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10385echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389 ac_check_lib_save_LIBS=$LIBS
10390LIBS="-ldl $LIBS"
10391cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h. */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h. */
10397
Reid Spencera773bd52006-08-04 18:18:08 +000010398/* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401#ifdef __cplusplus
10402extern "C"
10403#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404char dlopen ();
10405int
10406main ()
10407{
Reid Spencera773bd52006-08-04 18:18:08 +000010408return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409 ;
10410 return 0;
10411}
10412_ACEOF
10413rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010414if { (ac_try="$ac_link"
10415case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441esac
10442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 ac_cv_lib_dl_dlopen=yes
10448else
10449 echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
Reid Spencera773bd52006-08-04 18:18:08 +000010452 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453fi
Reid Spencera773bd52006-08-04 18:18:08 +000010454
Bill Wendlingebcceee2009-04-18 11:20:33 +000010455rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 conftest$ac_exeext conftest.$ac_ext
10457LIBS=$ac_check_lib_save_LIBS
10458fi
Reid Spencera773bd52006-08-04 18:18:08 +000010459{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10460echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461if test $ac_cv_lib_dl_dlopen = yes; then
10462
10463cat >>confdefs.h <<\_ACEOF
10464#define HAVE_LIBDL 1
10465_ACEOF
10466
10467 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10468else
10469 cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
10475#if HAVE_DLFCN_H
10476# include <dlfcn.h>
10477#endif
10478
10479int
10480main ()
10481{
10482dlopen(0, 0);
10483 ;
10484 return 0;
10485}
10486_ACEOF
10487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010488if { (ac_try="$ac_link"
10489case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505esac
10506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521
10522cat >>confdefs.h <<\_ACEOF
10523#define HAVE_LIBDL 1
10524_ACEOF
10525 libltdl_cv_func_dlopen="yes"
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
Reid Spencera773bd52006-08-04 18:18:08 +000010530 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10531echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535 ac_check_lib_save_LIBS=$LIBS
10536LIBS="-lsvld $LIBS"
10537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543
Reid Spencera773bd52006-08-04 18:18:08 +000010544/* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547#ifdef __cplusplus
10548extern "C"
10549#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550char dlopen ();
10551int
10552main ()
10553{
Reid Spencera773bd52006-08-04 18:18:08 +000010554return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ;
10556 return 0;
10557}
10558_ACEOF
10559rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010560if { (ac_try="$ac_link"
10561case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 ac_cv_lib_svld_dlopen=yes
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
Reid Spencera773bd52006-08-04 18:18:08 +000010598 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599fi
Reid Spencera773bd52006-08-04 18:18:08 +000010600
Bill Wendlingebcceee2009-04-18 11:20:33 +000010601rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602 conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
Reid Spencera773bd52006-08-04 18:18:08 +000010605{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10606echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607if test $ac_cv_lib_svld_dlopen = yes; then
10608
10609cat >>confdefs.h <<\_ACEOF
10610#define HAVE_LIBDL 1
10611_ACEOF
10612
10613 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10614else
Reid Spencera773bd52006-08-04 18:18:08 +000010615 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10616echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 ac_check_lib_save_LIBS=$LIBS
10621LIBS="-ldld $LIBS"
10622cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
10627/* end confdefs.h. */
10628
Reid Spencera773bd52006-08-04 18:18:08 +000010629/* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632#ifdef __cplusplus
10633extern "C"
10634#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635char dld_link ();
10636int
10637main ()
10638{
Reid Spencera773bd52006-08-04 18:18:08 +000010639return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010645if { (ac_try="$ac_link"
10646case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649esac
10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10659 { (case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_try") 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672esac
10673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ac_cv_lib_dld_dld_link=yes
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
Reid Spencera773bd52006-08-04 18:18:08 +000010683 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684fi
Reid Spencera773bd52006-08-04 18:18:08 +000010685
Bill Wendlingebcceee2009-04-18 11:20:33 +000010686rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687 conftest$ac_exeext conftest.$ac_ext
10688LIBS=$ac_check_lib_save_LIBS
10689fi
Reid Spencera773bd52006-08-04 18:18:08 +000010690{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10691echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692if test $ac_cv_lib_dld_dld_link = yes; then
10693
10694cat >>confdefs.h <<\_ACEOF
10695#define HAVE_DLD 1
10696_ACEOF
10697
10698 LIBADD_DL="$LIBADD_DL -ldld"
10699else
Reid Spencera773bd52006-08-04 18:18:08 +000010700 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10701echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704else
10705 cat >conftest.$ac_ext <<_ACEOF
10706/* confdefs.h. */
10707_ACEOF
10708cat confdefs.h >>conftest.$ac_ext
10709cat >>conftest.$ac_ext <<_ACEOF
10710/* end confdefs.h. */
10711/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10713#define _dyld_func_lookup innocuous__dyld_func_lookup
10714
10715/* System header to define __stub macros and hopefully few prototypes,
10716 which can conflict with char _dyld_func_lookup (); below.
10717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10718 <limits.h> exists even on freestanding compilers. */
10719
10720#ifdef __STDC__
10721# include <limits.h>
10722#else
10723# include <assert.h>
10724#endif
10725
10726#undef _dyld_func_lookup
10727
Reid Spencera773bd52006-08-04 18:18:08 +000010728/* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731#ifdef __cplusplus
10732extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734char _dyld_func_lookup ();
10735/* The GNU C library defines this for functions which it implements
10736 to always fail with ENOSYS. Some functions are actually named
10737 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010738#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740#endif
10741
10742int
10743main ()
10744{
Reid Spencera773bd52006-08-04 18:18:08 +000010745return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 ;
10747 return 0;
10748}
10749_ACEOF
10750rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010751if { (ac_try="$ac_link"
10752case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755esac
10756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10765 { (case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768esac
10769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_try") 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest$ac_exeext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 ac_cv_func__dyld_func_lookup=yes
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
Reid Spencera773bd52006-08-04 18:18:08 +000010789 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790fi
Reid Spencera773bd52006-08-04 18:18:08 +000010791
Bill Wendlingebcceee2009-04-18 11:20:33 +000010792rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793 conftest$ac_exeext conftest.$ac_ext
10794fi
Reid Spencera773bd52006-08-04 18:18:08 +000010795{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10796echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797if test $ac_cv_func__dyld_func_lookup = yes; then
10798
10799cat >>confdefs.h <<\_ACEOF
10800#define HAVE_DYLD 1
10801_ACEOF
10802
10803fi
10804
10805
10806fi
10807
10808
10809fi
10810
10811
10812fi
Reid Spencera773bd52006-08-04 18:18:08 +000010813
Bill Wendlingebcceee2009-04-18 11:20:33 +000010814rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 conftest$ac_exeext conftest.$ac_ext
10816
10817fi
10818
10819
10820fi
10821
10822
10823fi
10824
10825
10826if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10827then
10828 lt_save_LIBS="$LIBS"
10829 LIBS="$LIBS $LIBADD_DL"
10830
10831for ac_func in dlerror
10832do
10833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847#define $ac_func innocuous_$ac_func
10848
10849/* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10853
10854#ifdef __STDC__
10855# include <limits.h>
10856#else
10857# include <assert.h>
10858#endif
10859
10860#undef $ac_func
10861
Reid Spencera773bd52006-08-04 18:18:08 +000010862/* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865#ifdef __cplusplus
10866extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868char $ac_func ();
10869/* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010872#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874#endif
10875
10876int
10877main ()
10878{
Reid Spencera773bd52006-08-04 18:18:08 +000010879return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010885if { (ac_try="$ac_link"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918 eval "$as_ac_var=yes"
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
Reid Spencera773bd52006-08-04 18:18:08 +000010923 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924fi
Reid Spencera773bd52006-08-04 18:18:08 +000010925
Bill Wendlingebcceee2009-04-18 11:20:33 +000010926rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927 conftest$ac_exeext conftest.$ac_ext
10928fi
Reid Spencera773bd52006-08-04 18:18:08 +000010929ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10935_ACEOF
10936
10937fi
10938done
10939
10940 LIBS="$lt_save_LIBS"
10941fi
10942ac_ext=c
10943ac_cpp='$CPP $CPPFLAGS'
10944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10946ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947
10948
10949
Reid Spencera773bd52006-08-04 18:18:08 +000010950{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10951echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955 ac_cv_sys_symbol_underscore=no
10956 cat > conftest.$ac_ext <<EOF
10957void nm_test_func(){}
10958int main(){nm_test_func;return 0;}
10959EOF
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; then
10965 # Now try to grab the symbols.
10966 ac_nlist=conftest.nm
10967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } && test -s "$ac_nlist"; then
10972 # See whether the symbols have a leading underscore.
10973 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10974 ac_cv_sys_symbol_underscore=yes
10975 else
10976 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10977 :
10978 else
10979 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10980 fi
10981 fi
10982 else
10983 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10984 fi
10985 else
10986 echo "configure: failed program was:" >&5
10987 cat conftest.c >&5
10988 fi
10989 rm -rf conftest*
10990
10991fi
Reid Spencera773bd52006-08-04 18:18:08 +000010992{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10993echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994
10995
10996if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10997 if test x"$libltdl_cv_func_dlopen" = xyes ||
10998 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010999 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11000echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001if test "${libltdl_cv_need_uscore+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004 libltdl_cv_need_uscore=unknown
11005 save_LIBS="$LIBS"
11006 LIBS="$LIBS $LIBADD_DL"
11007 if test "$cross_compiling" = yes; then :
11008 libltdl_cv_need_uscore=cross
11009else
11010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011 lt_status=$lt_dlunknown
11012 cat > conftest.$ac_ext <<EOF
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011013#line 11013 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014#include "confdefs.h"
11015
11016#if HAVE_DLFCN_H
11017#include <dlfcn.h>
11018#endif
11019
11020#include <stdio.h>
11021
11022#ifdef RTLD_GLOBAL
11023# define LT_DLGLOBAL RTLD_GLOBAL
11024#else
11025# ifdef DL_GLOBAL
11026# define LT_DLGLOBAL DL_GLOBAL
11027# else
11028# define LT_DLGLOBAL 0
11029# endif
11030#endif
11031
11032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033 find out it does not work in some platform. */
11034#ifndef LT_DLLAZY_OR_NOW
11035# ifdef RTLD_LAZY
11036# define LT_DLLAZY_OR_NOW RTLD_LAZY
11037# else
11038# ifdef DL_LAZY
11039# define LT_DLLAZY_OR_NOW DL_LAZY
11040# else
11041# ifdef RTLD_NOW
11042# define LT_DLLAZY_OR_NOW RTLD_NOW
11043# else
11044# ifdef DL_NOW
11045# define LT_DLLAZY_OR_NOW DL_NOW
11046# else
11047# define LT_DLLAZY_OR_NOW 0
11048# endif
11049# endif
11050# endif
11051# endif
11052#endif
11053
11054#ifdef __cplusplus
11055extern "C" void exit (int);
11056#endif
11057
11058void fnord() { int i=42;}
11059int main ()
11060{
11061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11062 int status = $lt_dlunknown;
11063
11064 if (self)
11065 {
11066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11068 /* dlclose (self); */
11069 }
Reid Spencera773bd52006-08-04 18:18:08 +000011070 else
11071 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072
11073 exit (status);
11074}
11075EOF
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011081 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082 lt_status=$?
11083 case x$lt_status in
11084 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11085 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011086 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 esac
11088 else :
11089 # compilation failed
11090
11091 fi
11092fi
11093rm -fr conftest*
11094
11095 LIBS="$save_LIBS"
11096
11097fi
Reid Spencera773bd52006-08-04 18:18:08 +000011098{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11099echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100 fi
11101fi
11102
11103if test x"$libltdl_cv_need_uscore" = xyes; then
11104
11105cat >>confdefs.h <<\_ACEOF
11106#define NEED_USCORE 1
11107_ACEOF
11108
11109fi
11110
11111
Reid Spencera773bd52006-08-04 18:18:08 +000011112{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11113echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116else
11117 # PORTME does your system automatically load deplibs for dlopen?
11118 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11119 # For now, we just catch OSes we know something about -- in the
11120 # future, we'll try test this programmatically.
11121 libltdl_cv_sys_dlopen_deplibs=unknown
11122 case "$host_os" in
11123 aix3*|aix4.1.*|aix4.2.*)
11124 # Unknown whether this is true for these versions of AIX, but
11125 # we want this `case' here to explicitly catch those versions.
11126 libltdl_cv_sys_dlopen_deplibs=unknown
11127 ;;
11128 aix[45]*)
11129 libltdl_cv_sys_dlopen_deplibs=yes
11130 ;;
11131 darwin*)
11132 # Assuming the user has installed a libdl from somewhere, this is true
11133 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11134 libltdl_cv_sys_dlopen_deplibs=yes
11135 ;;
11136 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11137 # GNU and its variants, using gnu ld.so (Glibc)
11138 libltdl_cv_sys_dlopen_deplibs=yes
11139 ;;
11140 hpux10*|hpux11*)
11141 libltdl_cv_sys_dlopen_deplibs=yes
11142 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011143 interix*)
11144 libltdl_cv_sys_dlopen_deplibs=yes
11145 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146 irix[12345]*|irix6.[01]*)
11147 # Catch all versions of IRIX before 6.2, and indicate that we don't
11148 # know how it worked for any of those versions.
11149 libltdl_cv_sys_dlopen_deplibs=unknown
11150 ;;
11151 irix*)
11152 # The case above catches anything before 6.2, and it's known that
11153 # at 6.2 and later dlopen does load deplibs.
11154 libltdl_cv_sys_dlopen_deplibs=yes
11155 ;;
11156 netbsd*)
11157 libltdl_cv_sys_dlopen_deplibs=yes
11158 ;;
11159 openbsd*)
11160 libltdl_cv_sys_dlopen_deplibs=yes
11161 ;;
11162 osf[1234]*)
11163 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11164 # it did *not* use an RPATH in a shared library to find objects the
11165 # library depends on, so we explictly say `no'.
11166 libltdl_cv_sys_dlopen_deplibs=no
11167 ;;
11168 osf5.0|osf5.0a|osf5.1)
11169 # dlopen *does* load deplibs and with the right loader patch applied
11170 # it even uses RPATH in a shared library to search for shared objects
11171 # that the library depends on, but there's no easy way to know if that
11172 # patch is installed. Since this is the case, all we can really
11173 # say is unknown -- it depends on the patch being installed. If
11174 # it is, this changes to `yes'. Without it, it would be `no'.
11175 libltdl_cv_sys_dlopen_deplibs=unknown
11176 ;;
11177 osf*)
11178 # the two cases above should catch all versions of osf <= 5.1. Read
11179 # the comments above for what we know about them.
11180 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11181 # is used to find them so we can finally say `yes'.
11182 libltdl_cv_sys_dlopen_deplibs=yes
11183 ;;
11184 solaris*)
11185 libltdl_cv_sys_dlopen_deplibs=yes
11186 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11188 libltdl_cv_sys_dlopen_deplibs=yes
11189 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190 esac
11191
11192fi
Reid Spencera773bd52006-08-04 18:18:08 +000011193{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11194echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11196
11197cat >>confdefs.h <<\_ACEOF
11198#define LTDL_DLOPEN_DEPLIBS 1
11199_ACEOF
11200
11201fi
11202
11203
11204for ac_header in argz.h
11205do
11206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212fi
Reid Spencera773bd52006-08-04 18:18:08 +000011213ac_res=`eval echo '${'$as_ac_Header'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216else
11217 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011218{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226$ac_includes_default
11227#include <$ac_header>
11228_ACEOF
11229rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011230if { (ac_try="$ac_compile"
11231case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
11254 { (case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_try") 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263 ac_header_compiler=yes
11264else
11265 echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
Reid Spencera773bd52006-08-04 18:18:08 +000011268 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269fi
Reid Spencera773bd52006-08-04 18:18:08 +000011270
11271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11273echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274
11275# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011276{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284#include <$ac_header>
11285_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011286if { (ac_try="$ac_cpp conftest.$ac_ext"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011298 (exit $ac_status); } >/dev/null; then
11299 if test -s conftest.err; then
11300 ac_cpp_err=$ac_c_preproc_warn_flag
11301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11302 else
11303 ac_cpp_err=
11304 fi
11305else
11306 ac_cpp_err=yes
11307fi
11308if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309 ac_header_preproc=yes
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_header_preproc=no
11315fi
Reid Spencera773bd52006-08-04 18:18:08 +000011316
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320
11321# So? What about this header?
11322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 yes:no: )
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11329 ;;
11330 no:yes:* )
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011343 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344## ----------------------------------- ##
11345## Report this to llvmbugs@cs.uiuc.edu ##
11346## ----------------------------------- ##
11347_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011348 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349 ;;
11350esac
Reid Spencera773bd52006-08-04 18:18:08 +000011351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 eval "$as_ac_Header=\$ac_header_preproc"
11357fi
Reid Spencera773bd52006-08-04 18:18:08 +000011358ac_res=`eval echo '${'$as_ac_Header'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361
11362fi
11363if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366_ACEOF
11367
11368fi
11369
11370done
11371
11372
Reid Spencera773bd52006-08-04 18:18:08 +000011373{ echo "$as_me:$LINENO: checking for error_t" >&5
11374echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375if test "${ac_cv_type_error_t+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384#if HAVE_ARGZ_H
11385# include <argz.h>
11386#endif
11387
Reid Spencera773bd52006-08-04 18:18:08 +000011388typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389int
11390main ()
11391{
Reid Spencera773bd52006-08-04 18:18:08 +000011392if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011394if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395 return 0;
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011401if { (ac_try="$ac_compile"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434 ac_cv_type_error_t=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
Reid Spencera773bd52006-08-04 18:18:08 +000011439 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440fi
Reid Spencera773bd52006-08-04 18:18:08 +000011441
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443fi
Reid Spencera773bd52006-08-04 18:18:08 +000011444{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11445echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446if test $ac_cv_type_error_t = yes; then
11447
11448cat >>confdefs.h <<_ACEOF
11449#define HAVE_ERROR_T 1
11450_ACEOF
11451
11452
11453else
11454
11455cat >>confdefs.h <<\_ACEOF
11456#define error_t int
11457_ACEOF
11458
11459fi
11460
11461
11462
11463
11464
11465
11466
11467for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11468do
11469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011470{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11472if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
11481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11483#define $ac_func innocuous_$ac_func
11484
11485/* System header to define __stub macros and hopefully few prototypes,
11486 which can conflict with char $ac_func (); below.
11487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11488 <limits.h> exists even on freestanding compilers. */
11489
11490#ifdef __STDC__
11491# include <limits.h>
11492#else
11493# include <assert.h>
11494#endif
11495
11496#undef $ac_func
11497
Reid Spencera773bd52006-08-04 18:18:08 +000011498/* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501#ifdef __cplusplus
11502extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011504char $ac_func ();
11505/* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011508#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510#endif
11511
11512int
11513main ()
11514{
Reid Spencera773bd52006-08-04 18:18:08 +000011515return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516 ;
11517 return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011521if { (ac_try="$ac_link"
11522case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525esac
11526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 eval "$as_ac_var=yes"
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
Reid Spencera773bd52006-08-04 18:18:08 +000011559 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560fi
Reid Spencera773bd52006-08-04 18:18:08 +000011561
Bill Wendlingebcceee2009-04-18 11:20:33 +000011562rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 conftest$ac_exeext conftest.$ac_ext
11564fi
Reid Spencera773bd52006-08-04 18:18:08 +000011565ac_res=`eval echo '${'$as_ac_var'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568if test `eval echo '${'$as_ac_var'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571_ACEOF
11572
11573fi
11574done
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11604 stdio.h unistd.h
11605do
11606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612fi
Reid Spencera773bd52006-08-04 18:18:08 +000011613ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616else
11617 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011618{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626$ac_includes_default
11627#include <$ac_header>
11628_ACEOF
11629rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011630if { (ac_try="$ac_compile"
11631case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11634esac
11635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644 { (case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647esac
11648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_try") 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657esac
11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_try") 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663 ac_header_compiler=yes
11664else
11665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
Reid Spencera773bd52006-08-04 18:18:08 +000011668 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669fi
Reid Spencera773bd52006-08-04 18:18:08 +000011670
11671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11673echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674
11675# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011676{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684#include <$ac_header>
11685_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011686if { (ac_try="$ac_cpp conftest.$ac_ext"
11687case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690esac
11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011698 (exit $ac_status); } >/dev/null; then
11699 if test -s conftest.err; then
11700 ac_cpp_err=$ac_c_preproc_warn_flag
11701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11702 else
11703 ac_cpp_err=
11704 fi
11705else
11706 ac_cpp_err=yes
11707fi
11708if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709 ac_header_preproc=yes
11710else
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_header_preproc=no
11715fi
Reid Spencera773bd52006-08-04 18:18:08 +000011716
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11719echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720
11721# So? What about this header?
11722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11723 yes:no: )
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11728 ac_header_preproc=yes
11729 ;;
11730 no:yes:* )
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011743 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744## ----------------------------------- ##
11745## Report this to llvmbugs@cs.uiuc.edu ##
11746## ----------------------------------- ##
11747_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011748 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749 ;;
11750esac
Reid Spencera773bd52006-08-04 18:18:08 +000011751{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 eval "$as_ac_Header=\$ac_header_preproc"
11757fi
Reid Spencera773bd52006-08-04 18:18:08 +000011758ac_res=`eval echo '${'$as_ac_Header'}'`
11759 { echo "$as_me:$LINENO: result: $ac_res" >&5
11760echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761
11762fi
11763if test `eval echo '${'$as_ac_Header'}'` = yes; then
11764 cat >>confdefs.h <<_ACEOF
11765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766_ACEOF
11767
11768fi
11769
11770done
11771
11772
11773
11774
11775
11776for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11777do
11778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784fi
Reid Spencera773bd52006-08-04 18:18:08 +000011785ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788else
11789 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792cat >conftest.$ac_ext <<_ACEOF
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798$ac_includes_default
11799#include <$ac_header>
11800_ACEOF
11801rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011802if { (ac_try="$ac_compile"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11829esac
11830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_try") 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835 ac_header_compiler=yes
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
Reid Spencera773bd52006-08-04 18:18:08 +000011840 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841fi
Reid Spencera773bd52006-08-04 18:18:08 +000011842
11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846
11847# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011848{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856#include <$ac_header>
11857_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011858if { (ac_try="$ac_cpp conftest.$ac_ext"
11859case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862esac
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011870 (exit $ac_status); } >/dev/null; then
11871 if test -s conftest.err; then
11872 ac_cpp_err=$ac_c_preproc_warn_flag
11873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11874 else
11875 ac_cpp_err=
11876 fi
11877else
11878 ac_cpp_err=yes
11879fi
11880if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881 ac_header_preproc=yes
11882else
11883 echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886 ac_header_preproc=no
11887fi
Reid Spencera773bd52006-08-04 18:18:08 +000011888
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892
11893# So? What about this header?
11894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11895 yes:no: )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11900 ac_header_preproc=yes
11901 ;;
11902 no:yes:* )
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011915 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916## ----------------------------------- ##
11917## Report this to llvmbugs@cs.uiuc.edu ##
11918## ----------------------------------- ##
11919_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011920 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921 ;;
11922esac
Reid Spencera773bd52006-08-04 18:18:08 +000011923{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
11928 eval "$as_ac_Header=\$ac_header_preproc"
11929fi
Reid Spencera773bd52006-08-04 18:18:08 +000011930ac_res=`eval echo '${'$as_ac_Header'}'`
11931 { echo "$as_me:$LINENO: result: $ac_res" >&5
11932echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933
11934fi
11935if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938_ACEOF
11939
11940fi
11941
11942done
11943
11944
11945
11946for ac_header in string.h strings.h
11947do
11948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958else
11959 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968$ac_includes_default
11969#include <$ac_header>
11970_ACEOF
11971rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011972if { (ac_try="$ac_compile"
11973case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 ac_header_compiler=yes
12006else
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
Reid Spencera773bd52006-08-04 18:18:08 +000012010 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011fi
Reid Spencera773bd52006-08-04 18:18:08 +000012012
12013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12015echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016
12017# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012018{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026#include <$ac_header>
12027_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012028if { (ac_try="$ac_cpp conftest.$ac_ext"
12029case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012040 (exit $ac_status); } >/dev/null; then
12041 if test -s conftest.err; then
12042 ac_cpp_err=$ac_c_preproc_warn_flag
12043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12044 else
12045 ac_cpp_err=
12046 fi
12047else
12048 ac_cpp_err=yes
12049fi
12050if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051 ac_header_preproc=yes
12052else
12053 echo "$as_me: failed program was:" >&5
12054sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 ac_header_preproc=no
12057fi
Reid Spencera773bd52006-08-04 18:18:08 +000012058
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012060{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12061echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062
12063# So? What about this header?
12064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12065 yes:no: )
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12070 ac_header_preproc=yes
12071 ;;
12072 no:yes:* )
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012085 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086## ----------------------------------- ##
12087## Report this to llvmbugs@cs.uiuc.edu ##
12088## ----------------------------------- ##
12089_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012090 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091 ;;
12092esac
Reid Spencera773bd52006-08-04 18:18:08 +000012093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098 eval "$as_ac_Header=\$ac_header_preproc"
12099fi
Reid Spencera773bd52006-08-04 18:18:08 +000012100ac_res=`eval echo '${'$as_ac_Header'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103
12104fi
12105if test `eval echo '${'$as_ac_Header'}'` = yes; then
12106 cat >>confdefs.h <<_ACEOF
12107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108_ACEOF
12109 break
12110fi
12111
12112done
12113
12114
12115
12116
12117for ac_func in strchr index
12118do
12119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133#define $ac_func innocuous_$ac_func
12134
12135/* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12139
12140#ifdef __STDC__
12141# include <limits.h>
12142#else
12143# include <assert.h>
12144#endif
12145
12146#undef $ac_func
12147
Reid Spencera773bd52006-08-04 18:18:08 +000012148/* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151#ifdef __cplusplus
12152extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154char $ac_func ();
12155/* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012158#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160#endif
12161
12162int
12163main ()
12164{
Reid Spencera773bd52006-08-04 18:18:08 +000012165return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012171if { (ac_try="$ac_link"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188esac
12189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 eval "$as_ac_var=yes"
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
Reid Spencera773bd52006-08-04 18:18:08 +000012209 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210fi
Reid Spencera773bd52006-08-04 18:18:08 +000012211
Bill Wendlingebcceee2009-04-18 11:20:33 +000012212rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213 conftest$ac_exeext conftest.$ac_ext
12214fi
Reid Spencera773bd52006-08-04 18:18:08 +000012215ac_res=`eval echo '${'$as_ac_var'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218if test `eval echo '${'$as_ac_var'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12221_ACEOF
12222 break
12223fi
12224done
12225
12226
12227
12228for ac_func in strrchr rindex
12229do
12230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012231{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235else
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12244#define $ac_func innocuous_$ac_func
12245
12246/* System header to define __stub macros and hopefully few prototypes,
12247 which can conflict with char $ac_func (); below.
12248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249 <limits.h> exists even on freestanding compilers. */
12250
12251#ifdef __STDC__
12252# include <limits.h>
12253#else
12254# include <assert.h>
12255#endif
12256
12257#undef $ac_func
12258
Reid Spencera773bd52006-08-04 18:18:08 +000012259/* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262#ifdef __cplusplus
12263extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012265char $ac_func ();
12266/* The GNU C library defines this for functions which it implements
12267 to always fail with ENOSYS. Some functions are actually named
12268 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012269#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012271#endif
12272
12273int
12274main ()
12275{
Reid Spencera773bd52006-08-04 18:18:08 +000012276return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277 ;
12278 return 0;
12279}
12280_ACEOF
12281rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012282if { (ac_try="$ac_link"
12283case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 eval "$as_ac_var=yes"
12316else
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
Reid Spencera773bd52006-08-04 18:18:08 +000012320 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321fi
Reid Spencera773bd52006-08-04 18:18:08 +000012322
Bill Wendlingebcceee2009-04-18 11:20:33 +000012323rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324 conftest$ac_exeext conftest.$ac_ext
12325fi
Reid Spencera773bd52006-08-04 18:18:08 +000012326ac_res=`eval echo '${'$as_ac_var'}'`
12327 { echo "$as_me:$LINENO: result: $ac_res" >&5
12328echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329if test `eval echo '${'$as_ac_var'}'` = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332_ACEOF
12333 break
12334fi
12335done
12336
12337
12338
12339for ac_func in memcpy bcopy
12340do
12341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346else
12347 cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12355#define $ac_func innocuous_$ac_func
12356
12357/* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char $ac_func (); below.
12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360 <limits.h> exists even on freestanding compilers. */
12361
12362#ifdef __STDC__
12363# include <limits.h>
12364#else
12365# include <assert.h>
12366#endif
12367
12368#undef $ac_func
12369
Reid Spencera773bd52006-08-04 18:18:08 +000012370/* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373#ifdef __cplusplus
12374extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376char $ac_func ();
12377/* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012380#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382#endif
12383
12384int
12385main ()
12386{
Reid Spencera773bd52006-08-04 18:18:08 +000012387return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012393if { (ac_try="$ac_link"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12407 { (case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_try") 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest$ac_exeext'
12417 { (case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_try") 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426 eval "$as_ac_var=yes"
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
Reid Spencera773bd52006-08-04 18:18:08 +000012431 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432fi
Reid Spencera773bd52006-08-04 18:18:08 +000012433
Bill Wendlingebcceee2009-04-18 11:20:33 +000012434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435 conftest$ac_exeext conftest.$ac_ext
12436fi
Reid Spencera773bd52006-08-04 18:18:08 +000012437ac_res=`eval echo '${'$as_ac_var'}'`
12438 { echo "$as_me:$LINENO: result: $ac_res" >&5
12439echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440if test `eval echo '${'$as_ac_var'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443_ACEOF
12444 break
12445fi
12446done
12447
12448
12449
12450for ac_func in memmove strcmp
12451do
12452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012453{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
12458 cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
12463/* end confdefs.h. */
12464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12466#define $ac_func innocuous_$ac_func
12467
12468/* System header to define __stub macros and hopefully few prototypes,
12469 which can conflict with char $ac_func (); below.
12470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12471 <limits.h> exists even on freestanding compilers. */
12472
12473#ifdef __STDC__
12474# include <limits.h>
12475#else
12476# include <assert.h>
12477#endif
12478
12479#undef $ac_func
12480
Reid Spencera773bd52006-08-04 18:18:08 +000012481/* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484#ifdef __cplusplus
12485extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487char $ac_func ();
12488/* The GNU C library defines this for functions which it implements
12489 to always fail with ENOSYS. Some functions are actually named
12490 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012491#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493#endif
12494
12495int
12496main ()
12497{
Reid Spencera773bd52006-08-04 18:18:08 +000012498return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012504if { (ac_try="$ac_link"
12505case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508esac
12509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012537 eval "$as_ac_var=yes"
12538else
12539 echo "$as_me: failed program was:" >&5
12540sed 's/^/| /' conftest.$ac_ext >&5
12541
Reid Spencera773bd52006-08-04 18:18:08 +000012542 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012543fi
Reid Spencera773bd52006-08-04 18:18:08 +000012544
Bill Wendlingebcceee2009-04-18 11:20:33 +000012545rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546 conftest$ac_exeext conftest.$ac_ext
12547fi
Reid Spencera773bd52006-08-04 18:18:08 +000012548ac_res=`eval echo '${'$as_ac_var'}'`
12549 { echo "$as_me:$LINENO: result: $ac_res" >&5
12550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012551if test `eval echo '${'$as_ac_var'}'` = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554_ACEOF
12555
12556fi
12557done
12558
12559
12560
12561
12562for ac_func in closedir opendir readdir
12563do
12564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569else
12570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12578#define $ac_func innocuous_$ac_func
12579
12580/* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func (); below.
12582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12583 <limits.h> exists even on freestanding compilers. */
12584
12585#ifdef __STDC__
12586# include <limits.h>
12587#else
12588# include <assert.h>
12589#endif
12590
12591#undef $ac_func
12592
Reid Spencera773bd52006-08-04 18:18:08 +000012593/* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596#ifdef __cplusplus
12597extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012598#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012599char $ac_func ();
12600/* The GNU C library defines this for functions which it implements
12601 to always fail with ENOSYS. Some functions are actually named
12602 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012603#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012604choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605#endif
12606
12607int
12608main ()
12609{
Reid Spencera773bd52006-08-04 18:18:08 +000012610return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012616if { (ac_try="$ac_link"
12617case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620esac
12621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012649 eval "$as_ac_var=yes"
12650else
12651 echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
Reid Spencera773bd52006-08-04 18:18:08 +000012654 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012655fi
Reid Spencera773bd52006-08-04 18:18:08 +000012656
Bill Wendlingebcceee2009-04-18 11:20:33 +000012657rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012658 conftest$ac_exeext conftest.$ac_ext
12659fi
Reid Spencera773bd52006-08-04 18:18:08 +000012660ac_res=`eval echo '${'$as_ac_var'}'`
12661 { echo "$as_me:$LINENO: result: $ac_res" >&5
12662echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663if test `eval echo '${'$as_ac_var'}'` = yes; then
12664 cat >>confdefs.h <<_ACEOF
12665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666_ACEOF
12667
12668fi
12669done
12670
12671
Reid Spencera773bd52006-08-04 18:18:08 +000012672# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012673if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012674 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012675 case $enableval in
12676 yes) enable_shared=yes ;;
12677 no) enable_shared=no ;;
12678 *)
12679 enable_shared=no
12680 # Look at the argument we got. We use all the common list separators.
12681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12682 for pkg in $enableval; do
12683 IFS="$lt_save_ifs"
12684 if test "X$pkg" = "X$p"; then
12685 enable_shared=yes
12686 fi
12687 done
12688 IFS="$lt_save_ifs"
12689 ;;
12690 esac
12691else
12692 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012693fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012694
Reid Spencera773bd52006-08-04 18:18:08 +000012695
12696# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012698 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012699 case $enableval in
12700 yes) enable_static=yes ;;
12701 no) enable_static=no ;;
12702 *)
12703 enable_static=no
12704 # Look at the argument we got. We use all the common list separators.
12705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12706 for pkg in $enableval; do
12707 IFS="$lt_save_ifs"
12708 if test "X$pkg" = "X$p"; then
12709 enable_static=yes
12710 fi
12711 done
12712 IFS="$lt_save_ifs"
12713 ;;
12714 esac
12715else
12716 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012717fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012718
Reid Spencera773bd52006-08-04 18:18:08 +000012719
12720# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012721if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012722 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723 case $enableval in
12724 yes) enable_fast_install=yes ;;
12725 no) enable_fast_install=no ;;
12726 *)
12727 enable_fast_install=no
12728 # Look at the argument we got. We use all the common list separators.
12729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12730 for pkg in $enableval; do
12731 IFS="$lt_save_ifs"
12732 if test "X$pkg" = "X$p"; then
12733 enable_fast_install=yes
12734 fi
12735 done
12736 IFS="$lt_save_ifs"
12737 ;;
12738 esac
12739else
12740 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012741fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742
Reid Spencera773bd52006-08-04 18:18:08 +000012743
12744{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12745echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012746if test "${lt_cv_path_SED+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749 # Loop through the user's path and test for sed and gsed.
12750# Then use that list of sed's as ones to test for truncation.
12751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752for as_dir in $PATH
12753do
12754 IFS=$as_save_IFS
12755 test -z "$as_dir" && as_dir=.
12756 for lt_ac_prog in sed gsed; do
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12759 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12760 fi
12761 done
12762 done
12763done
12764lt_ac_max=0
12765lt_ac_count=0
12766# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12767# along with /bin/sed that truncates output.
12768for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012769 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012770 cat /dev/null > conftest.in
12771 lt_ac_count=0
12772 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12773 # Check for GNU sed and select it if it is found.
12774 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12775 lt_cv_path_SED=$lt_ac_sed
12776 break
12777 fi
12778 while true; do
12779 cat conftest.in conftest.in >conftest.tmp
12780 mv conftest.tmp conftest.in
12781 cp conftest.in conftest.nl
12782 echo >>conftest.nl
12783 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12784 cmp -s conftest.out conftest.nl || break
12785 # 10000 chars as input seems more than enough
12786 test $lt_ac_count -gt 10 && break
12787 lt_ac_count=`expr $lt_ac_count + 1`
12788 if test $lt_ac_count -gt $lt_ac_max; then
12789 lt_ac_max=$lt_ac_count
12790 lt_cv_path_SED=$lt_ac_sed
12791 fi
12792 done
12793done
12794
12795fi
12796
12797SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012798{ echo "$as_me:$LINENO: result: $SED" >&5
12799echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012800
12801
Reid Spencera773bd52006-08-04 18:18:08 +000012802# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012804 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012805else
12806 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012807fi
12808
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809ac_prog=ld
12810if test "$GCC" = yes; then
12811 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012812 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12813echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012814 case $host in
12815 *-*-mingw*)
12816 # gcc leaves a trailing carriage return which upsets mingw
12817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12818 *)
12819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12820 esac
12821 case $ac_prog in
12822 # Accept absolute paths.
12823 [\\/]* | ?:[\\/]*)
12824 re_direlt='/[^/][^/]*/\.\./'
12825 # Canonicalize the pathname of ld
12826 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12828 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12829 done
12830 test -z "$LD" && LD="$ac_prog"
12831 ;;
12832 "")
12833 # If it fails, then pretend we aren't using GCC.
12834 ac_prog=ld
12835 ;;
12836 *)
12837 # If it is relative, then search for the first ld in PATH.
12838 with_gnu_ld=unknown
12839 ;;
12840 esac
12841elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12843echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844else
Reid Spencera773bd52006-08-04 18:18:08 +000012845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12846echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012847fi
12848if test "${lt_cv_path_LD+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851 if test -z "$LD"; then
12852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12853 for ac_dir in $PATH; do
12854 IFS="$lt_save_ifs"
12855 test -z "$ac_dir" && ac_dir=.
12856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12857 lt_cv_path_LD="$ac_dir/$ac_prog"
12858 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012859 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012860 # Break only if it was the GNU/non-GNU ld that we prefer.
12861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12862 *GNU* | *'with BFD'*)
12863 test "$with_gnu_ld" != no && break
12864 ;;
12865 *)
12866 test "$with_gnu_ld" != yes && break
12867 ;;
12868 esac
12869 fi
12870 done
12871 IFS="$lt_save_ifs"
12872else
12873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12874fi
12875fi
12876
12877LD="$lt_cv_path_LD"
12878if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012879 { echo "$as_me:$LINENO: result: $LD" >&5
12880echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881else
Reid Spencera773bd52006-08-04 18:18:08 +000012882 { echo "$as_me:$LINENO: result: no" >&5
12883echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012884fi
12885test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12886echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12887 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012888{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12889echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890if test "${lt_cv_prog_gnu_ld+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
Reid Spencera773bd52006-08-04 18:18:08 +000012893 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894case `$LD -v 2>&1 </dev/null` in
12895*GNU* | *'with BFD'*)
12896 lt_cv_prog_gnu_ld=yes
12897 ;;
12898*)
12899 lt_cv_prog_gnu_ld=no
12900 ;;
12901esac
12902fi
Reid Spencera773bd52006-08-04 18:18:08 +000012903{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12904echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905with_gnu_ld=$lt_cv_prog_gnu_ld
12906
12907
Reid Spencera773bd52006-08-04 18:18:08 +000012908{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12909echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910if test "${lt_cv_ld_reload_flag+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912else
12913 lt_cv_ld_reload_flag='-r'
12914fi
Reid Spencera773bd52006-08-04 18:18:08 +000012915{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12916echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012917reload_flag=$lt_cv_ld_reload_flag
12918case $reload_flag in
12919"" | " "*) ;;
12920*) reload_flag=" $reload_flag" ;;
12921esac
12922reload_cmds='$LD$reload_flag -o $output$reload_objs'
12923case $host_os in
12924 darwin*)
12925 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012926 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012927 else
12928 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12929 fi
12930 ;;
12931esac
12932
Reid Spencera773bd52006-08-04 18:18:08 +000012933{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12934echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012935if test "${lt_cv_deplibs_check_method+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938 lt_cv_file_magic_cmd='$MAGIC_CMD'
12939lt_cv_file_magic_test_file=
12940lt_cv_deplibs_check_method='unknown'
12941# Need to set the preceding variable on all platforms that support
12942# interlibrary dependencies.
12943# 'none' -- dependencies not supported.
12944# `unknown' -- same as none, but documents that we really don't know.
12945# 'pass_all' -- all dependencies passed with no checks.
12946# 'test_compile' -- check by making test program.
12947# 'file_magic [[regex]]' -- check by looking for files in library path
12948# which responds to the $file_magic_cmd with a given extended regex.
12949# If you have `file' or equivalent on your system and you're not sure
12950# whether `pass_all' will *always* work, you probably want this one.
12951
12952case $host_os in
12953aix4* | aix5*)
12954 lt_cv_deplibs_check_method=pass_all
12955 ;;
12956
12957beos*)
12958 lt_cv_deplibs_check_method=pass_all
12959 ;;
12960
12961bsdi[45]*)
12962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12963 lt_cv_file_magic_cmd='/usr/bin/file -L'
12964 lt_cv_file_magic_test_file=/shlib/libc.so
12965 ;;
12966
12967cygwin*)
12968 # func_win32_libid is a shell function defined in ltmain.sh
12969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12970 lt_cv_file_magic_cmd='func_win32_libid'
12971 ;;
12972
12973mingw* | pw32*)
12974 # Base MSYS/MinGW do not provide the 'file' command needed by
12975 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12976 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12977 lt_cv_file_magic_cmd='$OBJDUMP -f'
12978 ;;
12979
12980darwin* | rhapsody*)
12981 lt_cv_deplibs_check_method=pass_all
12982 ;;
12983
Reid Spencera773bd52006-08-04 18:18:08 +000012984freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12986 case $host_cpu in
12987 i*86 )
12988 # Not sure whether the presence of OpenBSD here was a mistake.
12989 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012990 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 +000012991 lt_cv_file_magic_cmd=/usr/bin/file
12992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12993 ;;
12994 esac
12995 else
12996 lt_cv_deplibs_check_method=pass_all
12997 fi
12998 ;;
12999
13000gnu*)
13001 lt_cv_deplibs_check_method=pass_all
13002 ;;
13003
13004hpux10.20* | hpux11*)
13005 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013006 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013007 ia64*)
13008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13010 ;;
13011 hppa*64*)
13012 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]'
13013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13014 ;;
13015 *)
13016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13018 ;;
13019 esac
13020 ;;
13021
Reid Spencera773bd52006-08-04 18:18:08 +000013022interix3*)
13023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13025 ;;
13026
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013027irix5* | irix6* | nonstopux*)
13028 case $LD in
13029 *-32|*"-32 ") libmagic=32-bit;;
13030 *-n32|*"-n32 ") libmagic=N32;;
13031 *-64|*"-64 ") libmagic=64-bit;;
13032 *) libmagic=never-match;;
13033 esac
13034 lt_cv_deplibs_check_method=pass_all
13035 ;;
13036
13037# This must be Linux ELF.
13038linux*)
13039 lt_cv_deplibs_check_method=pass_all
13040 ;;
13041
13042netbsd*)
13043 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13045 else
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13047 fi
13048 ;;
13049
13050newos6*)
13051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13052 lt_cv_file_magic_cmd=/usr/bin/file
13053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13054 ;;
13055
13056nto-qnx*)
13057 lt_cv_deplibs_check_method=unknown
13058 ;;
13059
13060openbsd*)
13061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13063 else
13064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13065 fi
13066 ;;
13067
13068osf3* | osf4* | osf5*)
13069 lt_cv_deplibs_check_method=pass_all
13070 ;;
13071
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013072solaris*)
13073 lt_cv_deplibs_check_method=pass_all
13074 ;;
13075
Reid Spencera773bd52006-08-04 18:18:08 +000013076sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013077 case $host_vendor in
13078 motorola)
13079 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]'
13080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13081 ;;
13082 ncr)
13083 lt_cv_deplibs_check_method=pass_all
13084 ;;
13085 sequent)
13086 lt_cv_file_magic_cmd='/bin/file'
13087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13088 ;;
13089 sni)
13090 lt_cv_file_magic_cmd='/bin/file'
13091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13092 lt_cv_file_magic_test_file=/lib/libc.so
13093 ;;
13094 siemens)
13095 lt_cv_deplibs_check_method=pass_all
13096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013097 pc)
13098 lt_cv_deplibs_check_method=pass_all
13099 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013100 esac
13101 ;;
13102
Reid Spencera773bd52006-08-04 18:18:08 +000013103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013104 lt_cv_deplibs_check_method=pass_all
13105 ;;
13106esac
13107
13108fi
Reid Spencera773bd52006-08-04 18:18:08 +000013109{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13110echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013111file_magic_cmd=$lt_cv_file_magic_cmd
13112deplibs_check_method=$lt_cv_deplibs_check_method
13113test -z "$deplibs_check_method" && deplibs_check_method=unknown
13114
13115
13116
13117# If no C compiler was specified, use CC.
13118LTCC=${LTCC-"$CC"}
13119
Reid Spencera773bd52006-08-04 18:18:08 +000013120# If no C compiler flags were specified, use CFLAGS.
13121LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13122
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013123# Allow CC to be a program name with arguments.
13124compiler=$CC
13125
Reid Spencera773bd52006-08-04 18:18:08 +000013126# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013127if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013128 enableval=$enable_libtool_lock;
13129fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013130
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013131test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13132
13133# Some flags need to be propagated to the compiler or linker for good
13134# libtool support.
13135case $host in
13136ia64-*-hpux*)
13137 # Find out which ABI we are using.
13138 echo 'int i;' > conftest.$ac_ext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; then
13144 case `/usr/bin/file conftest.$ac_objext` in
13145 *ELF-32*)
13146 HPUX_IA64_MODE="32"
13147 ;;
13148 *ELF-64*)
13149 HPUX_IA64_MODE="64"
13150 ;;
13151 esac
13152 fi
13153 rm -rf conftest*
13154 ;;
13155*-*-irix6*)
13156 # Find out which ABI we are using.
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013157 echo '#line 13157 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; then
13163 if test "$lt_cv_prog_gnu_ld" = yes; then
13164 case `/usr/bin/file conftest.$ac_objext` in
13165 *32-bit*)
13166 LD="${LD-ld} -melf32bsmip"
13167 ;;
13168 *N32*)
13169 LD="${LD-ld} -melf32bmipn32"
13170 ;;
13171 *64-bit*)
13172 LD="${LD-ld} -melf64bmip"
13173 ;;
13174 esac
13175 else
13176 case `/usr/bin/file conftest.$ac_objext` in
13177 *32-bit*)
13178 LD="${LD-ld} -32"
13179 ;;
13180 *N32*)
13181 LD="${LD-ld} -n32"
13182 ;;
13183 *64-bit*)
13184 LD="${LD-ld} -64"
13185 ;;
13186 esac
13187 fi
13188 fi
13189 rm -rf conftest*
13190 ;;
13191
13192x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13193 # Find out which ABI we are using.
13194 echo 'int i;' > conftest.$ac_ext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013200 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013201 *32-bit*)
13202 case $host in
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_i386"
13205 ;;
13206 ppc64-*linux*|powerpc64-*linux*)
13207 LD="${LD-ld} -m elf32ppclinux"
13208 ;;
13209 s390x-*linux*)
13210 LD="${LD-ld} -m elf_s390"
13211 ;;
13212 sparc64-*linux*)
13213 LD="${LD-ld} -m elf32_sparc"
13214 ;;
13215 esac
13216 ;;
13217 *64-bit*)
13218 case $host in
13219 x86_64-*linux*)
13220 LD="${LD-ld} -m elf_x86_64"
13221 ;;
13222 ppc*-*linux*|powerpc*-*linux*)
13223 LD="${LD-ld} -m elf64ppc"
13224 ;;
13225 s390*-*linux*)
13226 LD="${LD-ld} -m elf64_s390"
13227 ;;
13228 sparc*-*linux*)
13229 LD="${LD-ld} -m elf64_sparc"
13230 ;;
13231 esac
13232 ;;
13233 esac
13234 fi
13235 rm -rf conftest*
13236 ;;
13237
13238*-*-sco3.2v5*)
13239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13240 SAVE_CFLAGS="$CFLAGS"
13241 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013242 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13243echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013244if test "${lt_cv_cc_needs_belf+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 ac_ext=c
13248ac_cpp='$CPP $CPPFLAGS'
13249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13251ac_compiler_gnu=$ac_cv_c_compiler_gnu
13252
13253 cat >conftest.$ac_ext <<_ACEOF
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h. */
13259
Reid Spencera773bd52006-08-04 18:18:08 +000013260int
13261main ()
13262{
13263
13264 ;
13265 return 0;
13266}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013267_ACEOF
13268rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013269if { (ac_try="$ac_link"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013302 lt_cv_cc_needs_belf=yes
13303else
13304 echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
Reid Spencera773bd52006-08-04 18:18:08 +000013307 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013308fi
Reid Spencera773bd52006-08-04 18:18:08 +000013309
Bill Wendlingebcceee2009-04-18 11:20:33 +000013310rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013311 conftest$ac_exeext conftest.$ac_ext
13312 ac_ext=c
13313ac_cpp='$CPP $CPPFLAGS'
13314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318fi
Reid Spencera773bd52006-08-04 18:18:08 +000013319{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13320echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13323 CFLAGS="$SAVE_CFLAGS"
13324 fi
13325 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013326sparc*-*solaris*)
13327 # Find out which ABI we are using.
13328 echo 'int i;' > conftest.$ac_ext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; then
13334 case `/usr/bin/file conftest.o` in
13335 *64-bit*)
13336 case $lt_cv_prog_gnu_ld in
13337 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13338 *) LD="${LD-ld} -64" ;;
13339 esac
13340 ;;
13341 esac
13342 fi
13343 rm -rf conftest*
13344 ;;
13345
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013346
13347esac
13348
13349need_locks="$enable_libtool_lock"
13350
13351
Reid Spencer2706f8c2004-09-19 23:53:36 +000013352
13353
13354if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13356 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013357 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013358ac_cpp='$CXXCPP $CPPFLAGS'
13359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013362{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13363echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013364if test -z "$CXXCPP"; then
13365 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
John Criswell47fdd832003-07-14 16:52:07 +000013368 # Double quotes because CXXCPP needs to be expanded
13369 for CXXCPP in "$CXX -E" "/lib/cpp"
13370 do
13371 ac_preproc_ok=false
13372for ac_cxx_preproc_warn_flag in '' yes
13373do
13374 # Use a header file that comes with gcc, so configuring glibc
13375 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13377 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013378 # On the NeXT, cc -E runs the code through the compiler's parser,
13379 # not just through cpp. "Syntax error" is here to catch this case.
13380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
13385/* end confdefs.h. */
13386#ifdef __STDC__
13387# include <limits.h>
13388#else
13389# include <assert.h>
13390#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013391 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013392_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013393if { (ac_try="$ac_cpp conftest.$ac_ext"
13394case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013400 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013401 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013405 (exit $ac_status); } >/dev/null; then
13406 if test -s conftest.err; then
13407 ac_cpp_err=$ac_cxx_preproc_warn_flag
13408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13409 else
13410 ac_cpp_err=
13411 fi
13412else
13413 ac_cpp_err=yes
13414fi
13415if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013416 :
13417else
13418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013419sed 's/^/| /' conftest.$ac_ext >&5
13420
John Criswell47fdd832003-07-14 16:52:07 +000013421 # Broken: fails on valid input.
13422continue
13423fi
Reid Spencera773bd52006-08-04 18:18:08 +000013424
John Criswell47fdd832003-07-14 16:52:07 +000013425rm -f conftest.err conftest.$ac_ext
13426
Reid Spencera773bd52006-08-04 18:18:08 +000013427 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013428 # can be detected and how.
13429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013435#include <ac_nonexistent.h>
13436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013437if { (ac_try="$ac_cpp conftest.$ac_ext"
13438case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013444 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013445 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013449 (exit $ac_status); } >/dev/null; then
13450 if test -s conftest.err; then
13451 ac_cpp_err=$ac_cxx_preproc_warn_flag
13452 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13453 else
13454 ac_cpp_err=
13455 fi
13456else
13457 ac_cpp_err=yes
13458fi
13459if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013460 # Broken: success on invalid input.
13461continue
13462else
13463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013464sed 's/^/| /' conftest.$ac_ext >&5
13465
John Criswell47fdd832003-07-14 16:52:07 +000013466 # Passes both tests.
13467ac_preproc_ok=:
13468break
13469fi
Reid Spencera773bd52006-08-04 18:18:08 +000013470
John Criswell47fdd832003-07-14 16:52:07 +000013471rm -f conftest.err conftest.$ac_ext
13472
13473done
13474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13475rm -f conftest.err conftest.$ac_ext
13476if $ac_preproc_ok; then
13477 break
John Criswell7a73b802003-06-30 21:59:07 +000013478fi
13479
John Criswell47fdd832003-07-14 16:52:07 +000013480 done
13481 ac_cv_prog_CXXCPP=$CXXCPP
13482
13483fi
13484 CXXCPP=$ac_cv_prog_CXXCPP
13485else
13486 ac_cv_prog_CXXCPP=$CXXCPP
13487fi
Reid Spencera773bd52006-08-04 18:18:08 +000013488{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13489echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013490ac_preproc_ok=false
13491for ac_cxx_preproc_warn_flag in '' yes
13492do
13493 # Use a header file that comes with gcc, so configuring glibc
13494 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13496 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013497 # On the NeXT, cc -E runs the code through the compiler's parser,
13498 # not just through cpp. "Syntax error" is here to catch this case.
13499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013500/* confdefs.h. */
13501_ACEOF
13502cat confdefs.h >>conftest.$ac_ext
13503cat >>conftest.$ac_ext <<_ACEOF
13504/* end confdefs.h. */
13505#ifdef __STDC__
13506# include <limits.h>
13507#else
13508# include <assert.h>
13509#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013510 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013512if { (ac_try="$ac_cpp conftest.$ac_ext"
13513case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516esac
13517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013519 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013520 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013524 (exit $ac_status); } >/dev/null; then
13525 if test -s conftest.err; then
13526 ac_cpp_err=$ac_cxx_preproc_warn_flag
13527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13528 else
13529 ac_cpp_err=
13530 fi
13531else
13532 ac_cpp_err=yes
13533fi
13534if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013535 :
13536else
13537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013538sed 's/^/| /' conftest.$ac_ext >&5
13539
John Criswell47fdd832003-07-14 16:52:07 +000013540 # Broken: fails on valid input.
13541continue
13542fi
Reid Spencera773bd52006-08-04 18:18:08 +000013543
John Criswell47fdd832003-07-14 16:52:07 +000013544rm -f conftest.err conftest.$ac_ext
13545
Reid Spencera773bd52006-08-04 18:18:08 +000013546 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013547 # can be detected and how.
13548 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013554#include <ac_nonexistent.h>
13555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013556if { (ac_try="$ac_cpp conftest.$ac_ext"
13557case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013563 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013564 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013568 (exit $ac_status); } >/dev/null; then
13569 if test -s conftest.err; then
13570 ac_cpp_err=$ac_cxx_preproc_warn_flag
13571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13572 else
13573 ac_cpp_err=
13574 fi
13575else
13576 ac_cpp_err=yes
13577fi
13578if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013579 # Broken: success on invalid input.
13580continue
13581else
13582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013583sed 's/^/| /' conftest.$ac_ext >&5
13584
John Criswell47fdd832003-07-14 16:52:07 +000013585 # Passes both tests.
13586ac_preproc_ok=:
13587break
13588fi
Reid Spencera773bd52006-08-04 18:18:08 +000013589
John Criswell47fdd832003-07-14 16:52:07 +000013590rm -f conftest.err conftest.$ac_ext
13591
13592done
13593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13594rm -f conftest.err conftest.$ac_ext
13595if $ac_preproc_ok; then
13596 :
13597else
John Criswell0c38eaf2003-09-10 15:17:25 +000013598 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13599See \`config.log' for more details." >&5
13600echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13601See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013602 { (exit 1); exit 1; }; }
13603fi
13604
Reid Spencera773bd52006-08-04 18:18:08 +000013605ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013606ac_cpp='$CXXCPP $CPPFLAGS'
13607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13610
Reid Spencer2706f8c2004-09-19 23:53:36 +000013611fi
13612
John Criswell47fdd832003-07-14 16:52:07 +000013613
13614ac_ext=f
13615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13617ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13618if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013619 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 +000013620 do
13621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013625if test "${ac_cv_prog_F77+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 if test -n "$F77"; then
13629 ac_cv_prog_F77="$F77" # Let the user override the test.
13630else
13631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632for as_dir in $PATH
13633do
13634 IFS=$as_save_IFS
13635 test -z "$as_dir" && as_dir=.
13636 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013637 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 +000013638 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 break 2
13641 fi
13642done
13643done
Reid Spencera773bd52006-08-04 18:18:08 +000013644IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013645
13646fi
13647fi
13648F77=$ac_cv_prog_F77
13649if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013650 { echo "$as_me:$LINENO: result: $F77" >&5
13651echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013652else
Reid Spencera773bd52006-08-04 18:18:08 +000013653 { echo "$as_me:$LINENO: result: no" >&5
13654echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013655fi
13656
Reid Spencera773bd52006-08-04 18:18:08 +000013657
John Criswell47fdd832003-07-14 16:52:07 +000013658 test -n "$F77" && break
13659 done
13660fi
13661if test -z "$F77"; then
13662 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013663 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 +000013664do
13665 # Extract the first word of "$ac_prog", so it can be a program name with args.
13666set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013669if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 if test -n "$ac_ct_F77"; then
13673 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13674else
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013681 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 +000013682 ac_cv_prog_ac_ct_F77="$ac_prog"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13685 fi
13686done
13687done
Reid Spencera773bd52006-08-04 18:18:08 +000013688IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013689
13690fi
13691fi
13692ac_ct_F77=$ac_cv_prog_ac_ct_F77
13693if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013694 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13695echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013696else
Reid Spencera773bd52006-08-04 18:18:08 +000013697 { echo "$as_me:$LINENO: result: no" >&5
13698echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013699fi
13700
Reid Spencera773bd52006-08-04 18:18:08 +000013701
John Criswell47fdd832003-07-14 16:52:07 +000013702 test -n "$ac_ct_F77" && break
13703done
13704
Reid Spencera773bd52006-08-04 18:18:08 +000013705 if test "x$ac_ct_F77" = x; then
13706 F77=""
13707 else
13708 case $cross_compiling:$ac_tool_warned in
13709yes:)
13710{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13711whose name does not start with the host triplet. If you think this
13712configuration is useful to you, please write to autoconf@gnu.org." >&5
13713echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13714whose name does not start with the host triplet. If you think this
13715configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13716ac_tool_warned=yes ;;
13717esac
13718 F77=$ac_ct_F77
13719 fi
John Criswell47fdd832003-07-14 16:52:07 +000013720fi
13721
13722
13723# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013724echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013725ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013726{ (ac_try="$ac_compiler --version >&5"
13727case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013736{ (ac_try="$ac_compiler -v >&5"
13737case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013746{ (ac_try="$ac_compiler -V >&5"
13747case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013756rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013757
13758# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013760ac_save_ext=$ac_ext
13761ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013762{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13763echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013764if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767 cat >conftest.$ac_ext <<_ACEOF
13768 program main
13769#ifndef __GNUC__
13770 choke me
13771#endif
13772
13773 end
13774_ACEOF
13775rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013776if { (ac_try="$ac_compile"
13777case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13780esac
13781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013788 (exit $ac_status); } &&
13789 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803esac
13804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013809 ac_compiler_gnu=yes
13810else
13811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013812sed 's/^/| /' conftest.$ac_ext >&5
13813
Reid Spencera773bd52006-08-04 18:18:08 +000013814 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013815fi
Reid Spencera773bd52006-08-04 18:18:08 +000013816
13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013818ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13819
13820fi
Reid Spencera773bd52006-08-04 18:18:08 +000013821{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13822echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013823ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013824ac_test_FFLAGS=${FFLAGS+set}
13825ac_save_FFLAGS=$FFLAGS
13826FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013827{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13828echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013829if test "${ac_cv_prog_f77_g+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 FFLAGS=-g
13833cat >conftest.$ac_ext <<_ACEOF
13834 program main
13835
13836 end
13837_ACEOF
13838rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013839if { (ac_try="$ac_compile"
13840case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest.$ac_objext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013872 ac_cv_prog_f77_g=yes
13873else
13874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013875sed 's/^/| /' conftest.$ac_ext >&5
13876
Reid Spencera773bd52006-08-04 18:18:08 +000013877 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013878fi
Reid Spencera773bd52006-08-04 18:18:08 +000013879
13880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013881
13882fi
Reid Spencera773bd52006-08-04 18:18:08 +000013883{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13884echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013885if test "$ac_test_FFLAGS" = set; then
13886 FFLAGS=$ac_save_FFLAGS
13887elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013888 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013889 FFLAGS="-g -O2"
13890 else
13891 FFLAGS="-g"
13892 fi
13893else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013895 FFLAGS="-O2"
13896 else
13897 FFLAGS=
13898 fi
13899fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013900
13901G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013902ac_ext=c
13903ac_cpp='$CPP $CPPFLAGS'
13904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13906ac_compiler_gnu=$ac_cv_c_compiler_gnu
13907
13908
13909
13910# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13911
13912# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013913{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13914echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013915if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917else
13918 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013920
13921 case $build_os in
13922 msdosdjgpp*)
13923 # On DJGPP, this test can blow up pretty badly due to problems in libc
13924 # (any single argument exceeding 2000 bytes causes a buffer overrun
13925 # during glob expansion). Even if it were fixed, the result of this
13926 # check would be larger than it should be.
13927 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13928 ;;
13929
13930 gnu*)
13931 # Under GNU Hurd, this test is not required because there is
13932 # no limit to the length of command line arguments.
13933 # Libtool will interpret -1 as no limit whatsoever
13934 lt_cv_sys_max_cmd_len=-1;
13935 ;;
13936
13937 cygwin* | mingw*)
13938 # On Win9x/ME, this test blows up -- it succeeds, but takes
13939 # about 5 minutes as the teststring grows exponentially.
13940 # Worse, since 9x/ME are not pre-emptively multitasking,
13941 # you end up with a "frozen" computer, even though with patience
13942 # the test eventually succeeds (with a max line length of 256k).
13943 # Instead, let's just punt: use the minimum linelength reported by
13944 # all of the supported platforms: 8192 (on NT/2K/XP).
13945 lt_cv_sys_max_cmd_len=8192;
13946 ;;
13947
Reid Spencer2706f8c2004-09-19 23:53:36 +000013948 amigaos*)
13949 # On AmigaOS with pdksh, this test takes hours, literally.
13950 # So we just punt and use a minimum line length of 8192.
13951 lt_cv_sys_max_cmd_len=8192;
13952 ;;
13953
Reid Spencera773bd52006-08-04 18:18:08 +000013954 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013955 # This has been around since 386BSD, at least. Likely further.
13956 if test -x /sbin/sysctl; then
13957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13958 elif test -x /usr/sbin/sysctl; then
13959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13960 else
Reid Spencera773bd52006-08-04 18:18:08 +000013961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013962 fi
13963 # And add a safety zone
13964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013966 ;;
13967
Reid Spencera773bd52006-08-04 18:18:08 +000013968 interix*)
13969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13970 lt_cv_sys_max_cmd_len=196608
13971 ;;
13972
13973 osf*)
13974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13976 # nice to cause kernel panics so lets avoid the loop below.
13977 # First set a reasonable default.
13978 lt_cv_sys_max_cmd_len=16384
13979 #
13980 if test -x /sbin/sysconfig; then
13981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13983 esac
13984 fi
13985 ;;
13986 sco3.2v5*)
13987 lt_cv_sys_max_cmd_len=102400
13988 ;;
13989 sysv5* | sco5v6* | sysv4.2uw2*)
13990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13991 if test -n "$kargmax"; then
13992 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13993 else
13994 lt_cv_sys_max_cmd_len=32768
13995 fi
13996 ;;
13997 *)
John Criswell47fdd832003-07-14 16:52:07 +000013998 # If test is not a shell built-in, we'll probably end up computing a
13999 # maximum length that is only half of the actual maximum length, but
14000 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14002 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14003 = "XX$teststring") >/dev/null 2>&1 &&
14004 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014005 lt_cv_sys_max_cmd_len=$new_result &&
14006 test $i != 17 # 1/2 MB should be enough
14007 do
14008 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014009 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014010 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014011 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014012 # Add a significant safety factor because C++ compilers can tack on massive
14013 # amounts of additional arguments before passing them to the linker.
14014 # It appears as though 1/2 is a usable value.
14015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14016 ;;
14017 esac
14018
14019fi
14020
14021if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014022 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14023echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014024else
Reid Spencera773bd52006-08-04 18:18:08 +000014025 { echo "$as_me:$LINENO: result: none" >&5
14026echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014027fi
14028
14029
14030
14031
14032# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014033{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14034echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014035if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037else
14038
14039# These are sane defaults that work on at least a few old systems.
14040# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14041
14042# Character class describing NM global symbol codes.
14043symcode='[BCDEGRST]'
14044
14045# Regexp to match symbols that can be accessed directly from C.
14046sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14047
John Criswell47fdd832003-07-14 16:52:07 +000014048# Transform an extracted symbol line into a proper C declaration
14049lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14050
14051# Transform an extracted symbol line into symbol name and symbol address
14052lt_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'"
14053
14054# Define system-specific variables.
14055case $host_os in
14056aix*)
14057 symcode='[BCDT]'
14058 ;;
14059cygwin* | mingw* | pw32*)
14060 symcode='[ABCDGISTW]'
14061 ;;
14062hpux*) # Its linker distinguishes data from code symbols
14063 if test "$host_cpu" = ia64; then
14064 symcode='[ABCDEGRST]'
14065 fi
14066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14067 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'"
14068 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014069linux*)
14070 if test "$host_cpu" = ia64; then
14071 symcode='[ABCDGIRSTW]'
14072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14073 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'"
14074 fi
14075 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014076irix* | nonstopux*)
14077 symcode='[BCDEGRST]'
14078 ;;
14079osf*)
14080 symcode='[BCDEGQRST]'
14081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014082solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014083 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014084 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014085sco3.2v5*)
14086 symcode='[DT]'
14087 ;;
14088sysv4.2uw2*)
14089 symcode='[DT]'
14090 ;;
14091sysv5* | sco5v6* | unixware* | OpenUNIX*)
14092 symcode='[ABDT]'
14093 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014094sysv4)
14095 symcode='[DFNSTU]'
14096 ;;
14097esac
14098
14099# Handle CRLF in mingw tool chain
14100opt_cr=
14101case $build_os in
14102mingw*)
14103 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14104 ;;
14105esac
14106
14107# If we're using GNU nm, then use its standard symbol codes.
14108case `$NM -V 2>&1` in
14109*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014110 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014111esac
14112
14113# Try without a prefix undercore, then with it.
14114for ac_symprfx in "" "_"; do
14115
Reid Spencera773bd52006-08-04 18:18:08 +000014116 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14117 symxfrm="\\1 $ac_symprfx\\2 \\2"
14118
John Criswell47fdd832003-07-14 16:52:07 +000014119 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014120 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 +000014121
14122 # Check to see that the pipe works correctly.
14123 pipe_works=no
14124
14125 rm -f conftest*
14126 cat > conftest.$ac_ext <<EOF
14127#ifdef __cplusplus
14128extern "C" {
14129#endif
14130char nm_test_var;
14131void nm_test_func(){}
14132#ifdef __cplusplus
14133}
14134#endif
14135int main(){nm_test_var='a';nm_test_func();return(0);}
14136EOF
14137
14138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14139 (eval $ac_compile) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; then
14143 # Now try to grab the symbols.
14144 nlist=conftest.nm
14145 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14146 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && test -s "$nlist"; then
14150 # Try sorting and uniquifying the output.
14151 if sort "$nlist" | uniq > "$nlist"T; then
14152 mv -f "$nlist"T "$nlist"
14153 else
14154 rm -f "$nlist"T
14155 fi
14156
14157 # Make sure that we snagged all the symbols we need.
14158 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14159 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14160 cat <<EOF > conftest.$ac_ext
14161#ifdef __cplusplus
14162extern "C" {
14163#endif
14164
14165EOF
14166 # Now generate the symbol file.
14167 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14168
14169 cat <<EOF >> conftest.$ac_ext
14170#if defined (__STDC__) && __STDC__
14171# define lt_ptr_t void *
14172#else
14173# define lt_ptr_t char *
14174# define const
14175#endif
14176
14177/* The mapping between symbol names and symbols. */
14178const struct {
14179 const char *name;
14180 lt_ptr_t address;
14181}
14182lt_preloaded_symbols[] =
14183{
14184EOF
14185 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14186 cat <<\EOF >> conftest.$ac_ext
14187 {0, (lt_ptr_t) 0}
14188};
14189
14190#ifdef __cplusplus
14191}
14192#endif
14193EOF
14194 # Now try linking the two files.
14195 mv conftest.$ac_objext conftstm.$ac_objext
14196 lt_save_LIBS="$LIBS"
14197 lt_save_CFLAGS="$CFLAGS"
14198 LIBS="conftstm.$ac_objext"
14199 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14201 (eval $ac_link) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14205 pipe_works=yes
14206 fi
14207 LIBS="$lt_save_LIBS"
14208 CFLAGS="$lt_save_CFLAGS"
14209 else
14210 echo "cannot find nm_test_func in $nlist" >&5
14211 fi
14212 else
14213 echo "cannot find nm_test_var in $nlist" >&5
14214 fi
14215 else
14216 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14217 fi
14218 else
14219 echo "$progname: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14221 fi
14222 rm -f conftest* conftst*
14223
14224 # Do not use the global_symbol_pipe unless it works.
14225 if test "$pipe_works" = yes; then
14226 break
14227 else
14228 lt_cv_sys_global_symbol_pipe=
14229 fi
14230done
14231
14232fi
14233
14234if test -z "$lt_cv_sys_global_symbol_pipe"; then
14235 lt_cv_sys_global_symbol_to_cdecl=
14236fi
14237if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014238 { echo "$as_me:$LINENO: result: failed" >&5
14239echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014240else
Reid Spencera773bd52006-08-04 18:18:08 +000014241 { echo "$as_me:$LINENO: result: ok" >&5
14242echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014243fi
14244
Reid Spencera773bd52006-08-04 18:18:08 +000014245{ echo "$as_me:$LINENO: checking for objdir" >&5
14246echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014247if test "${lt_cv_objdir+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 rm -f .libs 2>/dev/null
14251mkdir .libs 2>/dev/null
14252if test -d .libs; then
14253 lt_cv_objdir=.libs
14254else
14255 # MS-DOS does not allow filenames that begin with a dot.
14256 lt_cv_objdir=_libs
14257fi
14258rmdir .libs 2>/dev/null
14259fi
Reid Spencera773bd52006-08-04 18:18:08 +000014260{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14261echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014262objdir=$lt_cv_objdir
14263
14264
14265
14266
14267
14268case $host_os in
14269aix3*)
14270 # AIX sometimes has problems with the GCC collect2 program. For some
14271 # reason, if we set the COLLECT_NAMES environment variable, the problems
14272 # vanish in a puff of smoke.
14273 if test "X${COLLECT_NAMES+set}" != Xset; then
14274 COLLECT_NAMES=
14275 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014276 fi
14277 ;;
14278esac
14279
John Criswell47fdd832003-07-14 16:52:07 +000014280# Sed substitution that helps us do robust quoting. It backslashifies
14281# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014282Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014283sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14284
14285# Same as above, but do not quote variable references.
14286double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14287
14288# Sed substitution to delay expansion of an escaped shell variable in a
14289# double_quote_subst'ed string.
14290delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14291
14292# Sed substitution to avoid accidental globbing in evaled expressions
14293no_glob_subst='s/\*/\\\*/g'
14294
14295# Constants:
14296rm="rm -f"
14297
14298# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014299default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014300can_build_shared=yes
14301
Reid Spencera773bd52006-08-04 18:18:08 +000014302# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014303# which needs '.lib').
14304libext=a
14305ltmain="$ac_aux_dir/ltmain.sh"
14306ofile="$default_ofile"
14307with_gnu_ld="$lt_cv_prog_gnu_ld"
14308
14309if test -n "$ac_tool_prefix"; then
14310 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14311set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014314if test "${ac_cv_prog_AR+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316else
14317 if test -n "$AR"; then
14318 ac_cv_prog_AR="$AR" # Let the user override the test.
14319else
14320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321for as_dir in $PATH
14322do
14323 IFS=$as_save_IFS
14324 test -z "$as_dir" && as_dir=.
14325 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014326 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 +000014327 ac_cv_prog_AR="${ac_tool_prefix}ar"
14328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14329 break 2
14330 fi
14331done
14332done
Reid Spencera773bd52006-08-04 18:18:08 +000014333IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014334
14335fi
14336fi
14337AR=$ac_cv_prog_AR
14338if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014339 { echo "$as_me:$LINENO: result: $AR" >&5
14340echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014341else
Reid Spencera773bd52006-08-04 18:18:08 +000014342 { echo "$as_me:$LINENO: result: no" >&5
14343echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014344fi
14345
Reid Spencera773bd52006-08-04 18:18:08 +000014346
John Criswell47fdd832003-07-14 16:52:07 +000014347fi
14348if test -z "$ac_cv_prog_AR"; then
14349 ac_ct_AR=$AR
14350 # Extract the first word of "ar", so it can be a program name with args.
14351set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014354if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357 if test -n "$ac_ct_AR"; then
14358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14359else
14360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361for as_dir in $PATH
14362do
14363 IFS=$as_save_IFS
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014366 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 +000014367 ac_cv_prog_ac_ct_AR="ar"
14368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14369 break 2
14370 fi
14371done
14372done
Reid Spencera773bd52006-08-04 18:18:08 +000014373IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014374
John Criswell47fdd832003-07-14 16:52:07 +000014375fi
14376fi
14377ac_ct_AR=$ac_cv_prog_ac_ct_AR
14378if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014379 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14380echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014381else
Reid Spencera773bd52006-08-04 18:18:08 +000014382 { echo "$as_me:$LINENO: result: no" >&5
14383echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014384fi
14385
Reid Spencera773bd52006-08-04 18:18:08 +000014386 if test "x$ac_ct_AR" = x; then
14387 AR="false"
14388 else
14389 case $cross_compiling:$ac_tool_warned in
14390yes:)
14391{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14392whose name does not start with the host triplet. If you think this
14393configuration is useful to you, please write to autoconf@gnu.org." >&5
14394echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14395whose name does not start with the host triplet. If you think this
14396configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14397ac_tool_warned=yes ;;
14398esac
14399 AR=$ac_ct_AR
14400 fi
John Criswell47fdd832003-07-14 16:52:07 +000014401else
14402 AR="$ac_cv_prog_AR"
14403fi
14404
John Criswell7a73b802003-06-30 21:59:07 +000014405if test -n "$ac_tool_prefix"; then
14406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14407set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014410if test "${ac_cv_prog_RANLIB+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412else
14413 if test -n "$RANLIB"; then
14414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14415else
14416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417for as_dir in $PATH
14418do
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014422 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 +000014423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14426 fi
14427done
14428done
Reid Spencera773bd52006-08-04 18:18:08 +000014429IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014430
14431fi
14432fi
14433RANLIB=$ac_cv_prog_RANLIB
14434if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014435 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14436echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014437else
Reid Spencera773bd52006-08-04 18:18:08 +000014438 { echo "$as_me:$LINENO: result: no" >&5
14439echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014440fi
14441
Reid Spencera773bd52006-08-04 18:18:08 +000014442
John Criswell7a73b802003-06-30 21:59:07 +000014443fi
14444if test -z "$ac_cv_prog_RANLIB"; then
14445 ac_ct_RANLIB=$RANLIB
14446 # Extract the first word of "ranlib", so it can be a program name with args.
14447set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014450if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452else
14453 if test -n "$ac_ct_RANLIB"; then
14454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14455else
14456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457for as_dir in $PATH
14458do
14459 IFS=$as_save_IFS
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014462 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 +000014463 ac_cv_prog_ac_ct_RANLIB="ranlib"
14464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14465 break 2
14466 fi
14467done
14468done
Reid Spencera773bd52006-08-04 18:18:08 +000014469IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014470
John Criswell7a73b802003-06-30 21:59:07 +000014471fi
14472fi
14473ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14474if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014475 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14476echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014477else
Reid Spencera773bd52006-08-04 18:18:08 +000014478 { echo "$as_me:$LINENO: result: no" >&5
14479echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014480fi
14481
Reid Spencera773bd52006-08-04 18:18:08 +000014482 if test "x$ac_ct_RANLIB" = x; then
14483 RANLIB=":"
14484 else
14485 case $cross_compiling:$ac_tool_warned in
14486yes:)
14487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14488whose name does not start with the host triplet. If you think this
14489configuration is useful to you, please write to autoconf@gnu.org." >&5
14490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14491whose name does not start with the host triplet. If you think this
14492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14493ac_tool_warned=yes ;;
14494esac
14495 RANLIB=$ac_ct_RANLIB
14496 fi
John Criswell7a73b802003-06-30 21:59:07 +000014497else
14498 RANLIB="$ac_cv_prog_RANLIB"
14499fi
14500
14501if test -n "$ac_tool_prefix"; then
14502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14503set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014506if test "${ac_cv_prog_STRIP+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509 if test -n "$STRIP"; then
14510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14511else
14512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513for as_dir in $PATH
14514do
14515 IFS=$as_save_IFS
14516 test -z "$as_dir" && as_dir=.
14517 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014518 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 +000014519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14521 break 2
14522 fi
14523done
14524done
Reid Spencera773bd52006-08-04 18:18:08 +000014525IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014526
14527fi
14528fi
14529STRIP=$ac_cv_prog_STRIP
14530if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014531 { echo "$as_me:$LINENO: result: $STRIP" >&5
14532echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014533else
Reid Spencera773bd52006-08-04 18:18:08 +000014534 { echo "$as_me:$LINENO: result: no" >&5
14535echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014536fi
14537
Reid Spencera773bd52006-08-04 18:18:08 +000014538
John Criswell7a73b802003-06-30 21:59:07 +000014539fi
14540if test -z "$ac_cv_prog_STRIP"; then
14541 ac_ct_STRIP=$STRIP
14542 # Extract the first word of "strip", so it can be a program name with args.
14543set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014546if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 if test -n "$ac_ct_STRIP"; then
14550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14551else
14552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553for as_dir in $PATH
14554do
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014558 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 +000014559 ac_cv_prog_ac_ct_STRIP="strip"
14560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563done
14564done
Reid Spencera773bd52006-08-04 18:18:08 +000014565IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014566
John Criswell7a73b802003-06-30 21:59:07 +000014567fi
14568fi
14569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14570if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014571 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14572echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014573else
Reid Spencera773bd52006-08-04 18:18:08 +000014574 { echo "$as_me:$LINENO: result: no" >&5
14575echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014576fi
14577
Reid Spencera773bd52006-08-04 18:18:08 +000014578 if test "x$ac_ct_STRIP" = x; then
14579 STRIP=":"
14580 else
14581 case $cross_compiling:$ac_tool_warned in
14582yes:)
14583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14584whose name does not start with the host triplet. If you think this
14585configuration is useful to you, please write to autoconf@gnu.org." >&5
14586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14587whose name does not start with the host triplet. If you think this
14588configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14589ac_tool_warned=yes ;;
14590esac
14591 STRIP=$ac_ct_STRIP
14592 fi
John Criswell7a73b802003-06-30 21:59:07 +000014593else
14594 STRIP="$ac_cv_prog_STRIP"
14595fi
14596
14597
John Criswell7a73b802003-06-30 21:59:07 +000014598old_CC="$CC"
14599old_CFLAGS="$CFLAGS"
14600
14601# Set sane defaults for various variables
14602test -z "$AR" && AR=ar
14603test -z "$AR_FLAGS" && AR_FLAGS=cru
14604test -z "$AS" && AS=as
14605test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014606test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014607test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014608test -z "$DLLTOOL" && DLLTOOL=dlltool
14609test -z "$LD" && LD=ld
14610test -z "$LN_S" && LN_S="ln -s"
14611test -z "$MAGIC_CMD" && MAGIC_CMD=file
14612test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014613test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014614test -z "$OBJDUMP" && OBJDUMP=objdump
14615test -z "$RANLIB" && RANLIB=:
14616test -z "$STRIP" && STRIP=:
14617test -z "$ac_objext" && ac_objext=o
14618
John Criswell7a73b802003-06-30 21:59:07 +000014619# Determine commands to create old-style static archives.
14620old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14621old_postinstall_cmds='chmod 644 $oldlib'
14622old_postuninstall_cmds=
14623
14624if test -n "$RANLIB"; then
14625 case $host_os in
14626 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014628 ;;
14629 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014631 ;;
14632 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014633 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014634fi
14635
Reid Spencera773bd52006-08-04 18:18:08 +000014636for cc_temp in $compiler""; do
14637 case $cc_temp in
14638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14640 \-*) ;;
14641 *) break;;
14642 esac
14643done
14644cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14645
Reid Spencer2706f8c2004-09-19 23:53:36 +000014646
John Criswell47fdd832003-07-14 16:52:07 +000014647# Only perform the check for file, if the check method requires it
14648case $deplibs_check_method in
14649file_magic*)
14650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014651 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14652echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014653if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014655else
John Criswell47fdd832003-07-14 16:52:07 +000014656 case $MAGIC_CMD in
14657[\\/*] | ?:[\\/]*)
14658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14659 ;;
14660*)
14661 lt_save_MAGIC_CMD="$MAGIC_CMD"
14662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14664 for ac_dir in $ac_dummy; do
14665 IFS="$lt_save_ifs"
14666 test -z "$ac_dir" && ac_dir=.
14667 if test -f $ac_dir/${ac_tool_prefix}file; then
14668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14669 if test -n "$file_magic_test_file"; then
14670 case $deplibs_check_method in
14671 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14675 $EGREP "$file_magic_regex" > /dev/null; then
14676 :
14677 else
14678 cat <<EOF 1>&2
14679
14680*** Warning: the command libtool uses to detect shared libraries,
14681*** $file_magic_cmd, produces output that libtool cannot recognize.
14682*** The result is that libtool may fail to recognize shared libraries
14683*** as such. This will affect the creation of libtool libraries that
14684*** depend on shared libraries, but programs linked with such libtool
14685*** libraries will work regardless of this problem. Nevertheless, you
14686*** may want to report the problem to your system manager and/or to
14687*** bug-libtool@gnu.org
14688
14689EOF
14690 fi ;;
14691 esac
14692 fi
14693 break
14694 fi
14695 done
14696 IFS="$lt_save_ifs"
14697 MAGIC_CMD="$lt_save_MAGIC_CMD"
14698 ;;
14699esac
John Criswell7a73b802003-06-30 21:59:07 +000014700fi
John Criswell7a73b802003-06-30 21:59:07 +000014701
John Criswell47fdd832003-07-14 16:52:07 +000014702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14703if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014704 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14705echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014706else
Reid Spencera773bd52006-08-04 18:18:08 +000014707 { echo "$as_me:$LINENO: result: no" >&5
14708echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014709fi
John Criswell7a73b802003-06-30 21:59:07 +000014710
John Criswell47fdd832003-07-14 16:52:07 +000014711if test -z "$lt_cv_path_MAGIC_CMD"; then
14712 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014713 { echo "$as_me:$LINENO: checking for file" >&5
14714echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014715if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 case $MAGIC_CMD in
14719[\\/*] | ?:[\\/]*)
14720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14721 ;;
14722*)
14723 lt_save_MAGIC_CMD="$MAGIC_CMD"
14724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14726 for ac_dir in $ac_dummy; do
14727 IFS="$lt_save_ifs"
14728 test -z "$ac_dir" && ac_dir=.
14729 if test -f $ac_dir/file; then
14730 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14731 if test -n "$file_magic_test_file"; then
14732 case $deplibs_check_method in
14733 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14737 $EGREP "$file_magic_regex" > /dev/null; then
14738 :
14739 else
14740 cat <<EOF 1>&2
14741
14742*** Warning: the command libtool uses to detect shared libraries,
14743*** $file_magic_cmd, produces output that libtool cannot recognize.
14744*** The result is that libtool may fail to recognize shared libraries
14745*** as such. This will affect the creation of libtool libraries that
14746*** depend on shared libraries, but programs linked with such libtool
14747*** libraries will work regardless of this problem. Nevertheless, you
14748*** may want to report the problem to your system manager and/or to
14749*** bug-libtool@gnu.org
14750
14751EOF
14752 fi ;;
14753 esac
14754 fi
14755 break
14756 fi
14757 done
14758 IFS="$lt_save_ifs"
14759 MAGIC_CMD="$lt_save_MAGIC_CMD"
14760 ;;
14761esac
14762fi
14763
14764MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14765if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014766 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14767echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014768else
Reid Spencera773bd52006-08-04 18:18:08 +000014769 { echo "$as_me:$LINENO: result: no" >&5
14770echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014771fi
14772
14773 else
14774 MAGIC_CMD=:
14775 fi
14776fi
14777
14778 fi
14779 ;;
14780esac
14781
Reid Spencer17795972004-11-18 09:47:37 +000014782enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014783enable_win32_dll=no
14784
Reid Spencera773bd52006-08-04 18:18:08 +000014785# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014786if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014787 enableval=$enable_libtool_lock;
14788fi
John Criswell47fdd832003-07-14 16:52:07 +000014789
John Criswell47fdd832003-07-14 16:52:07 +000014790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14791
John Criswell7a73b802003-06-30 21:59:07 +000014792
Reid Spencera773bd52006-08-04 18:18:08 +000014793# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014794if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014795 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014796else
14797 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014798fi
14799
John Criswell7a73b802003-06-30 21:59:07 +000014800test -z "$pic_mode" && pic_mode=default
14801
John Criswell47fdd832003-07-14 16:52:07 +000014802# Use C for the default configuration in the libtool script
14803tagname=
14804lt_save_CC="$CC"
14805ac_ext=c
14806ac_cpp='$CPP $CPPFLAGS'
14807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14809ac_compiler_gnu=$ac_cv_c_compiler_gnu
14810
14811
14812# Source file extension for C test sources.
14813ac_ext=c
14814
14815# Object file extension for compiled C test sources.
14816objext=o
14817objext=$objext
14818
14819# Code to be used in simple compile tests
14820lt_simple_compile_test_code="int some_variable = 0;\n"
14821
14822# Code to be used in simple link tests
14823lt_simple_link_test_code='int main(){return(0);}\n'
14824
14825
14826# If no C compiler was specified, use CC.
14827LTCC=${LTCC-"$CC"}
14828
Reid Spencera773bd52006-08-04 18:18:08 +000014829# If no C compiler flags were specified, use CFLAGS.
14830LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14831
John Criswell47fdd832003-07-14 16:52:07 +000014832# Allow CC to be a program name with arguments.
14833compiler=$CC
14834
14835
Reid Spencera773bd52006-08-04 18:18:08 +000014836# save warnings/boilerplate of simple test code
14837ac_outfile=conftest.$ac_objext
14838printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14839eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14840_lt_compiler_boilerplate=`cat conftest.err`
14841$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014842
Reid Spencera773bd52006-08-04 18:18:08 +000014843ac_outfile=conftest.$ac_objext
14844printf "$lt_simple_link_test_code" >conftest.$ac_ext
14845eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14846_lt_linker_boilerplate=`cat conftest.err`
14847$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014848
14849
John Criswell47fdd832003-07-14 16:52:07 +000014850
14851lt_prog_compiler_no_builtin_flag=
14852
14853if test "$GCC" = yes; then
14854 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14855
Reid Spencer2706f8c2004-09-19 23:53:36 +000014856
Reid Spencera773bd52006-08-04 18:18:08 +000014857{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14858echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014859if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else
14862 lt_cv_prog_compiler_rtti_exceptions=no
14863 ac_outfile=conftest.$ac_objext
14864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14865 lt_compiler_flag="-fno-rtti -fno-exceptions"
14866 # Insert the option either (1) after the last *FLAGS variable, or
14867 # (2) before a word containing "conftest.", or (3) at the end.
14868 # Note that $ac_compile itself does not contain backslashes and begins
14869 # with a dollar sign (not a hyphen), so the echo should work correctly.
14870 # The option is referenced via a variable to avoid confusing sed.
14871 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14874 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000014875 (eval echo "\"\$as_me:14875: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014876 (eval "$lt_compile" 2>conftest.err)
14877 ac_status=$?
14878 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000014879 echo "$as_me:14879: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014880 if (exit $ac_status) && test -s "$ac_outfile"; then
14881 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014882 # So say no if there are warnings other than the usual output.
14883 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014886 lt_cv_prog_compiler_rtti_exceptions=yes
14887 fi
14888 fi
14889 $rm conftest*
14890
14891fi
Reid Spencera773bd52006-08-04 18:18:08 +000014892{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14893echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014894
14895if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14896 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14897else
14898 :
14899fi
14900
14901fi
14902
14903lt_prog_compiler_wl=
14904lt_prog_compiler_pic=
14905lt_prog_compiler_static=
14906
Reid Spencera773bd52006-08-04 18:18:08 +000014907{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14908echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014909
14910 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014911 lt_prog_compiler_wl='-Wl,'
14912 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014913
14914 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014915 aix*)
14916 # All AIX code is PIC.
14917 if test "$host_cpu" = ia64; then
14918 # AIX 5 now supports IA64 processor
14919 lt_prog_compiler_static='-Bstatic'
14920 fi
John Criswell7a73b802003-06-30 21:59:07 +000014921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014922
John Criswell7a73b802003-06-30 21:59:07 +000014923 amigaos*)
14924 # FIXME: we need at least 68020 code to build shared libraries, but
14925 # adding the `-m68020' flag to GCC prevents building anything better,
14926 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929
14930 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014931 # PIC is the default for these OSes.
14932 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014933
14934 mingw* | pw32* | os2*)
14935 # This hack is so that the source file can tell whether it is being
14936 # built for inclusion in a dll (and should export symbols for example).
14937 lt_prog_compiler_pic='-DDLL_EXPORT'
14938 ;;
14939
John Criswell7a73b802003-06-30 21:59:07 +000014940 darwin* | rhapsody*)
14941 # PIC is the default on this platform
14942 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014943 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014944 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014945
Reid Spencera773bd52006-08-04 18:18:08 +000014946 interix3*)
14947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14948 # Instead, we relocate shared libraries at runtime.
14949 ;;
14950
John Criswell47fdd832003-07-14 16:52:07 +000014951 msdosdjgpp*)
14952 # Just because we use GCC doesn't mean we suddenly get shared libraries
14953 # on systems that don't support them.
14954 lt_prog_compiler_can_build_shared=no
14955 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014957
John Criswell7a73b802003-06-30 21:59:07 +000014958 sysv4*MP*)
14959 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014960 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014961 fi
14962 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014963
14964 hpux*)
14965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14966 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014967 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014968 hppa*64*|ia64*)
14969 # +Z the default
14970 ;;
14971 *)
14972 lt_prog_compiler_pic='-fPIC'
14973 ;;
14974 esac
14975 ;;
14976
John Criswell7a73b802003-06-30 21:59:07 +000014977 *)
John Criswell47fdd832003-07-14 16:52:07 +000014978 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014979 ;;
14980 esac
14981 else
John Criswell47fdd832003-07-14 16:52:07 +000014982 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014983 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014984 aix*)
14985 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014986 if test "$host_cpu" = ia64; then
14987 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014988 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014989 else
John Criswell47fdd832003-07-14 16:52:07 +000014990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014991 fi
14992 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014993 darwin*)
14994 # PIC is the default on this platform
14995 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014996 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014997 xlc*)
14998 lt_prog_compiler_pic='-qnocommon'
14999 lt_prog_compiler_wl='-Wl,'
15000 ;;
15001 esac
15002 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015003
John Criswell47fdd832003-07-14 16:52:07 +000015004 mingw* | pw32* | os2*)
15005 # This hack is so that the source file can tell whether it is being
15006 # built for inclusion in a dll (and should export symbols for example).
15007 lt_prog_compiler_pic='-DDLL_EXPORT'
15008 ;;
15009
John Criswell7a73b802003-06-30 21:59:07 +000015010 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015011 lt_prog_compiler_wl='-Wl,'
15012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15013 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015014 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015015 hppa*64*|ia64*)
15016 # +Z the default
15017 ;;
15018 *)
15019 lt_prog_compiler_pic='+Z'
15020 ;;
15021 esac
15022 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15023 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015024 ;;
15025
John Criswell47fdd832003-07-14 16:52:07 +000015026 irix5* | irix6* | nonstopux*)
15027 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015028 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015029 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015030 ;;
15031
15032 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015033 lt_prog_compiler_pic='-KPIC'
15034 lt_prog_compiler_static='-Bstatic'
15035 ;;
15036
15037 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015038 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015039 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_pic='-KPIC'
15042 lt_prog_compiler_static='-static'
15043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015044 pgcc* | pgf77* | pgf90* | pgf95*)
15045 # Portland Group compilers (*not* the Pentium gcc compiler,
15046 # which looks to be a dead project)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_pic='-fpic'
15049 lt_prog_compiler_static='-Bstatic'
15050 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015051 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015052 lt_prog_compiler_wl='-Wl,'
15053 # All Alpha code is PIC.
15054 lt_prog_compiler_static='-non_shared'
15055 ;;
15056 esac
John Criswell7a73b802003-06-30 21:59:07 +000015057 ;;
15058
15059 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015060 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015061 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015062 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015063 ;;
15064
John Criswell7a73b802003-06-30 21:59:07 +000015065 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015068 case $cc_basename in
15069 f77* | f90* | f95*)
15070 lt_prog_compiler_wl='-Qoption ld ';;
15071 *)
15072 lt_prog_compiler_wl='-Wl,';;
15073 esac
John Criswell7a73b802003-06-30 21:59:07 +000015074 ;;
15075
15076 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015077 lt_prog_compiler_wl='-Qoption ld '
15078 lt_prog_compiler_pic='-PIC'
15079 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015080 ;;
15081
Reid Spencera773bd52006-08-04 18:18:08 +000015082 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-KPIC'
15085 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015086 ;;
15087
15088 sysv4*MP*)
15089 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015090 lt_prog_compiler_pic='-Kconform_pic'
15091 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015092 fi
15093 ;;
15094
Reid Spencera773bd52006-08-04 18:18:08 +000015095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-KPIC'
15098 lt_prog_compiler_static='-Bstatic'
15099 ;;
15100
15101 unicos*)
15102 lt_prog_compiler_wl='-Wl,'
15103 lt_prog_compiler_can_build_shared=no
15104 ;;
15105
John Criswell47fdd832003-07-14 16:52:07 +000015106 uts4*)
15107 lt_prog_compiler_pic='-pic'
15108 lt_prog_compiler_static='-Bstatic'
15109 ;;
15110
John Criswell7a73b802003-06-30 21:59:07 +000015111 *)
John Criswell47fdd832003-07-14 16:52:07 +000015112 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015113 ;;
15114 esac
15115 fi
15116
Reid Spencera773bd52006-08-04 18:18:08 +000015117{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15118echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015119
John Criswell47fdd832003-07-14 16:52:07 +000015120#
15121# Check to make sure the PIC flag actually works.
15122#
15123if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015124
Reid Spencera773bd52006-08-04 18:18:08 +000015125{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15126echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015127if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
John Criswell47fdd832003-07-14 16:52:07 +000015130 lt_prog_compiler_pic_works=no
15131 ac_outfile=conftest.$ac_objext
15132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15134 # Insert the option either (1) after the last *FLAGS variable, or
15135 # (2) before a word containing "conftest.", or (3) at the end.
15136 # Note that $ac_compile itself does not contain backslashes and begins
15137 # with a dollar sign (not a hyphen), so the echo should work correctly.
15138 # The option is referenced via a variable to avoid confusing sed.
15139 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15142 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000015143 (eval echo "\"\$as_me:15143: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015144 (eval "$lt_compile" 2>conftest.err)
15145 ac_status=$?
15146 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000015147 echo "$as_me:15147: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015148 if (exit $ac_status) && test -s "$ac_outfile"; then
15149 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015150 # So say no if there are warnings other than the usual output.
15151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015154 lt_prog_compiler_pic_works=yes
15155 fi
15156 fi
15157 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015158
John Criswell47fdd832003-07-14 16:52:07 +000015159fi
Reid Spencera773bd52006-08-04 18:18:08 +000015160{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15161echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015162
John Criswell47fdd832003-07-14 16:52:07 +000015163if test x"$lt_prog_compiler_pic_works" = xyes; then
15164 case $lt_prog_compiler_pic in
15165 "" | " "*) ;;
15166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15167 esac
John Criswell7a73b802003-06-30 21:59:07 +000015168else
John Criswell47fdd832003-07-14 16:52:07 +000015169 lt_prog_compiler_pic=
15170 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015171fi
15172
John Criswell7a73b802003-06-30 21:59:07 +000015173fi
Reid Spencera773bd52006-08-04 18:18:08 +000015174case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015175 # For platforms which do not support PIC, -DPIC is meaningless:
15176 *djgpp*)
15177 lt_prog_compiler_pic=
15178 ;;
15179 *)
15180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15181 ;;
15182esac
John Criswell7a73b802003-06-30 21:59:07 +000015183
Reid Spencera773bd52006-08-04 18:18:08 +000015184#
15185# Check to make sure the static flag actually works.
15186#
15187wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15188{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15189echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15190if test "${lt_prog_compiler_static_works+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193 lt_prog_compiler_static_works=no
15194 save_LDFLAGS="$LDFLAGS"
15195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15198 # The linker can only warn and ignore the option if not recognized
15199 # So say no if there are warnings
15200 if test -s conftest.err; then
15201 # Append any errors to the config.log.
15202 cat conftest.err 1>&5
15203 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15205 if diff conftest.exp conftest.er2 >/dev/null; then
15206 lt_prog_compiler_static_works=yes
15207 fi
15208 else
15209 lt_prog_compiler_static_works=yes
15210 fi
15211 fi
15212 $rm conftest*
15213 LDFLAGS="$save_LDFLAGS"
15214
15215fi
15216{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15217echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15218
15219if test x"$lt_prog_compiler_static_works" = xyes; then
15220 :
15221else
15222 lt_prog_compiler_static=
15223fi
15224
15225
15226{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15227echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015228if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015229 echo $ECHO_N "(cached) $ECHO_C" >&6
15230else
John Criswell47fdd832003-07-14 16:52:07 +000015231 lt_cv_prog_compiler_c_o=no
15232 $rm -r conftest 2>/dev/null
15233 mkdir conftest
15234 cd conftest
15235 mkdir out
15236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015237
John Criswell47fdd832003-07-14 16:52:07 +000015238 lt_compiler_flag="-o out/conftest2.$ac_objext"
15239 # Insert the option either (1) after the last *FLAGS variable, or
15240 # (2) before a word containing "conftest.", or (3) at the end.
15241 # Note that $ac_compile itself does not contain backslashes and begins
15242 # with a dollar sign (not a hyphen), so the echo should work correctly.
15243 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15246 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000015247 (eval echo "\"\$as_me:15247: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015248 (eval "$lt_compile" 2>out/conftest.err)
15249 ac_status=$?
15250 cat out/conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000015251 echo "$as_me:15251: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15253 then
15254 # The compiler can only warn and ignore the option if not recognized
15255 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015259 lt_cv_prog_compiler_c_o=yes
15260 fi
15261 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015262 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 $rm conftest*
15264 # SGI C++ compiler will create directory out/ii_files/ for
15265 # template instantiation
15266 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15267 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015268 cd ..
15269 rmdir conftest
15270 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015271
15272fi
Reid Spencera773bd52006-08-04 18:18:08 +000015273{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15274echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015275
John Criswell7a73b802003-06-30 21:59:07 +000015276
John Criswell7a73b802003-06-30 21:59:07 +000015277hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015278if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015279 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015280 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15281echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015282 hard_links=yes
15283 $rm conftest*
15284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15285 touch conftest.a
15286 ln conftest.a conftest.b 2>&5 || hard_links=no
15287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015288 { echo "$as_me:$LINENO: result: $hard_links" >&5
15289echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015290 if test "$hard_links" = no; then
15291 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15292echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15293 need_locks=warn
15294 fi
15295else
15296 need_locks=no
15297fi
John Criswell7a73b802003-06-30 21:59:07 +000015298
Reid Spencera773bd52006-08-04 18:18:08 +000015299{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15300echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015301
15302 runpath_var=
15303 allow_undefined_flag=
15304 enable_shared_with_static_runtimes=no
15305 archive_cmds=
15306 archive_expsym_cmds=
15307 old_archive_From_new_cmds=
15308 old_archive_from_expsyms_cmds=
15309 export_dynamic_flag_spec=
15310 whole_archive_flag_spec=
15311 thread_safe_flag_spec=
15312 hardcode_libdir_flag_spec=
15313 hardcode_libdir_flag_spec_ld=
15314 hardcode_libdir_separator=
15315 hardcode_direct=no
15316 hardcode_minus_L=no
15317 hardcode_shlibpath_var=unsupported
15318 link_all_deplibs=unknown
15319 hardcode_automatic=no
15320 module_cmds=
15321 module_expsym_cmds=
15322 always_export_symbols=no
15323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15324 # include_expsyms should be a list of space-separated symbols to be *always*
15325 # included in the symbol list
15326 include_expsyms=
15327 # exclude_expsyms can be an extended regexp of symbols to exclude
15328 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15329 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15330 # as well as any symbol that contains `d'.
15331 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15332 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15333 # platforms (ab)use it in PIC code, but their linkers get confused if
15334 # the symbol is explicitly referenced. Since portable code cannot
15335 # rely on this symbol name, it's probably fine to never include it in
15336 # preloaded symbol tables.
15337 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015338 # Just being paranoid about ensuring that cc_basename is set.
15339 for cc_temp in $compiler""; do
15340 case $cc_temp in
15341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15343 \-*) ;;
15344 *) break;;
15345 esac
15346done
15347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015348
15349 case $host_os in
15350 cygwin* | mingw* | pw32*)
15351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15352 # When not using gcc, we currently assume that we are using
15353 # Microsoft Visual C++.
15354 if test "$GCC" != yes; then
15355 with_gnu_ld=no
15356 fi
15357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015358 interix*)
15359 # we just hope/assume this is gcc and not c89 (= MSVC++)
15360 with_gnu_ld=yes
15361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015362 openbsd*)
15363 with_gnu_ld=no
15364 ;;
15365 esac
15366
15367 ld_shlibs=yes
15368 if test "$with_gnu_ld" = yes; then
15369 # If archive_cmds runs LD, not CC, wlarc should be empty
15370 wlarc='${wl}'
15371
Reid Spencera773bd52006-08-04 18:18:08 +000015372 # Set some defaults for GNU ld with shared library support. These
15373 # are reset later if shared libraries are not supported. Putting them
15374 # here allows them to be overridden if necessary.
15375 runpath_var=LD_RUN_PATH
15376 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15377 export_dynamic_flag_spec='${wl}--export-dynamic'
15378 # ancient GNU ld didn't support --whole-archive et. al.
15379 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15380 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15381 else
15382 whole_archive_flag_spec=
15383 fi
15384 supports_anon_versioning=no
15385 case `$LD -v 2>/dev/null` in
15386 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15387 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15388 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15389 *\ 2.11.*) ;; # other 2.11 versions
15390 *) supports_anon_versioning=yes ;;
15391 esac
15392
John Criswell47fdd832003-07-14 16:52:07 +000015393 # See if GNU ld supports shared libraries.
15394 case $host_os in
15395 aix3* | aix4* | aix5*)
15396 # On AIX/PPC, the GNU linker is very broken
15397 if test "$host_cpu" != ia64; then
15398 ld_shlibs=no
15399 cat <<EOF 1>&2
15400
15401*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15402*** to be unable to reliably create shared libraries on AIX.
15403*** Therefore, libtool is disabling shared libraries support. If you
15404*** really care for shared libraries, you may want to modify your PATH
15405*** so that a non-GNU linker is found, and then restart.
15406
15407EOF
15408 fi
15409 ;;
15410
15411 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015412 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 +000015413 hardcode_libdir_flag_spec='-L$libdir'
15414 hardcode_minus_L=yes
15415
15416 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15417 # that the semantics of dynamic libraries on AmigaOS, at least up
15418 # to version 4, is to share data among multiple programs linked
15419 # with the same dynamic library. Since this doesn't match the
15420 # behavior of shared libraries on other platforms, we can't use
15421 # them.
15422 ld_shlibs=no
15423 ;;
15424
15425 beos*)
15426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15427 allow_undefined_flag=unsupported
15428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15429 # support --undefined. This deserves some investigation. FIXME
15430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15431 else
15432 ld_shlibs=no
15433 fi
15434 ;;
15435
15436 cygwin* | mingw* | pw32*)
15437 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15438 # as there is no search path for DLLs.
15439 hardcode_libdir_flag_spec='-L$libdir'
15440 allow_undefined_flag=unsupported
15441 always_export_symbols=no
15442 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015443 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 +000015444
15445 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015446 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 +000015447 # If the export-symbols file already is a .def file (1st line
15448 # is EXPORTS), use it as is; otherwise, prepend...
15449 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15450 cp $export_symbols $output_objdir/$soname.def;
15451 else
15452 echo EXPORTS > $output_objdir/$soname.def;
15453 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015454 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15456 else
15457 ld_shlibs=no
15458 fi
15459 ;;
15460
15461 interix3*)
15462 hardcode_direct=no
15463 hardcode_shlibpath_var=no
15464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15465 export_dynamic_flag_spec='${wl}-E'
15466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15467 # Instead, shared libraries are loaded at an image base (0x10000000 by
15468 # default) and relocated if they conflict, which is a slow very memory
15469 # consuming and fragmenting process. To avoid this, we pick a random,
15470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15471 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15473 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'
15474 ;;
15475
15476 linux*)
15477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15478 tmp_addflag=
15479 case $cc_basename,$host_cpu in
15480 pgcc*) # Portland Group C compiler
15481 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'
15482 tmp_addflag=' $pic_flag'
15483 ;;
15484 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15485 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'
15486 tmp_addflag=' $pic_flag -Mnomain' ;;
15487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15488 tmp_addflag=' -i_dynamic' ;;
15489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15490 tmp_addflag=' -i_dynamic -nofor_main' ;;
15491 ifc* | ifort*) # Intel Fortran compiler
15492 tmp_addflag=' -nofor_main' ;;
15493 esac
15494 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495
15496 if test $supports_anon_versioning = yes; then
15497 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15499 $echo "local: *; };" >> $output_objdir/$libname.ver~
15500 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15501 fi
John Criswell47fdd832003-07-14 16:52:07 +000015502 else
15503 ld_shlibs=no
15504 fi
15505 ;;
15506
15507 netbsd*)
15508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15510 wlarc=
15511 else
15512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15514 fi
15515 ;;
15516
Reid Spencera773bd52006-08-04 18:18:08 +000015517 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15519 ld_shlibs=no
15520 cat <<EOF 1>&2
15521
15522*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15523*** create shared libraries on Solaris systems. Therefore, libtool
15524*** is disabling shared libraries support. We urge you to upgrade GNU
15525*** binutils to release 2.9.1 or newer. Another option is to modify
15526*** your PATH or compiler configuration so that the native linker is
15527*** used, and then restart.
15528
15529EOF
15530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15533 else
15534 ld_shlibs=no
15535 fi
15536 ;;
15537
Reid Spencera773bd52006-08-04 18:18:08 +000015538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15539 case `$LD -v 2>&1` in
15540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15541 ld_shlibs=no
15542 cat <<_LT_EOF 1>&2
15543
15544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15545*** reliably create shared libraries on SCO systems. Therefore, libtool
15546*** is disabling shared libraries support. We urge you to upgrade GNU
15547*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15548*** your PATH or compiler configuration so that the native linker is
15549*** used, and then restart.
15550
15551_LT_EOF
15552 ;;
15553 *)
15554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15555 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15558 else
15559 ld_shlibs=no
15560 fi
15561 ;;
15562 esac
15563 ;;
15564
John Criswell47fdd832003-07-14 16:52:07 +000015565 sunos4*)
15566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567 wlarc=
15568 hardcode_direct=yes
15569 hardcode_shlibpath_var=no
15570 ;;
15571
15572 *)
15573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15576 else
15577 ld_shlibs=no
15578 fi
15579 ;;
15580 esac
15581
Reid Spencera773bd52006-08-04 18:18:08 +000015582 if test "$ld_shlibs" = no; then
15583 runpath_var=
15584 hardcode_libdir_flag_spec=
15585 export_dynamic_flag_spec=
15586 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015587 fi
15588 else
15589 # PORTME fill in a description of your system's linker (not GNU ld)
15590 case $host_os in
15591 aix3*)
15592 allow_undefined_flag=unsupported
15593 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015594 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 +000015595 # Note: this linker hardcodes the directories in LIBPATH if there
15596 # are no directories specified by -L.
15597 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015599 # Neither direct hardcoding nor static linking is supported with a
15600 # broken collect2.
15601 hardcode_direct=unsupported
15602 fi
15603 ;;
15604
15605 aix4* | aix5*)
15606 if test "$host_cpu" = ia64; then
15607 # On IA64, the linker does run time linking by default, so we don't
15608 # have to do anything special.
15609 aix_use_runtimelinking=no
15610 exp_sym_flag='-Bexport'
15611 no_entry_flag=""
15612 else
15613 # If we're using GNU nm, then we don't want the "-C" option.
15614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15615 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15616 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'
15617 else
15618 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'
15619 fi
15620 aix_use_runtimelinking=no
15621
15622 # Test if we are trying to use run time linking or normal
15623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15624 # need to do runtime linking.
15625 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15626 for ld_flag in $LDFLAGS; do
15627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15628 aix_use_runtimelinking=yes
15629 break
15630 fi
15631 done
Reid Spencera773bd52006-08-04 18:18:08 +000015632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015633 esac
15634
15635 exp_sym_flag='-bexport'
15636 no_entry_flag='-bnoentry'
15637 fi
15638
15639 # When large executables or shared objects are built, AIX ld can
15640 # have problems creating the table of contents. If linking a library
15641 # or program results in "error TOC overflow" add -mminimal-toc to
15642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15644
15645 archive_cmds=''
15646 hardcode_direct=yes
15647 hardcode_libdir_separator=':'
15648 link_all_deplibs=yes
15649
15650 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015651 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015652 # We only want to do this on AIX 4.2 and lower, the check
15653 # below for broken collect2 doesn't work under 4.3+
15654 collect2name=`${CC} -print-prog-name=collect2`
15655 if test -f "$collect2name" && \
15656 strings "$collect2name" | grep resolve_lib_name >/dev/null
15657 then
15658 # We have reworked collect2
15659 hardcode_direct=yes
15660 else
15661 # We have old collect2
15662 hardcode_direct=unsupported
15663 # It fails to find uninstalled libraries when the uninstalled
15664 # path is not listed in the libpath. Setting hardcode_minus_L
15665 # to unsupported forces relinking
15666 hardcode_minus_L=yes
15667 hardcode_libdir_flag_spec='-L$libdir'
15668 hardcode_libdir_separator=
15669 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015670 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015671 esac
15672 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015673 if test "$aix_use_runtimelinking" = yes; then
15674 shared_flag="$shared_flag "'${wl}-G'
15675 fi
John Criswell47fdd832003-07-14 16:52:07 +000015676 else
15677 # not using gcc
15678 if test "$host_cpu" = ia64; then
15679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680 # chokes on -Wl,-G. The following line is correct:
15681 shared_flag='-G'
15682 else
Reid Spencera773bd52006-08-04 18:18:08 +000015683 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015684 shared_flag='${wl}-G'
15685 else
15686 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015687 fi
John Criswell47fdd832003-07-14 16:52:07 +000015688 fi
15689 fi
15690
15691 # It seems that -bexpall does not export symbols beginning with
15692 # underscore (_), so it is better to generate a list of symbols to export.
15693 always_export_symbols=yes
15694 if test "$aix_use_runtimelinking" = yes; then
15695 # Warning - without using the other runtime loading flags (-brtl),
15696 # -berok will link without error, but may produce a broken library.
15697 allow_undefined_flag='-berok'
15698 # Determine the default libpath from the value encoded in an empty executable.
15699 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015700/* confdefs.h. */
15701_ACEOF
15702cat confdefs.h >>conftest.$ac_ext
15703cat >>conftest.$ac_ext <<_ACEOF
15704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015705
John Criswell7a73b802003-06-30 21:59:07 +000015706int
15707main ()
15708{
John Criswell47fdd832003-07-14 16:52:07 +000015709
John Criswell7a73b802003-06-30 21:59:07 +000015710 ;
15711 return 0;
15712}
15713_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015714rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015715if { (ac_try="$ac_link"
15716case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719esac
15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest$ac_exeext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742esac
15743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015748
John Criswell47fdd832003-07-14 16:52:07 +000015749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15750}'`
15751# Check for a 64-bit object if we didn't find anything.
15752if 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; }
15753}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015754else
15755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015756sed 's/^/| /' conftest.$ac_ext >&5
15757
Reid Spencera773bd52006-08-04 18:18:08 +000015758
John Criswell7a73b802003-06-30 21:59:07 +000015759fi
Reid Spencera773bd52006-08-04 18:18:08 +000015760
Bill Wendlingebcceee2009-04-18 11:20:33 +000015761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015762 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015764
John Criswell47fdd832003-07-14 16:52:07 +000015765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015766 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 +000015767 else
15768 if test "$host_cpu" = ia64; then
15769 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15770 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015771 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 +000015772 else
15773 # Determine the default libpath from the value encoded in an empty executable.
15774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015780
John Criswell47fdd832003-07-14 16:52:07 +000015781int
15782main ()
15783{
John Criswell7a73b802003-06-30 21:59:07 +000015784
John Criswell47fdd832003-07-14 16:52:07 +000015785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015790if { (ac_try="$ac_link"
15791case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015797 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015802 (exit $ac_status); } &&
15803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15804 { (case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807esac
15808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_try") 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest$ac_exeext'
15814 { (case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_try") 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015823
John Criswell47fdd832003-07-14 16:52:07 +000015824aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15825}'`
15826# Check for a 64-bit object if we didn't find anything.
15827if 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; }
15828}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015829else
John Criswell47fdd832003-07-14 16:52:07 +000015830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015831sed 's/^/| /' conftest.$ac_ext >&5
15832
Reid Spencera773bd52006-08-04 18:18:08 +000015833
John Criswell47fdd832003-07-14 16:52:07 +000015834fi
Reid Spencera773bd52006-08-04 18:18:08 +000015835
Bill Wendlingebcceee2009-04-18 11:20:33 +000015836rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015837 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015839
John Criswell47fdd832003-07-14 16:52:07 +000015840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15841 # Warning - without using the other run time loading flags,
15842 # -berok will link without error, but may produce a broken library.
15843 no_undefined_flag=' ${wl}-bernotok'
15844 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015845 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015846 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015847 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015848 # This is similar to how AIX traditionally builds its shared libraries.
15849 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 +000015850 fi
15851 fi
John Criswell7a73b802003-06-30 21:59:07 +000015852 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015853
15854 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015855 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 +000015856 hardcode_libdir_flag_spec='-L$libdir'
15857 hardcode_minus_L=yes
15858 # see comment about different semantics on the GNU ld section
15859 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015860 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015861
Reid Spencer2706f8c2004-09-19 23:53:36 +000015862 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015863 export_dynamic_flag_spec=-rdynamic
15864 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015865
John Criswell47fdd832003-07-14 16:52:07 +000015866 cygwin* | mingw* | pw32*)
15867 # When not using gcc, we currently assume that we are using
15868 # Microsoft Visual C++.
15869 # hardcode_libdir_flag_spec is actually meaningless, as there is
15870 # no search path for DLLs.
15871 hardcode_libdir_flag_spec=' '
15872 allow_undefined_flag=unsupported
15873 # Tell ltmain to make .lib files, not .a files.
15874 libext=lib
15875 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015876 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015877 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015878 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015879 # The linker will automatically build a .lib file if we build a DLL.
15880 old_archive_From_new_cmds='true'
15881 # FIXME: Should let the user specify the lib program.
15882 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15883 fix_srcfile_path='`cygpath -w "$srcfile"`'
15884 enable_shared_with_static_runtimes=yes
15885 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015886
John Criswell47fdd832003-07-14 16:52:07 +000015887 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015888 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015889 rhapsody* | darwin1.[012])
15890 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15891 ;;
15892 *) # Darwin 1.3 on
15893 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15894 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15895 else
15896 case ${MACOSX_DEPLOYMENT_TARGET} in
15897 10.[012])
15898 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15899 ;;
15900 10.*)
15901 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15902 ;;
15903 esac
15904 fi
15905 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015906 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015907 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015908 hardcode_direct=no
15909 hardcode_automatic=yes
15910 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015911 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015912 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015913 if test "$GCC" = yes ; then
15914 output_verbose_link_cmd='echo'
15915 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15916 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015917 # 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 +000015918 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}'
15919 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 +000015920 else
Reid Spencera773bd52006-08-04 18:18:08 +000015921 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015922 xlc*)
15923 output_verbose_link_cmd='echo'
15924 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15925 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015926 # 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 +000015927 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}'
15928 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 +000015929 ;;
15930 *)
15931 ld_shlibs=no
15932 ;;
15933 esac
John Criswell7a73b802003-06-30 21:59:07 +000015934 fi
John Criswell47fdd832003-07-14 16:52:07 +000015935 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015936
John Criswell47fdd832003-07-14 16:52:07 +000015937 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015939 hardcode_libdir_flag_spec='-L$libdir'
15940 hardcode_shlibpath_var=no
15941 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015942
John Criswell47fdd832003-07-14 16:52:07 +000015943 freebsd1*)
15944 ld_shlibs=no
15945 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015946
John Criswell47fdd832003-07-14 16:52:07 +000015947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15948 # support. Future versions do this automatically, but an explicit c++rt0.o
15949 # does not break anything, and helps significantly (at the cost of a little
15950 # extra space).
15951 freebsd2.2*)
15952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
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 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15959 freebsd2*)
15960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15961 hardcode_direct=yes
15962 hardcode_minus_L=yes
15963 hardcode_shlibpath_var=no
15964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015965
John Criswell47fdd832003-07-14 16:52:07 +000015966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015967 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015968 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15969 hardcode_libdir_flag_spec='-R$libdir'
15970 hardcode_direct=yes
15971 hardcode_shlibpath_var=no
15972 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015973
John Criswell47fdd832003-07-14 16:52:07 +000015974 hpux9*)
15975 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015976 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 +000015977 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015978 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 +000015979 fi
15980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15981 hardcode_libdir_separator=:
15982 hardcode_direct=yes
15983
15984 # hardcode_minus_L: Not really in the search PATH,
15985 # but as the default location of the library.
15986 hardcode_minus_L=yes
15987 export_dynamic_flag_spec='${wl}-E'
15988 ;;
15989
Reid Spencera773bd52006-08-04 18:18:08 +000015990 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015992 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15993 else
15994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15995 fi
15996 if test "$with_gnu_ld" = no; then
15997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15998 hardcode_libdir_separator=:
15999
16000 hardcode_direct=yes
16001 export_dynamic_flag_spec='${wl}-E'
16002
16003 # hardcode_minus_L: Not really in the search PATH,
16004 # but as the default location of the library.
16005 hardcode_minus_L=yes
16006 fi
16007 ;;
16008
16009 hpux11*)
16010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 case $host_cpu in
16012 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016013 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016015 ia64*)
16016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16017 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016018 *)
16019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16020 ;;
16021 esac
16022 else
Reid Spencera773bd52006-08-04 18:18:08 +000016023 case $host_cpu in
16024 hppa*64*)
16025 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16026 ;;
16027 ia64*)
16028 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016029 ;;
16030 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016031 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 +000016032 ;;
16033 esac
16034 fi
16035 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16037 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016038
Reid Spencera773bd52006-08-04 18:18:08 +000016039 case $host_cpu in
16040 hppa*64*|ia64*)
16041 hardcode_libdir_flag_spec_ld='+b $libdir'
16042 hardcode_direct=no
16043 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016044 ;;
16045 *)
John Criswell47fdd832003-07-14 16:52:07 +000016046 hardcode_direct=yes
16047 export_dynamic_flag_spec='${wl}-E'
16048
16049 # hardcode_minus_L: Not really in the search PATH,
16050 # but as the default location of the library.
16051 hardcode_minus_L=yes
16052 ;;
16053 esac
16054 fi
16055 ;;
16056
16057 irix5* | irix6* | nonstopux*)
16058 if test "$GCC" = yes; then
16059 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'
16060 else
16061 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'
16062 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16063 fi
16064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16065 hardcode_libdir_separator=:
16066 link_all_deplibs=yes
16067 ;;
16068
16069 netbsd*)
16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16072 else
16073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16074 fi
16075 hardcode_libdir_flag_spec='-R$libdir'
16076 hardcode_direct=yes
16077 hardcode_shlibpath_var=no
16078 ;;
16079
16080 newsos6)
16081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16082 hardcode_direct=yes
16083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16084 hardcode_libdir_separator=:
16085 hardcode_shlibpath_var=no
16086 ;;
16087
16088 openbsd*)
16089 hardcode_direct=yes
16090 hardcode_shlibpath_var=no
16091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016093 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 +000016094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16095 export_dynamic_flag_spec='${wl}-E'
16096 else
16097 case $host_os in
16098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_libdir_flag_spec='-R$libdir'
16101 ;;
16102 *)
16103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16105 ;;
16106 esac
16107 fi
16108 ;;
16109
16110 os2*)
16111 hardcode_libdir_flag_spec='-L$libdir'
16112 hardcode_minus_L=yes
16113 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016114 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 +000016115 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16116 ;;
16117
16118 osf3*)
16119 if test "$GCC" = yes; then
16120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16121 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'
16122 else
16123 allow_undefined_flag=' -expect_unresolved \*'
16124 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'
16125 fi
16126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16127 hardcode_libdir_separator=:
16128 ;;
16129
16130 osf4* | osf5*) # as osf3* with the addition of -msym flag
16131 if test "$GCC" = yes; then
16132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16133 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'
16134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16135 else
16136 allow_undefined_flag=' -expect_unresolved \*'
16137 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 +000016138 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 +000016139 $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 +000016140
John Criswell47fdd832003-07-14 16:52:07 +000016141 # Both c and cxx compiler support -rpath directly
16142 hardcode_libdir_flag_spec='-rpath $libdir'
16143 fi
16144 hardcode_libdir_separator=:
16145 ;;
16146
John Criswell47fdd832003-07-14 16:52:07 +000016147 solaris*)
16148 no_undefined_flag=' -z text'
16149 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016150 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016151 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016152 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $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 +000016154 else
Reid Spencera773bd52006-08-04 18:18:08 +000016155 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016157 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16158 $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 +000016159 fi
16160 hardcode_libdir_flag_spec='-R$libdir'
16161 hardcode_shlibpath_var=no
16162 case $host_os in
16163 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016164 *)
16165 # The compiler driver will combine linker options so we
16166 # cannot just pass the convience library names through
16167 # without $wl, iff we do not link with $LD.
16168 # Luckily, gcc supports the same syntax we need for Sun Studio.
16169 # Supported since Solaris 2.6 (maybe 2.5.1?)
16170 case $wlarc in
16171 '')
16172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16173 *)
16174 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' ;;
16175 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016176 esac
16177 link_all_deplibs=yes
16178 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016179
John Criswell47fdd832003-07-14 16:52:07 +000016180 sunos4*)
16181 if test "x$host_vendor" = xsequent; then
16182 # Use $CC to link under sequent, because it throws in some extra .o
16183 # files that make .init and .fini sections work.
16184 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16185 else
16186 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16187 fi
16188 hardcode_libdir_flag_spec='-L$libdir'
16189 hardcode_direct=yes
16190 hardcode_minus_L=yes
16191 hardcode_shlibpath_var=no
16192 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016193
John Criswell47fdd832003-07-14 16:52:07 +000016194 sysv4)
16195 case $host_vendor in
16196 sni)
16197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198 hardcode_direct=yes # is this really true???
16199 ;;
16200 siemens)
16201 ## LD is ld it makes a PLAMLIB
16202 ## CC just makes a GrossModule.
16203 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16204 reload_cmds='$CC -r -o $output$reload_objs'
16205 hardcode_direct=no
16206 ;;
16207 motorola)
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16210 ;;
16211 esac
16212 runpath_var='LD_RUN_PATH'
16213 hardcode_shlibpath_var=no
16214 ;;
16215
16216 sysv4.3*)
16217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218 hardcode_shlibpath_var=no
16219 export_dynamic_flag_spec='-Bexport'
16220 ;;
16221
16222 sysv4*MP*)
16223 if test -d /usr/nec; then
16224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_shlibpath_var=no
16226 runpath_var=LD_RUN_PATH
16227 hardcode_runpath_var=yes
16228 ld_shlibs=yes
16229 fi
16230 ;;
16231
Reid Spencera773bd52006-08-04 18:18:08 +000016232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16233 no_undefined_flag='${wl}-z,text'
16234 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016235 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016236 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016237
John Criswell47fdd832003-07-14 16:52:07 +000016238 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 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 +000016241 else
Reid Spencera773bd52006-08-04 18:18:08 +000016242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 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 +000016244 fi
John Criswell47fdd832003-07-14 16:52:07 +000016245 ;;
16246
Reid Spencera773bd52006-08-04 18:18:08 +000016247 sysv5* | sco3.2v5* | sco5v6*)
16248 # Note: We can NOT use -z defs as we might desire, because we do not
16249 # link with -lc, and that would cause any symbols used from libc to
16250 # always be unresolved, which means just about no library would
16251 # ever link correctly. If we're not using GNU ld we use -z text
16252 # though, which does catch some bad symbols but isn't as heavy-handed
16253 # as -z defs.
16254 no_undefined_flag='${wl}-z,text'
16255 allow_undefined_flag='${wl}-z,nodefs'
16256 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016257 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016258 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16259 hardcode_libdir_separator=':'
16260 link_all_deplibs=yes
16261 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016262 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016263
16264 if test "$GCC" = yes; then
16265 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 else
16268 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16270 fi
John Criswell47fdd832003-07-14 16:52:07 +000016271 ;;
16272
16273 uts4*)
16274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_libdir_flag_spec='-L$libdir'
16276 hardcode_shlibpath_var=no
16277 ;;
16278
16279 *)
16280 ld_shlibs=no
16281 ;;
16282 esac
16283 fi
16284
Reid Spencera773bd52006-08-04 18:18:08 +000016285{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16286echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016287test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016288
John Criswell47fdd832003-07-14 16:52:07 +000016289#
16290# Do we need to explicitly link libc?
16291#
16292case "x$archive_cmds_need_lc" in
16293x|xyes)
16294 # Assume -lc should be added
16295 archive_cmds_need_lc=yes
16296
16297 if test "$enable_shared" = yes && test "$GCC" = yes; then
16298 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016299 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016300 # FIXME: we may have to deal with multi-command sequences.
16301 ;;
16302 '$CC '*)
16303 # Test whether the compiler implicitly links with -lc since on some
16304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16305 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016308 $rm conftest*
16309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16310
16311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312 (eval $ac_compile) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } 2>conftest.err; then
16316 soname=conftest
16317 lib=conftest
16318 libobjs=conftest.$ac_objext
16319 deplibs=
16320 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016321 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016322 compiler_flags=-v
16323 linker_flags=-v
16324 verstring=
16325 output_objdir=.
16326 libname=conftest
16327 lt_save_allow_undefined_flag=$allow_undefined_flag
16328 allow_undefined_flag=
16329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16330 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }
16334 then
16335 archive_cmds_need_lc=no
16336 else
16337 archive_cmds_need_lc=yes
16338 fi
16339 allow_undefined_flag=$lt_save_allow_undefined_flag
16340 else
16341 cat conftest.err 1>&5
16342 fi
16343 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16345echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016346 ;;
16347 esac
16348 fi
16349 ;;
16350esac
16351
Reid Spencera773bd52006-08-04 18:18:08 +000016352{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16353echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016354library_names_spec=
16355libname_spec='lib$name'
16356soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016357shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016358postinstall_cmds=
16359postuninstall_cmds=
16360finish_cmds=
16361finish_eval=
16362shlibpath_var=
16363shlibpath_overrides_runpath=unknown
16364version_type=none
16365dynamic_linker="$host_os ld.so"
16366sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016367if test "$GCC" = yes; then
16368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16369 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16370 # if the path contains ";" then we assume it to be the separator
16371 # otherwise default to the standard path separator (i.e. ":") - it is
16372 # assumed that no part of a normal pathname contains ";" but that should
16373 # okay in the real world where ";" in dirpaths is itself problematic.
16374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16375 else
16376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16377 fi
16378else
16379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16380fi
16381need_lib_prefix=unknown
16382hardcode_into_libs=no
16383
16384# when you set need_version to no, make sure it does not cause -set_version
16385# flags to be left without arguments
16386need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016387
16388case $host_os in
16389aix3*)
16390 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016392 shlibpath_var=LIBPATH
16393
John Criswell47fdd832003-07-14 16:52:07 +000016394 # AIX 3 has no versioning support, so we append a major version to the name.
16395 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016396 ;;
16397
16398aix4* | aix5*)
16399 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016400 need_lib_prefix=no
16401 need_version=no
16402 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016403 if test "$host_cpu" = ia64; then
16404 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016406 shlibpath_var=LD_LIBRARY_PATH
16407 else
16408 # With GCC up to 2.95.x, collect2 would create an import file
16409 # for dependence libraries. The import file would start with
16410 # the line `#! .'. This would cause the generated library to
16411 # depend on `.', always an invalid library. This was fixed in
16412 # development snapshots of GCC prior to 3.0.
16413 case $host_os in
16414 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16416 echo ' yes '
16417 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16418 :
16419 else
16420 can_build_shared=no
16421 fi
16422 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016423 esac
John Criswell47fdd832003-07-14 16:52:07 +000016424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16425 # soname into executable. Probably we can add versioning support to
16426 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016427 if test "$aix_use_runtimelinking" = yes; then
16428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16429 # instead of lib<name>.a to let people know that these are not
16430 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016432 else
16433 # We preserve .a as extension for shared libraries through AIX4.2
16434 # and later when we are not doing run time linking.
16435 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016436 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016437 fi
16438 shlibpath_var=LIBPATH
16439 fi
16440 ;;
16441
16442amigaos*)
16443 library_names_spec='$libname.ixlibrary $libname.a'
16444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016445 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 +000016446 ;;
16447
16448beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016449 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016450 dynamic_linker="$host_os ld.so"
16451 shlibpath_var=LIBRARY_PATH
16452 ;;
16453
Reid Spencer2706f8c2004-09-19 23:53:36 +000016454bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016455 version_type=linux
16456 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016463 # the default ld.so.conf also contains /usr/contrib/lib and
16464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16465 # libtool to hard-code these into programs
16466 ;;
16467
16468cygwin* | mingw* | pw32*)
16469 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016470 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016471 need_version=no
16472 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016473
John Criswell7a73b802003-06-30 21:59:07 +000016474 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016475 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016476 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016478 postinstall_cmds='base_file=`basename \${file}`~
16479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16480 dldir=$destdir/`dirname \$dlpath`~
16481 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016482 $install_prog $dir/$dlname \$dldir/$dlname~
16483 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16485 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016486 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016487 shlibpath_overrides_runpath=yes
16488
16489 case $host_os in
16490 cygwin*)
16491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16492 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 +000016493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016494 ;;
16495 mingw*)
16496 # MinGW DLLs use traditional 'lib' prefix
16497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16499 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16500 # It is most probably a Windows format PATH printed by
16501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16502 # path with ; separators, and with drive letters. We can handle the
16503 # drive letters (cygwin fileutils understands them), so leave them,
16504 # especially as we might pass files found there to a mingw objdump,
16505 # which wouldn't understand a cygwinified path. Ahh.
16506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16507 else
16508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16509 fi
16510 ;;
16511 pw32*)
16512 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016513 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 +000016514 ;;
16515 esac
John Criswell7a73b802003-06-30 21:59:07 +000016516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016517
John Criswell7a73b802003-06-30 21:59:07 +000016518 *)
John Criswell47fdd832003-07-14 16:52:07 +000016519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016520 ;;
16521 esac
16522 dynamic_linker='Win32 ld.exe'
16523 # FIXME: first we should search . and the directory the executable is in
16524 shlibpath_var=PATH
16525 ;;
16526
16527darwin* | rhapsody*)
16528 dynamic_linker="$host_os dyld"
16529 version_type=darwin
16530 need_lib_prefix=no
16531 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016532 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016533 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016534 shlibpath_overrides_runpath=yes
16535 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016536 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016537 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016538 if test "$GCC" = yes; then
16539 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"`
16540 else
16541 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016542 fi
16543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16544 ;;
16545
16546dgux*)
16547 version_type=linux
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016553 ;;
16554
16555freebsd1*)
16556 dynamic_linker=no
16557 ;;
16558
Reid Spencer2706f8c2004-09-19 23:53:36 +000016559kfreebsd*-gnu)
16560 version_type=linux
16561 need_lib_prefix=no
16562 need_version=no
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=no
16567 hardcode_into_libs=yes
16568 dynamic_linker='GNU ld.so'
16569 ;;
16570
Reid Spencera773bd52006-08-04 18:18:08 +000016571freebsd* | dragonfly*)
16572 # DragonFly does not have aout. When/if they implement a new
16573 # versioning mechanism, adjust this.
16574 if test -x /usr/bin/objformat; then
16575 objformat=`/usr/bin/objformat`
16576 else
16577 case $host_os in
16578 freebsd[123]*) objformat=aout ;;
16579 *) objformat=elf ;;
16580 esac
16581 fi
John Criswell7a73b802003-06-30 21:59:07 +000016582 version_type=freebsd-$objformat
16583 case $version_type in
16584 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016586 need_version=no
16587 need_lib_prefix=no
16588 ;;
16589 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016591 need_version=yes
16592 ;;
16593 esac
16594 shlibpath_var=LD_LIBRARY_PATH
16595 case $host_os in
16596 freebsd2*)
16597 shlibpath_overrides_runpath=yes
16598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016599 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016600 shlibpath_overrides_runpath=yes
16601 hardcode_into_libs=yes
16602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016605 shlibpath_overrides_runpath=no
16606 hardcode_into_libs=yes
16607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016608 freebsd*) # from 4.6 on
16609 shlibpath_overrides_runpath=yes
16610 hardcode_into_libs=yes
16611 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016612 esac
16613 ;;
16614
16615gnu*)
16616 version_type=linux
16617 need_lib_prefix=no
16618 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016621 shlibpath_var=LD_LIBRARY_PATH
16622 hardcode_into_libs=yes
16623 ;;
16624
16625hpux9* | hpux10* | hpux11*)
16626 # Give a soname corresponding to the major version so that dld.sl refuses to
16627 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016628 version_type=sunos
16629 need_lib_prefix=no
16630 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016631 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016632 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016633 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016634 hardcode_into_libs=yes
16635 dynamic_linker="$host_os dld.so"
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16640 if test "X$HPUX_IA64_MODE" = X32; then
16641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16642 else
16643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16644 fi
16645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16646 ;;
16647 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016648 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016649 hardcode_into_libs=yes
16650 dynamic_linker="$host_os dld.sl"
16651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16657 ;;
16658 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016660 dynamic_linker="$host_os dld.sl"
16661 shlibpath_var=SHLIB_PATH
16662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 soname_spec='${libname}${release}${shared_ext}$major'
16665 ;;
16666 esac
John Criswell7a73b802003-06-30 21:59:07 +000016667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16668 postinstall_cmds='chmod 555 $lib'
16669 ;;
16670
Reid Spencera773bd52006-08-04 18:18:08 +000016671interix3*)
16672 version_type=linux
16673 need_lib_prefix=no
16674 need_version=no
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=no
16680 hardcode_into_libs=yes
16681 ;;
16682
John Criswell47fdd832003-07-14 16:52:07 +000016683irix5* | irix6* | nonstopux*)
16684 case $host_os in
16685 nonstopux*) version_type=nonstopux ;;
16686 *)
16687 if test "$lt_cv_prog_gnu_ld" = yes; then
16688 version_type=linux
16689 else
16690 version_type=irix
16691 fi ;;
16692 esac
John Criswell7a73b802003-06-30 21:59:07 +000016693 need_lib_prefix=no
16694 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016695 soname_spec='${libname}${release}${shared_ext}$major'
16696 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 +000016697 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016698 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016699 libsuff= shlibsuff=
16700 ;;
16701 *)
16702 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16704 libsuff= shlibsuff= libmagic=32-bit;;
16705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16706 libsuff=32 shlibsuff=N32 libmagic=N32;;
16707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16708 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016709 *) libsuff= shlibsuff= libmagic=never-match;;
16710 esac
16711 ;;
16712 esac
16713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16714 shlibpath_overrides_runpath=no
16715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016717 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016718 ;;
16719
16720# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016721linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016722 dynamic_linker=no
16723 ;;
16724
16725# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016726linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016727 version_type=linux
16728 need_lib_prefix=no
16729 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 shlibpath_overrides_runpath=no
16735 # This implies no fast_install, which is unacceptable.
16736 # Some rework will be needed to allow for fast_install
16737 # before this can be enabled.
16738 hardcode_into_libs=yes
16739
Reid Spencer2706f8c2004-09-19 23:53:36 +000016740 # Append ld.so.conf contents to the search path
16741 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016742 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 +000016743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16744 fi
16745
John Criswell7a73b802003-06-30 21:59:07 +000016746 # We used to test for /lib/ld.so.1 and disable shared libraries on
16747 # powerpc, because MkLinux only supported shared libraries with the
16748 # GNU dynamic linker. Since this was broken with cross compilers,
16749 # most powerpc-linux boxes support dynamic linking these days and
16750 # people can always --disable-shared, the test was removed, and we
16751 # assume the GNU/Linux dynamic linker is in use.
16752 dynamic_linker='GNU/Linux ld.so'
16753 ;;
16754
Reid Spencer2706f8c2004-09-19 23:53:36 +000016755knetbsd*-gnu)
16756 version_type=linux
16757 need_lib_prefix=no
16758 need_version=no
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=no
16763 hardcode_into_libs=yes
16764 dynamic_linker='GNU ld.so'
16765 ;;
16766
John Criswell7a73b802003-06-30 21:59:07 +000016767netbsd*)
16768 version_type=sunos
16769 need_lib_prefix=no
16770 need_version=no
16771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16774 dynamic_linker='NetBSD (a.out) ld.so'
16775 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016777 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016778 dynamic_linker='NetBSD ld.elf_so'
16779 fi
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=yes
16782 hardcode_into_libs=yes
16783 ;;
16784
16785newsos6)
16786 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=yes
16790 ;;
16791
Reid Spencer2706f8c2004-09-19 23:53:36 +000016792nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016793 version_type=linux
16794 need_lib_prefix=no
16795 need_version=no
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16800 ;;
16801
16802openbsd*)
16803 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016804 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016805 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16807 case $host_os in
16808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16809 *) need_version=no ;;
16810 esac
John Criswell47fdd832003-07-14 16:52:07 +000016811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016814 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 +000016815 case $host_os in
16816 openbsd2.[89] | openbsd2.[89].*)
16817 shlibpath_overrides_runpath=no
16818 ;;
16819 *)
16820 shlibpath_overrides_runpath=yes
16821 ;;
16822 esac
John Criswell7a73b802003-06-30 21:59:07 +000016823 else
16824 shlibpath_overrides_runpath=yes
16825 fi
John Criswell7a73b802003-06-30 21:59:07 +000016826 ;;
16827
16828os2*)
16829 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016830 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016831 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016832 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016833 dynamic_linker='OS/2 ld.exe'
16834 shlibpath_var=LIBPATH
16835 ;;
16836
16837osf3* | osf4* | osf5*)
16838 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016839 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016840 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016841 soname_spec='${libname}${release}${shared_ext}$major'
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016843 shlibpath_var=LD_LIBRARY_PATH
16844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16846 ;;
16847
John Criswell7a73b802003-06-30 21:59:07 +000016848solaris*)
16849 version_type=linux
16850 need_lib_prefix=no
16851 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016854 shlibpath_var=LD_LIBRARY_PATH
16855 shlibpath_overrides_runpath=yes
16856 hardcode_into_libs=yes
16857 # ldd complains unless libraries are executable
16858 postinstall_cmds='chmod +x $lib'
16859 ;;
16860
16861sunos4*)
16862 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 if test "$with_gnu_ld" = yes; then
16868 need_lib_prefix=no
16869 fi
16870 need_version=yes
16871 ;;
16872
Reid Spencera773bd52006-08-04 18:18:08 +000016873sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016874 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016877 shlibpath_var=LD_LIBRARY_PATH
16878 case $host_vendor in
16879 sni)
16880 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016881 need_lib_prefix=no
16882 export_dynamic_flag_spec='${wl}-Blargedynsym'
16883 runpath_var=LD_RUN_PATH
16884 ;;
16885 siemens)
16886 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016887 ;;
16888 motorola)
16889 need_lib_prefix=no
16890 need_version=no
16891 shlibpath_overrides_runpath=no
16892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16893 ;;
16894 esac
16895 ;;
16896
John Criswell7a73b802003-06-30 21:59:07 +000016897sysv4*MP*)
16898 if test -d /usr/nec ;then
16899 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16901 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016902 shlibpath_var=LD_LIBRARY_PATH
16903 fi
16904 ;;
16905
Reid Spencera773bd52006-08-04 18:18:08 +000016906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16907 version_type=freebsd-elf
16908 need_lib_prefix=no
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 hardcode_into_libs=yes
16914 if test "$with_gnu_ld" = yes; then
16915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16916 shlibpath_overrides_runpath=no
16917 else
16918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16919 shlibpath_overrides_runpath=yes
16920 case $host_os in
16921 sco3.2v5*)
16922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16923 ;;
16924 esac
16925 fi
16926 sys_lib_dlsearch_path_spec='/usr/lib'
16927 ;;
16928
John Criswell47fdd832003-07-14 16:52:07 +000016929uts4*)
16930 version_type=linux
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16934 ;;
16935
John Criswell7a73b802003-06-30 21:59:07 +000016936*)
16937 dynamic_linker=no
16938 ;;
16939esac
Reid Spencera773bd52006-08-04 18:18:08 +000016940{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16941echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016942test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016943
Reid Spencera773bd52006-08-04 18:18:08 +000016944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16945if test "$GCC" = yes; then
16946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16947fi
16948
16949{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16950echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016951hardcode_action=
16952if test -n "$hardcode_libdir_flag_spec" || \
16953 test -n "$runpath_var" || \
16954 test "X$hardcode_automatic" = "Xyes" ; then
16955
16956 # We can hardcode non-existant directories.
16957 if test "$hardcode_direct" != no &&
16958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16959 # have to relink, otherwise we might link with an installed library
16960 # when we should be linking with a yet-to-be-installed one
16961 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16962 test "$hardcode_minus_L" != no; then
16963 # Linking always hardcodes the temporary library directory.
16964 hardcode_action=relink
16965 else
16966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16967 hardcode_action=immediate
16968 fi
16969else
16970 # We cannot hardcode anything, or else we can only hardcode existing
16971 # directories.
16972 hardcode_action=unsupported
16973fi
Reid Spencera773bd52006-08-04 18:18:08 +000016974{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16975echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016976
16977if test "$hardcode_action" = relink; then
16978 # Fast installation is not supported
16979 enable_fast_install=no
16980elif test "$shlibpath_overrides_runpath" = yes ||
16981 test "$enable_shared" = no; then
16982 # Fast installation is not necessary
16983 enable_fast_install=needless
16984fi
16985
16986striplib=
16987old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016988{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16989echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16992 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016993 { echo "$as_me:$LINENO: result: yes" >&5
16994echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016995else
16996# FIXME - insert some real tests, host_os isn't really good enough
16997 case $host_os in
16998 darwin*)
16999 if test -n "$STRIP" ; then
17000 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000017001 { echo "$as_me:$LINENO: result: yes" >&5
17002echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003 else
Reid Spencera773bd52006-08-04 18:18:08 +000017004 { echo "$as_me:$LINENO: result: no" >&5
17005echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017006fi
17007 ;;
17008 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017009 { echo "$as_me:$LINENO: result: no" >&5
17010echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017011 ;;
17012 esac
17013fi
17014
John Criswell7a73b802003-06-30 21:59:07 +000017015if test "x$enable_dlopen" != xyes; then
17016 enable_dlopen=unknown
17017 enable_dlopen_self=unknown
17018 enable_dlopen_self_static=unknown
17019else
17020 lt_cv_dlopen=no
17021 lt_cv_dlopen_libs=
17022
17023 case $host_os in
17024 beos*)
17025 lt_cv_dlopen="load_add_on"
17026 lt_cv_dlopen_libs=
17027 lt_cv_dlopen_self=yes
17028 ;;
17029
John Criswell47fdd832003-07-14 16:52:07 +000017030 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017031 lt_cv_dlopen="LoadLibrary"
17032 lt_cv_dlopen_libs=
17033 ;;
17034
John Criswell47fdd832003-07-14 16:52:07 +000017035 cygwin*)
17036 lt_cv_dlopen="dlopen"
17037 lt_cv_dlopen_libs=
17038 ;;
17039
17040 darwin*)
17041 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017042 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17043echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017044if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 ac_check_lib_save_LIBS=$LIBS
17048LIBS="-ldl $LIBS"
17049cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017055
Reid Spencera773bd52006-08-04 18:18:08 +000017056/* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017059#ifdef __cplusplus
17060extern "C"
17061#endif
John Criswell47fdd832003-07-14 16:52:07 +000017062char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017063int
17064main ()
17065{
Reid Spencera773bd52006-08-04 18:18:08 +000017066return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017072if { (ac_try="$ac_link"
17073case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017079 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017105 ac_cv_lib_dl_dlopen=yes
17106else
17107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017108sed 's/^/| /' conftest.$ac_ext >&5
17109
Reid Spencera773bd52006-08-04 18:18:08 +000017110 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017111fi
Reid Spencera773bd52006-08-04 18:18:08 +000017112
Bill Wendlingebcceee2009-04-18 11:20:33 +000017113rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017115LIBS=$ac_check_lib_save_LIBS
17116fi
Reid Spencera773bd52006-08-04 18:18:08 +000017117{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17118echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017119if test $ac_cv_lib_dl_dlopen = yes; then
17120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17121else
17122
17123 lt_cv_dlopen="dyld"
17124 lt_cv_dlopen_libs=
17125 lt_cv_dlopen_self=yes
17126
17127fi
17128
17129 ;;
17130
John Criswell7a73b802003-06-30 21:59:07 +000017131 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017132 { echo "$as_me:$LINENO: checking for shl_load" >&5
17133echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017134if test "${ac_cv_func_shl_load+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136else
17137 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017143/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17145#define shl_load innocuous_shl_load
17146
John Criswell7a73b802003-06-30 21:59:07 +000017147/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017148 which can conflict with char shl_load (); below.
17149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17150 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017151
John Criswell0c38eaf2003-09-10 15:17:25 +000017152#ifdef __STDC__
17153# include <limits.h>
17154#else
17155# include <assert.h>
17156#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017157
17158#undef shl_load
17159
Reid Spencera773bd52006-08-04 18:18:08 +000017160/* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017163#ifdef __cplusplus
17164extern "C"
17165#endif
John Criswell7a73b802003-06-30 21:59:07 +000017166char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017167/* The GNU C library defines this for functions which it implements
17168 to always fail with ENOSYS. Some functions are actually named
17169 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017170#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017171choke me
John Criswell7a73b802003-06-30 21:59:07 +000017172#endif
17173
John Criswell0c38eaf2003-09-10 15:17:25 +000017174int
17175main ()
17176{
Reid Spencera773bd52006-08-04 18:18:08 +000017177return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017183if { (ac_try="$ac_link"
17184case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187esac
17188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017195 (exit $ac_status); } &&
17196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest$ac_exeext'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210esac
17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017216 ac_cv_func_shl_load=yes
17217else
17218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017219sed 's/^/| /' conftest.$ac_ext >&5
17220
Reid Spencera773bd52006-08-04 18:18:08 +000017221 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017222fi
Reid Spencera773bd52006-08-04 18:18:08 +000017223
Bill Wendlingebcceee2009-04-18 11:20:33 +000017224rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017225 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017226fi
Reid Spencera773bd52006-08-04 18:18:08 +000017227{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17228echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017229if test $ac_cv_func_shl_load = yes; then
17230 lt_cv_dlopen="shl_load"
17231else
Reid Spencera773bd52006-08-04 18:18:08 +000017232 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17233echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017234if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237 ac_check_lib_save_LIBS=$LIBS
17238LIBS="-ldld $LIBS"
17239cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017245
Reid Spencera773bd52006-08-04 18:18:08 +000017246/* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017249#ifdef __cplusplus
17250extern "C"
17251#endif
John Criswell7a73b802003-06-30 21:59:07 +000017252char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017253int
17254main ()
17255{
Reid Spencera773bd52006-08-04 18:18:08 +000017256return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017257 ;
17258 return 0;
17259}
17260_ACEOF
17261rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017262if { (ac_try="$ac_link"
17263case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017269 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279esac
17280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest$ac_exeext'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289esac
17290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017295 ac_cv_lib_dld_shl_load=yes
17296else
17297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017298sed 's/^/| /' conftest.$ac_ext >&5
17299
Reid Spencera773bd52006-08-04 18:18:08 +000017300 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017301fi
Reid Spencera773bd52006-08-04 18:18:08 +000017302
Bill Wendlingebcceee2009-04-18 11:20:33 +000017303rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017304 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017305LIBS=$ac_check_lib_save_LIBS
17306fi
Reid Spencera773bd52006-08-04 18:18:08 +000017307{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17308echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017309if test $ac_cv_lib_dld_shl_load = yes; then
17310 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17311else
Reid Spencera773bd52006-08-04 18:18:08 +000017312 { echo "$as_me:$LINENO: checking for dlopen" >&5
17313echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017314if test "${ac_cv_func_dlopen+set}" = set; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017323/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325#define dlopen innocuous_dlopen
17326
John Criswell7a73b802003-06-30 21:59:07 +000017327/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017328 which can conflict with char dlopen (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017331
John Criswell0c38eaf2003-09-10 15:17:25 +000017332#ifdef __STDC__
17333# include <limits.h>
17334#else
17335# include <assert.h>
17336#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017337
17338#undef dlopen
17339
Reid Spencera773bd52006-08-04 18:18:08 +000017340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017343#ifdef __cplusplus
17344extern "C"
17345#endif
John Criswell7a73b802003-06-30 21:59:07 +000017346char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017347/* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017350#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017351choke me
John Criswell7a73b802003-06-30 21:59:07 +000017352#endif
17353
John Criswell0c38eaf2003-09-10 15:17:25 +000017354int
17355main ()
17356{
Reid Spencera773bd52006-08-04 18:18:08 +000017357return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017363if { (ac_try="$ac_link"
17364case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017370 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017396 ac_cv_func_dlopen=yes
17397else
17398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017399sed 's/^/| /' conftest.$ac_ext >&5
17400
Reid Spencera773bd52006-08-04 18:18:08 +000017401 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017402fi
Reid Spencera773bd52006-08-04 18:18:08 +000017403
Bill Wendlingebcceee2009-04-18 11:20:33 +000017404rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017405 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017406fi
Reid Spencera773bd52006-08-04 18:18:08 +000017407{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17408echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017409if test $ac_cv_func_dlopen = yes; then
17410 lt_cv_dlopen="dlopen"
17411else
Reid Spencera773bd52006-08-04 18:18:08 +000017412 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17413echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017414if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416else
17417 ac_check_lib_save_LIBS=$LIBS
17418LIBS="-ldl $LIBS"
17419cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017425
Reid Spencera773bd52006-08-04 18:18:08 +000017426/* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017429#ifdef __cplusplus
17430extern "C"
17431#endif
John Criswell7a73b802003-06-30 21:59:07 +000017432char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017433int
17434main ()
17435{
Reid Spencera773bd52006-08-04 18:18:08 +000017436return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017442if { (ac_try="$ac_link"
17443case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest$ac_exeext'
17466 { (case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469esac
17470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_try") 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017475 ac_cv_lib_dl_dlopen=yes
17476else
17477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017478sed 's/^/| /' conftest.$ac_ext >&5
17479
Reid Spencera773bd52006-08-04 18:18:08 +000017480 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017481fi
Reid Spencera773bd52006-08-04 18:18:08 +000017482
Bill Wendlingebcceee2009-04-18 11:20:33 +000017483rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017484 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017485LIBS=$ac_check_lib_save_LIBS
17486fi
Reid Spencera773bd52006-08-04 18:18:08 +000017487{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17488echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017489if test $ac_cv_lib_dl_dlopen = yes; then
17490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17491else
Reid Spencera773bd52006-08-04 18:18:08 +000017492 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17493echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017494if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497 ac_check_lib_save_LIBS=$LIBS
17498LIBS="-lsvld $LIBS"
17499cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017505
Reid Spencera773bd52006-08-04 18:18:08 +000017506/* Override any GCC internal prototype to avoid an error.
17507 Use char because int might match the return type of a GCC
17508 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017509#ifdef __cplusplus
17510extern "C"
17511#endif
John Criswell7a73b802003-06-30 21:59:07 +000017512char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017513int
17514main ()
17515{
Reid Spencera773bd52006-08-04 18:18:08 +000017516return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017517 ;
17518 return 0;
17519}
17520_ACEOF
17521rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017522if { (ac_try="$ac_link"
17523case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526esac
17527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest$ac_exeext'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17549esac
17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017555 ac_cv_lib_svld_dlopen=yes
17556else
17557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017558sed 's/^/| /' conftest.$ac_ext >&5
17559
Reid Spencera773bd52006-08-04 18:18:08 +000017560 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017561fi
Reid Spencera773bd52006-08-04 18:18:08 +000017562
Bill Wendlingebcceee2009-04-18 11:20:33 +000017563rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017565LIBS=$ac_check_lib_save_LIBS
17566fi
Reid Spencera773bd52006-08-04 18:18:08 +000017567{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17568echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017569if test $ac_cv_lib_svld_dlopen = yes; then
17570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17571else
Reid Spencera773bd52006-08-04 18:18:08 +000017572 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17573echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017574if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17576else
17577 ac_check_lib_save_LIBS=$LIBS
17578LIBS="-ldld $LIBS"
17579cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017580/* confdefs.h. */
17581_ACEOF
17582cat confdefs.h >>conftest.$ac_ext
17583cat >>conftest.$ac_ext <<_ACEOF
17584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017585
Reid Spencera773bd52006-08-04 18:18:08 +000017586/* Override any GCC internal prototype to avoid an error.
17587 Use char because int might match the return type of a GCC
17588 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017589#ifdef __cplusplus
17590extern "C"
17591#endif
John Criswell7a73b802003-06-30 21:59:07 +000017592char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017593int
17594main ()
17595{
Reid Spencera773bd52006-08-04 18:18:08 +000017596return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017602if { (ac_try="$ac_link"
17603case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606esac
17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017609 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629esac
17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017635 ac_cv_lib_dld_dld_link=yes
17636else
17637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017638sed 's/^/| /' conftest.$ac_ext >&5
17639
Reid Spencera773bd52006-08-04 18:18:08 +000017640 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017641fi
Reid Spencera773bd52006-08-04 18:18:08 +000017642
Bill Wendlingebcceee2009-04-18 11:20:33 +000017643rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017644 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017645LIBS=$ac_check_lib_save_LIBS
17646fi
Reid Spencera773bd52006-08-04 18:18:08 +000017647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17648echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017649if test $ac_cv_lib_dld_dld_link = yes; then
17650 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17651fi
17652
17653
17654fi
17655
17656
17657fi
17658
17659
17660fi
17661
17662
17663fi
17664
17665
17666fi
17667
17668 ;;
17669 esac
17670
17671 if test "x$lt_cv_dlopen" != xno; then
17672 enable_dlopen=yes
17673 else
17674 enable_dlopen=no
17675 fi
17676
17677 case $lt_cv_dlopen in
17678 dlopen)
17679 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017680 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017681
17682 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017684
17685 save_LIBS="$LIBS"
17686 LIBS="$lt_cv_dlopen_libs $LIBS"
17687
Reid Spencera773bd52006-08-04 18:18:08 +000017688 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17689echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017690if test "${lt_cv_dlopen_self+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692else
17693 if test "$cross_compiling" = yes; then :
17694 lt_cv_dlopen_self=cross
17695else
John Criswell47fdd832003-07-14 16:52:07 +000017696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017697 lt_status=$lt_dlunknown
17698 cat > conftest.$ac_ext <<EOF
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000017699#line 17699 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017700#include "confdefs.h"
17701
17702#if HAVE_DLFCN_H
17703#include <dlfcn.h>
17704#endif
17705
17706#include <stdio.h>
17707
17708#ifdef RTLD_GLOBAL
17709# define LT_DLGLOBAL RTLD_GLOBAL
17710#else
17711# ifdef DL_GLOBAL
17712# define LT_DLGLOBAL DL_GLOBAL
17713# else
17714# define LT_DLGLOBAL 0
17715# endif
17716#endif
17717
17718/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17719 find out it does not work in some platform. */
17720#ifndef LT_DLLAZY_OR_NOW
17721# ifdef RTLD_LAZY
17722# define LT_DLLAZY_OR_NOW RTLD_LAZY
17723# else
17724# ifdef DL_LAZY
17725# define LT_DLLAZY_OR_NOW DL_LAZY
17726# else
17727# ifdef RTLD_NOW
17728# define LT_DLLAZY_OR_NOW RTLD_NOW
17729# else
17730# ifdef DL_NOW
17731# define LT_DLLAZY_OR_NOW DL_NOW
17732# else
17733# define LT_DLLAZY_OR_NOW 0
17734# endif
17735# endif
17736# endif
17737# endif
17738#endif
17739
17740#ifdef __cplusplus
17741extern "C" void exit (int);
17742#endif
17743
17744void fnord() { int i=42;}
17745int main ()
17746{
17747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17748 int status = $lt_dlunknown;
17749
17750 if (self)
17751 {
17752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17754 /* dlclose (self); */
17755 }
Reid Spencera773bd52006-08-04 18:18:08 +000017756 else
17757 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017758
17759 exit (status);
17760}
17761EOF
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017767 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017768 lt_status=$?
17769 case x$lt_status in
17770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017772 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017773 esac
17774 else :
17775 # compilation failed
17776 lt_cv_dlopen_self=no
17777 fi
17778fi
17779rm -fr conftest*
17780
17781
17782fi
Reid Spencera773bd52006-08-04 18:18:08 +000017783{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17784echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017785
17786 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17788 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17789echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017790if test "${lt_cv_dlopen_self_static+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 if test "$cross_compiling" = yes; then :
17794 lt_cv_dlopen_self_static=cross
17795else
John Criswell47fdd832003-07-14 16:52:07 +000017796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017797 lt_status=$lt_dlunknown
17798 cat > conftest.$ac_ext <<EOF
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000017799#line 17799 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017800#include "confdefs.h"
17801
17802#if HAVE_DLFCN_H
17803#include <dlfcn.h>
17804#endif
17805
17806#include <stdio.h>
17807
17808#ifdef RTLD_GLOBAL
17809# define LT_DLGLOBAL RTLD_GLOBAL
17810#else
17811# ifdef DL_GLOBAL
17812# define LT_DLGLOBAL DL_GLOBAL
17813# else
17814# define LT_DLGLOBAL 0
17815# endif
17816#endif
17817
17818/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17819 find out it does not work in some platform. */
17820#ifndef LT_DLLAZY_OR_NOW
17821# ifdef RTLD_LAZY
17822# define LT_DLLAZY_OR_NOW RTLD_LAZY
17823# else
17824# ifdef DL_LAZY
17825# define LT_DLLAZY_OR_NOW DL_LAZY
17826# else
17827# ifdef RTLD_NOW
17828# define LT_DLLAZY_OR_NOW RTLD_NOW
17829# else
17830# ifdef DL_NOW
17831# define LT_DLLAZY_OR_NOW DL_NOW
17832# else
17833# define LT_DLLAZY_OR_NOW 0
17834# endif
17835# endif
17836# endif
17837# endif
17838#endif
17839
17840#ifdef __cplusplus
17841extern "C" void exit (int);
17842#endif
17843
17844void fnord() { int i=42;}
17845int main ()
17846{
17847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17848 int status = $lt_dlunknown;
17849
17850 if (self)
17851 {
17852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17853 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17854 /* dlclose (self); */
17855 }
Reid Spencera773bd52006-08-04 18:18:08 +000017856 else
17857 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017858
17859 exit (status);
17860}
17861EOF
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863 (eval $ac_link) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017867 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017868 lt_status=$?
17869 case x$lt_status in
17870 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17871 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017872 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017873 esac
17874 else :
17875 # compilation failed
17876 lt_cv_dlopen_self_static=no
17877 fi
17878fi
17879rm -fr conftest*
17880
17881
17882fi
Reid Spencera773bd52006-08-04 18:18:08 +000017883{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17884echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017885 fi
17886
17887 CPPFLAGS="$save_CPPFLAGS"
17888 LDFLAGS="$save_LDFLAGS"
17889 LIBS="$save_LIBS"
17890 ;;
17891 esac
17892
17893 case $lt_cv_dlopen_self in
17894 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17895 *) enable_dlopen_self=unknown ;;
17896 esac
17897
17898 case $lt_cv_dlopen_self_static in
17899 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17900 *) enable_dlopen_self_static=unknown ;;
17901 esac
17902fi
17903
17904
Reid Spencera773bd52006-08-04 18:18:08 +000017905# Report which library types will actually be built
17906{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17907echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17908{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17909echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017910
Reid Spencera773bd52006-08-04 18:18:08 +000017911{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17912echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017913test "$can_build_shared" = "no" && enable_shared=no
17914
17915# On AIX, shared libraries and static libraries use the same namespace, and
17916# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017917case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017918aix3*)
17919 test "$enable_shared" = yes && enable_static=no
17920 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017921 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017922 postinstall_cmds='$RANLIB $lib'
17923 fi
17924 ;;
17925
Reid Spencer2706f8c2004-09-19 23:53:36 +000017926aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017927 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17928 test "$enable_shared" = yes && enable_static=no
17929 fi
John Criswell7a73b802003-06-30 21:59:07 +000017930 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017931esac
Reid Spencera773bd52006-08-04 18:18:08 +000017932{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17933echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017934
Reid Spencera773bd52006-08-04 18:18:08 +000017935{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17936echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017937# Make sure either enable_shared or enable_static is yes.
17938test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017939{ echo "$as_me:$LINENO: result: $enable_static" >&5
17940echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017941
17942# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017943# libtool distribution, otherwise you forgot to ship ltmain.sh
17944# with your package, and you will get complaints that there are
17945# no rules to generate ltmain.sh.
17946if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017947 # See if we are running on zsh, and set the options which allow our commands through
17948 # without removal of \ escapes.
17949 if test -n "${ZSH_VERSION+set}" ; then
17950 setopt NO_GLOB_SUBST
17951 fi
John Criswell7a73b802003-06-30 21:59:07 +000017952 # Now quote all the things that may contain metacharacters while being
17953 # careful not to overquote the AC_SUBSTed values. We take copies of the
17954 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017955 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 +000017956 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17959 deplibs_check_method reload_flag reload_cmds need_locks \
17960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17961 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017963 old_postinstall_cmds old_postuninstall_cmds \
17964 compiler \
17965 CC \
17966 LD \
17967 lt_prog_compiler_wl \
17968 lt_prog_compiler_pic \
17969 lt_prog_compiler_static \
17970 lt_prog_compiler_no_builtin_flag \
17971 export_dynamic_flag_spec \
17972 thread_safe_flag_spec \
17973 whole_archive_flag_spec \
17974 enable_shared_with_static_runtimes \
17975 old_archive_cmds \
17976 old_archive_from_new_cmds \
17977 predep_objects \
17978 postdep_objects \
17979 predeps \
17980 postdeps \
17981 compiler_lib_search_path \
17982 archive_cmds \
17983 archive_expsym_cmds \
17984 postinstall_cmds \
17985 postuninstall_cmds \
17986 old_archive_from_expsyms_cmds \
17987 allow_undefined_flag \
17988 no_undefined_flag \
17989 export_symbols_cmds \
17990 hardcode_libdir_flag_spec \
17991 hardcode_libdir_flag_spec_ld \
17992 hardcode_libdir_separator \
17993 hardcode_automatic \
17994 module_cmds \
17995 module_expsym_cmds \
17996 lt_cv_prog_compiler_c_o \
17997 exclude_expsyms \
17998 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017999
18000 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000018001 old_archive_cmds | \
18002 old_archive_from_new_cmds | \
18003 archive_cmds | \
18004 archive_expsym_cmds | \
18005 module_cmds | \
18006 module_expsym_cmds | \
18007 old_archive_from_expsyms_cmds | \
18008 export_symbols_cmds | \
18009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018010 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018011 old_postinstall_cmds | old_postuninstall_cmds | \
18012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018013 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018014 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 +000018015 ;;
18016 *)
18017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18018 ;;
18019 esac
18020 done
18021
John Criswell47fdd832003-07-14 16:52:07 +000018022 case $lt_echo in
18023 *'\$0 --fallback-echo"')
18024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18025 ;;
18026 esac
18027
18028cfgfile="${ofile}T"
18029 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18030 $rm -f "$cfgfile"
18031 { echo "$as_me:$LINENO: creating $ofile" >&5
18032echo "$as_me: creating $ofile" >&6;}
18033
18034 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018035#! $SHELL
18036
John Criswell47fdd832003-07-14 16:52:07 +000018037# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018038# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18040#
John Criswell47fdd832003-07-14 16:52:07 +000018041# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18042# Free Software Foundation, Inc.
18043#
18044# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018045# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18046#
18047# This program is free software; you can redistribute it and/or modify
18048# it under the terms of the GNU General Public License as published by
18049# the Free Software Foundation; either version 2 of the License, or
18050# (at your option) any later version.
18051#
18052# This program is distributed in the hope that it will be useful, but
18053# WITHOUT ANY WARRANTY; without even the implied warranty of
18054# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18055# General Public License for more details.
18056#
18057# You should have received a copy of the GNU General Public License
18058# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018059# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018060#
18061# As a special exception to the GNU General Public License, if you
18062# distribute this file as part of a program that contains a
18063# configuration script generated by Autoconf, you may include it under
18064# the same distribution terms that you use for the rest of that program.
18065
John Criswell47fdd832003-07-14 16:52:07 +000018066# A sed program that does not truncate output.
18067SED=$lt_SED
18068
John Criswell7a73b802003-06-30 21:59:07 +000018069# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018070Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018071
18072# The HP-UX ksh and POSIX shell print the target directory to stdout
18073# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018074(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018075
John Criswell47fdd832003-07-14 16:52:07 +000018076# The names of the tagged configurations supported by this script.
18077available_tags=
18078
John Criswell7a73b802003-06-30 21:59:07 +000018079# ### BEGIN LIBTOOL CONFIG
18080
18081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18082
18083# Shell to use when invoking shell scripts.
18084SHELL=$lt_SHELL
18085
18086# Whether or not to build shared libraries.
18087build_libtool_libs=$enable_shared
18088
18089# Whether or not to build static libraries.
18090build_old_libs=$enable_static
18091
18092# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018093build_libtool_need_lc=$archive_cmds_need_lc
18094
18095# Whether or not to disallow shared libs when runtime libs are static
18096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018097
18098# Whether or not to optimize for fast installation.
18099fast_install=$enable_fast_install
18100
18101# The host system.
18102host_alias=$host_alias
18103host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018104host_os=$host_os
18105
18106# The build system.
18107build_alias=$build_alias
18108build=$build
18109build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018110
18111# An echo program that does not interpret backslashes.
18112echo=$lt_echo
18113
18114# The archiver.
18115AR=$lt_AR
18116AR_FLAGS=$lt_AR_FLAGS
18117
John Criswell47fdd832003-07-14 16:52:07 +000018118# A C compiler.
18119LTCC=$lt_LTCC
18120
Reid Spencera773bd52006-08-04 18:18:08 +000018121# LTCC compiler flags.
18122LTCFLAGS=$lt_LTCFLAGS
18123
John Criswell47fdd832003-07-14 16:52:07 +000018124# A language-specific compiler.
18125CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018126
18127# Is the compiler the GNU C compiler?
18128with_gcc=$GCC
18129
John Criswell47fdd832003-07-14 16:52:07 +000018130# An ERE matcher.
18131EGREP=$lt_EGREP
18132
John Criswell7a73b802003-06-30 21:59:07 +000018133# The linker used to build libraries.
18134LD=$lt_LD
18135
18136# Whether we need hard or soft links.
18137LN_S=$lt_LN_S
18138
18139# A BSD-compatible nm program.
18140NM=$lt_NM
18141
18142# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018143STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018144
18145# Used to examine libraries when file_magic_cmd begins "file"
18146MAGIC_CMD=$MAGIC_CMD
18147
18148# Used on cygwin: DLL creation program.
18149DLLTOOL="$DLLTOOL"
18150
18151# Used on cygwin: object dumper.
18152OBJDUMP="$OBJDUMP"
18153
18154# Used on cygwin: assembler.
18155AS="$AS"
18156
18157# The name of the directory that contains temporary libtool files.
18158objdir=$objdir
18159
18160# How to create reloadable object files.
18161reload_flag=$lt_reload_flag
18162reload_cmds=$lt_reload_cmds
18163
18164# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018165wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018166
18167# Object file suffix (normally "o").
18168objext="$ac_objext"
18169
18170# Old archive suffix (normally "a").
18171libext="$libext"
18172
John Criswell47fdd832003-07-14 16:52:07 +000018173# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018174shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018175
John Criswell7a73b802003-06-30 21:59:07 +000018176# Executable file suffix (normally "").
18177exeext="$exeext"
18178
18179# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018180pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018181pic_mode=$pic_mode
18182
John Criswell47fdd832003-07-14 16:52:07 +000018183# What is the maximum length of a command?
18184max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018185
John Criswell47fdd832003-07-14 16:52:07 +000018186# Does compiler simultaneously support -c and -o options?
18187compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018188
Reid Spencera773bd52006-08-04 18:18:08 +000018189# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018190need_locks=$lt_need_locks
18191
18192# Do we need the lib prefix for modules?
18193need_lib_prefix=$need_lib_prefix
18194
18195# Do we need a version for libraries?
18196need_version=$need_version
18197
18198# Whether dlopen is supported.
18199dlopen_support=$enable_dlopen
18200
18201# Whether dlopen of programs is supported.
18202dlopen_self=$enable_dlopen_self
18203
18204# Whether dlopen of statically linked programs is supported.
18205dlopen_self_static=$enable_dlopen_self_static
18206
18207# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018208link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018209
18210# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018212
18213# Compiler flag to allow reflexive dlopens.
18214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18215
18216# Compiler flag to generate shared objects directly from archives.
18217whole_archive_flag_spec=$lt_whole_archive_flag_spec
18218
18219# Compiler flag to generate thread-safe objects.
18220thread_safe_flag_spec=$lt_thread_safe_flag_spec
18221
18222# Library versioning type.
18223version_type=$version_type
18224
18225# Format of library name prefix.
18226libname_spec=$lt_libname_spec
18227
18228# List of archive names. First name is the real one, the rest are links.
18229# The last name is the one that the linker finds with -lNAME.
18230library_names_spec=$lt_library_names_spec
18231
18232# The coded name of the library, if different from the real name.
18233soname_spec=$lt_soname_spec
18234
18235# Commands used to build and install an old-style archive.
18236RANLIB=$lt_RANLIB
18237old_archive_cmds=$lt_old_archive_cmds
18238old_postinstall_cmds=$lt_old_postinstall_cmds
18239old_postuninstall_cmds=$lt_old_postuninstall_cmds
18240
18241# Create an old-style archive from a shared archive.
18242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18243
18244# Create a temporary old-style archive to link instead of a shared archive.
18245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18246
18247# Commands used to build and install a shared archive.
18248archive_cmds=$lt_archive_cmds
18249archive_expsym_cmds=$lt_archive_expsym_cmds
18250postinstall_cmds=$lt_postinstall_cmds
18251postuninstall_cmds=$lt_postuninstall_cmds
18252
John Criswell47fdd832003-07-14 16:52:07 +000018253# Commands used to build a loadable module (assumed same as above if empty)
18254module_cmds=$lt_module_cmds
18255module_expsym_cmds=$lt_module_expsym_cmds
18256
John Criswell7a73b802003-06-30 21:59:07 +000018257# Commands to strip libraries.
18258old_striplib=$lt_old_striplib
18259striplib=$lt_striplib
18260
John Criswell47fdd832003-07-14 16:52:07 +000018261# Dependencies to place before the objects being linked to create a
18262# shared library.
18263predep_objects=$lt_predep_objects
18264
18265# Dependencies to place after the objects being linked to create a
18266# shared library.
18267postdep_objects=$lt_postdep_objects
18268
18269# Dependencies to place before the objects being linked to create a
18270# shared library.
18271predeps=$lt_predeps
18272
18273# Dependencies to place after the objects being linked to create a
18274# shared library.
18275postdeps=$lt_postdeps
18276
18277# The library search path used internally by the compiler when linking
18278# a shared library.
18279compiler_lib_search_path=$lt_compiler_lib_search_path
18280
John Criswell7a73b802003-06-30 21:59:07 +000018281# Method to check whether dependent libraries are shared objects.
18282deplibs_check_method=$lt_deplibs_check_method
18283
18284# Command to use when deplibs_check_method == file_magic.
18285file_magic_cmd=$lt_file_magic_cmd
18286
18287# Flag that allows shared libraries with undefined symbols to be built.
18288allow_undefined_flag=$lt_allow_undefined_flag
18289
18290# Flag that forces no undefined symbols.
18291no_undefined_flag=$lt_no_undefined_flag
18292
18293# Commands used to finish a libtool library installation in a directory.
18294finish_cmds=$lt_finish_cmds
18295
18296# Same as above, but a single script fragment to be evaled but not shown.
18297finish_eval=$lt_finish_eval
18298
18299# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018301
18302# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018304
18305# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018307
18308# This is the shared library runtime path variable.
18309runpath_var=$runpath_var
18310
18311# This is the shared library path variable.
18312shlibpath_var=$shlibpath_var
18313
18314# Is shlibpath searched before the hard-coded library search path?
18315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18316
18317# How to hardcode a shared library path into an executable.
18318hardcode_action=$hardcode_action
18319
18320# Whether we should hardcode library paths into libraries.
18321hardcode_into_libs=$hardcode_into_libs
18322
18323# Flag to hardcode \$libdir into a binary during linking.
18324# This must work even if \$libdir does not exist.
18325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18326
John Criswell47fdd832003-07-14 16:52:07 +000018327# If ld is used when linking, flag to hardcode \$libdir into
18328# a binary during linking. This must work even if \$libdir does
18329# not exist.
18330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18331
John Criswell7a73b802003-06-30 21:59:07 +000018332# Whether we need a single -rpath flag with a separated argument.
18333hardcode_libdir_separator=$lt_hardcode_libdir_separator
18334
John Criswell47fdd832003-07-14 16:52:07 +000018335# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018336# resulting binary.
18337hardcode_direct=$hardcode_direct
18338
18339# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18340# resulting binary.
18341hardcode_minus_L=$hardcode_minus_L
18342
18343# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18344# the resulting binary.
18345hardcode_shlibpath_var=$hardcode_shlibpath_var
18346
John Criswell47fdd832003-07-14 16:52:07 +000018347# Set to yes if building a shared library automatically hardcodes DIR into the library
18348# and all subsequent libraries and executables linked against it.
18349hardcode_automatic=$hardcode_automatic
18350
John Criswell7a73b802003-06-30 21:59:07 +000018351# Variables whose values should be saved in libtool wrapper scripts and
18352# restored at relink time.
18353variables_saved_for_relink="$variables_saved_for_relink"
18354
18355# Whether libtool must link a program against all its dependency libraries.
18356link_all_deplibs=$link_all_deplibs
18357
18358# Compile-time system search path for libraries
18359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18360
18361# Run-time system search path for libraries
18362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18363
18364# Fix the shell variable \$srcfile for the compiler.
18365fix_srcfile_path="$fix_srcfile_path"
18366
18367# Set to yes if exported symbols are required.
18368always_export_symbols=$always_export_symbols
18369
18370# The commands to list exported symbols.
18371export_symbols_cmds=$lt_export_symbols_cmds
18372
18373# The commands to extract the exported symbol list from a shared archive.
18374extract_expsyms_cmds=$lt_extract_expsyms_cmds
18375
18376# Symbols that should not be listed in the preloaded symbols.
18377exclude_expsyms=$lt_exclude_expsyms
18378
18379# Symbols that must always be exported.
18380include_expsyms=$lt_include_expsyms
18381
18382# ### END LIBTOOL CONFIG
18383
18384__EOF__
18385
John Criswell47fdd832003-07-14 16:52:07 +000018386
John Criswell7a73b802003-06-30 21:59:07 +000018387 case $host_os in
18388 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018389 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018390
18391# AIX sometimes has problems with the GCC collect2 program. For some
18392# reason, if we set the COLLECT_NAMES environment variable, the problems
18393# vanish in a puff of smoke.
18394if test "X${COLLECT_NAMES+set}" != Xset; then
18395 COLLECT_NAMES=
18396 export COLLECT_NAMES
18397fi
18398EOF
18399 ;;
18400 esac
18401
John Criswell7a73b802003-06-30 21:59:07 +000018402 # We use sed instead of cat because bash on DJGPP gets confused if
18403 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18404 # text mode, it properly converts lines to CR/LF. This bash problem
18405 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018406 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018407
John Criswell47fdd832003-07-14 16:52:07 +000018408 mv -f "$cfgfile" "$ofile" || \
18409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018410 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018411
18412else
18413 # If there is no Makefile yet, we rely on a make rule to execute
18414 # `config.status --recheck' to rerun these tests and create the
18415 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018416 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18417 if test -f "$ltmain_in"; then
18418 test -f Makefile && make "$ltmain"
18419 fi
John Criswell7a73b802003-06-30 21:59:07 +000018420fi
John Criswell7a73b802003-06-30 21:59:07 +000018421
18422
John Criswell47fdd832003-07-14 16:52:07 +000018423ac_ext=c
18424ac_cpp='$CPP $CPPFLAGS'
18425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427ac_compiler_gnu=$ac_cv_c_compiler_gnu
18428
18429CC="$lt_save_CC"
18430
18431
Reid Spencera773bd52006-08-04 18:18:08 +000018432# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018433if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018434 withval=$with_tags; tagnames="$withval"
18435fi
18436
John Criswell47fdd832003-07-14 16:52:07 +000018437
18438if test -f "$ltmain" && test -n "$tagnames"; then
18439 if test ! -f "${ofile}"; then
18440 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18441echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18442 fi
18443
18444 if test -z "$LTCC"; then
18445 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18446 if test -z "$LTCC"; then
18447 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18448echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18449 else
18450 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18451echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18452 fi
18453 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018454 if test -z "$LTCFLAGS"; then
18455 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18456 fi
John Criswell47fdd832003-07-14 16:52:07 +000018457
18458 # Extract list of available tagged configurations in $ofile.
18459 # Note that this assumes the entire list is on one line.
18460 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18461
18462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18463 for tagname in $tagnames; do
18464 IFS="$lt_save_ifs"
18465 # Check whether tagname contains only valid characters
18466 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18467 "") ;;
18468 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18469echo "$as_me: error: invalid tag name: $tagname" >&2;}
18470 { (exit 1); exit 1; }; }
18471 ;;
18472 esac
18473
18474 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18475 then
18476 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18477echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18478 { (exit 1); exit 1; }; }
18479 fi
18480
18481 # Update the list of available tags.
18482 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018483 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018484
18485 case $tagname in
18486 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018487 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18488 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18489 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018490 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018491ac_cpp='$CXXCPP $CPPFLAGS'
18492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18495
18496
18497
18498
18499archive_cmds_need_lc_CXX=no
18500allow_undefined_flag_CXX=
18501always_export_symbols_CXX=no
18502archive_expsym_cmds_CXX=
18503export_dynamic_flag_spec_CXX=
18504hardcode_direct_CXX=no
18505hardcode_libdir_flag_spec_CXX=
18506hardcode_libdir_flag_spec_ld_CXX=
18507hardcode_libdir_separator_CXX=
18508hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018509hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018510hardcode_automatic_CXX=no
18511module_cmds_CXX=
18512module_expsym_cmds_CXX=
18513link_all_deplibs_CXX=unknown
18514old_archive_cmds_CXX=$old_archive_cmds
18515no_undefined_flag_CXX=
18516whole_archive_flag_spec_CXX=
18517enable_shared_with_static_runtimes_CXX=no
18518
18519# Dependencies to place before and after the object being linked:
18520predep_objects_CXX=
18521postdep_objects_CXX=
18522predeps_CXX=
18523postdeps_CXX=
18524compiler_lib_search_path_CXX=
18525
18526# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018527ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018528
18529# Object file extension for compiled C++ test sources.
18530objext=o
18531objext_CXX=$objext
18532
18533# Code to be used in simple compile tests
18534lt_simple_compile_test_code="int some_variable = 0;\n"
18535
18536# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018537lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018538
18539# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18540
18541# If no C compiler was specified, use CC.
18542LTCC=${LTCC-"$CC"}
18543
Reid Spencera773bd52006-08-04 18:18:08 +000018544# If no C compiler flags were specified, use CFLAGS.
18545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18546
John Criswell47fdd832003-07-14 16:52:07 +000018547# Allow CC to be a program name with arguments.
18548compiler=$CC
18549
18550
Reid Spencera773bd52006-08-04 18:18:08 +000018551# save warnings/boilerplate of simple test code
18552ac_outfile=conftest.$ac_objext
18553printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18555_lt_compiler_boilerplate=`cat conftest.err`
18556$rm conftest*
18557
18558ac_outfile=conftest.$ac_objext
18559printf "$lt_simple_link_test_code" >conftest.$ac_ext
18560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18561_lt_linker_boilerplate=`cat conftest.err`
18562$rm conftest*
18563
18564
John Criswell47fdd832003-07-14 16:52:07 +000018565# Allow CC to be a program name with arguments.
18566lt_save_CC=$CC
18567lt_save_LD=$LD
18568lt_save_GCC=$GCC
18569GCC=$GXX
18570lt_save_with_gnu_ld=$with_gnu_ld
18571lt_save_path_LD=$lt_cv_path_LD
18572if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18573 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18574else
Reid Spencera773bd52006-08-04 18:18:08 +000018575 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018576fi
18577if test -n "${lt_cv_path_LDCXX+set}"; then
18578 lt_cv_path_LD=$lt_cv_path_LDCXX
18579else
Reid Spencera773bd52006-08-04 18:18:08 +000018580 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018581fi
18582test -z "${LDCXX+set}" || LD=$LDCXX
18583CC=${CXX-"c++"}
18584compiler=$CC
18585compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018586for cc_temp in $compiler""; do
18587 case $cc_temp in
18588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18590 \-*) ;;
18591 *) break;;
18592 esac
18593done
18594cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18595
John Criswell47fdd832003-07-14 16:52:07 +000018596
18597# We don't want -fno-exception wen compiling C++ code, so set the
18598# no_builtin_flag separately
18599if test "$GXX" = yes; then
18600 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18601else
18602 lt_prog_compiler_no_builtin_flag_CXX=
18603fi
18604
18605if test "$GXX" = yes; then
18606 # Set up default GNU C++ configuration
18607
18608
Reid Spencera773bd52006-08-04 18:18:08 +000018609# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018610if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018612else
18613 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018614fi
18615
John Criswell47fdd832003-07-14 16:52:07 +000018616ac_prog=ld
18617if test "$GCC" = yes; then
18618 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018619 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18620echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018621 case $host in
18622 *-*-mingw*)
18623 # gcc leaves a trailing carriage return which upsets mingw
18624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18625 *)
18626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18627 esac
18628 case $ac_prog in
18629 # Accept absolute paths.
18630 [\\/]* | ?:[\\/]*)
18631 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018632 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18636 done
18637 test -z "$LD" && LD="$ac_prog"
18638 ;;
18639 "")
18640 # If it fails, then pretend we aren't using GCC.
18641 ac_prog=ld
18642 ;;
18643 *)
18644 # If it is relative, then search for the first ld in PATH.
18645 with_gnu_ld=unknown
18646 ;;
18647 esac
18648elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018649 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18650echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018651else
Reid Spencera773bd52006-08-04 18:18:08 +000018652 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18653echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018654fi
18655if test "${lt_cv_path_LD+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658 if test -z "$LD"; then
18659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18660 for ac_dir in $PATH; do
18661 IFS="$lt_save_ifs"
18662 test -z "$ac_dir" && ac_dir=.
18663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18664 lt_cv_path_LD="$ac_dir/$ac_prog"
18665 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018666 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018667 # Break only if it was the GNU/non-GNU ld that we prefer.
18668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18669 *GNU* | *'with BFD'*)
18670 test "$with_gnu_ld" != no && break
18671 ;;
18672 *)
18673 test "$with_gnu_ld" != yes && break
18674 ;;
18675 esac
18676 fi
18677 done
18678 IFS="$lt_save_ifs"
18679else
18680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18681fi
18682fi
18683
18684LD="$lt_cv_path_LD"
18685if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018686 { echo "$as_me:$LINENO: result: $LD" >&5
18687echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018688else
Reid Spencera773bd52006-08-04 18:18:08 +000018689 { echo "$as_me:$LINENO: result: no" >&5
18690echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018691fi
18692test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18693echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18694 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018695{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18696echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018697if test "${lt_cv_prog_gnu_ld+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
Reid Spencera773bd52006-08-04 18:18:08 +000018700 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018701case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018702*GNU* | *'with BFD'*)
18703 lt_cv_prog_gnu_ld=yes
18704 ;;
18705*)
18706 lt_cv_prog_gnu_ld=no
18707 ;;
18708esac
18709fi
Reid Spencera773bd52006-08-04 18:18:08 +000018710{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18711echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018712with_gnu_ld=$lt_cv_prog_gnu_ld
18713
18714
18715
18716 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18717 # archiving commands below assume that GNU ld is being used.
18718 if test "$with_gnu_ld" = yes; then
18719 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18720 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'
18721
18722 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18724
18725 # If archive_cmds runs LD, not CC, wlarc should be empty
18726 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18727 # investigate it a little bit more. (MM)
18728 wlarc='${wl}'
18729
18730 # ancient GNU ld didn't support --whole-archive et. al.
18731 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18732 grep 'no-whole-archive' > /dev/null; then
18733 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18734 else
18735 whole_archive_flag_spec_CXX=
18736 fi
18737 else
18738 with_gnu_ld=no
18739 wlarc=
18740
18741 # A generic and very simple default shared library creation
18742 # command for GNU C++ for the case where it uses the native
18743 # linker, instead of GNU ld. If possible, this setting should
18744 # overridden to take advantage of the native linker features on
18745 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018747 fi
18748
18749 # Commands to make compiler produce verbose output that lists
18750 # what "hidden" libraries, object files and flags are used when
18751 # linking a shared library.
18752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18753
18754else
18755 GXX=no
18756 with_gnu_ld=no
18757 wlarc=
18758fi
18759
18760# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018761{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18762echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018763ld_shlibs_CXX=yes
18764case $host_os in
18765 aix3*)
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18768 ;;
18769 aix4* | aix5*)
18770 if test "$host_cpu" = ia64; then
18771 # On IA64, the linker does run time linking by default, so we don't
18772 # have to do anything special.
18773 aix_use_runtimelinking=no
18774 exp_sym_flag='-Bexport'
18775 no_entry_flag=""
18776 else
18777 aix_use_runtimelinking=no
18778
18779 # Test if we are trying to use run time linking or normal
18780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18781 # need to do runtime linking.
18782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18783 for ld_flag in $LDFLAGS; do
18784 case $ld_flag in
18785 *-brtl*)
18786 aix_use_runtimelinking=yes
18787 break
18788 ;;
18789 esac
18790 done
Reid Spencera773bd52006-08-04 18:18:08 +000018791 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018792 esac
18793
18794 exp_sym_flag='-bexport'
18795 no_entry_flag='-bnoentry'
18796 fi
18797
18798 # When large executables or shared objects are built, AIX ld can
18799 # have problems creating the table of contents. If linking a library
18800 # or program results in "error TOC overflow" add -mminimal-toc to
18801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18803
18804 archive_cmds_CXX=''
18805 hardcode_direct_CXX=yes
18806 hardcode_libdir_separator_CXX=':'
18807 link_all_deplibs_CXX=yes
18808
18809 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018810 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018811 # We only want to do this on AIX 4.2 and lower, the check
18812 # below for broken collect2 doesn't work under 4.3+
18813 collect2name=`${CC} -print-prog-name=collect2`
18814 if test -f "$collect2name" && \
18815 strings "$collect2name" | grep resolve_lib_name >/dev/null
18816 then
18817 # We have reworked collect2
18818 hardcode_direct_CXX=yes
18819 else
18820 # We have old collect2
18821 hardcode_direct_CXX=unsupported
18822 # It fails to find uninstalled libraries when the uninstalled
18823 # path is not listed in the libpath. Setting hardcode_minus_L
18824 # to unsupported forces relinking
18825 hardcode_minus_L_CXX=yes
18826 hardcode_libdir_flag_spec_CXX='-L$libdir'
18827 hardcode_libdir_separator_CXX=
18828 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018830 esac
18831 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018832 if test "$aix_use_runtimelinking" = yes; then
18833 shared_flag="$shared_flag "'${wl}-G'
18834 fi
John Criswell47fdd832003-07-14 16:52:07 +000018835 else
18836 # not using gcc
18837 if test "$host_cpu" = ia64; then
18838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18839 # chokes on -Wl,-G. The following line is correct:
18840 shared_flag='-G'
18841 else
18842 if test "$aix_use_runtimelinking" = yes; then
18843 shared_flag='${wl}-G'
18844 else
18845 shared_flag='${wl}-bM:SRE'
18846 fi
18847 fi
18848 fi
18849
18850 # It seems that -bexpall does not export symbols beginning with
18851 # underscore (_), so it is better to generate a list of symbols to export.
18852 always_export_symbols_CXX=yes
18853 if test "$aix_use_runtimelinking" = yes; then
18854 # Warning - without using the other runtime loading flags (-brtl),
18855 # -berok will link without error, but may produce a broken library.
18856 allow_undefined_flag_CXX='-berok'
18857 # Determine the default libpath from the value encoded in an empty executable.
18858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018864
John Criswell47fdd832003-07-14 16:52:07 +000018865int
18866main ()
18867{
18868
18869 ;
18870 return 0;
18871}
18872_ACEOF
18873rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018874if { (ac_try="$ac_link"
18875case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878esac
18879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891esac
18892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try='test -s conftest$ac_exeext'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018907
18908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18909}'`
18910# Check for a 64-bit object if we didn't find anything.
18911if 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; }
18912}'`; fi
18913else
18914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018915sed 's/^/| /' conftest.$ac_ext >&5
18916
Reid Spencera773bd52006-08-04 18:18:08 +000018917
John Criswell47fdd832003-07-14 16:52:07 +000018918fi
Reid Spencera773bd52006-08-04 18:18:08 +000018919
Bill Wendlingebcceee2009-04-18 11:20:33 +000018920rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018921 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18923
18924 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18925
Reid Spencera773bd52006-08-04 18:18:08 +000018926 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 +000018927 else
18928 if test "$host_cpu" = ia64; then
18929 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18930 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018931 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 +000018932 else
18933 # Determine the default libpath from the value encoded in an empty executable.
18934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018940
John Criswell47fdd832003-07-14 16:52:07 +000018941int
18942main ()
18943{
18944
18945 ;
18946 return 0;
18947}
18948_ACEOF
18949rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018950if { (ac_try="$ac_link"
18951case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954esac
18955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967esac
18968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977esac
18978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018983
18984aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18985}'`
18986# Check for a 64-bit object if we didn't find anything.
18987if 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; }
18988}'`; fi
18989else
18990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018991sed 's/^/| /' conftest.$ac_ext >&5
18992
Reid Spencera773bd52006-08-04 18:18:08 +000018993
John Criswell47fdd832003-07-14 16:52:07 +000018994fi
Reid Spencera773bd52006-08-04 18:18:08 +000018995
Bill Wendlingebcceee2009-04-18 11:20:33 +000018996rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018997 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18999
19000 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19001 # Warning - without using the other run time loading flags,
19002 # -berok will link without error, but may produce a broken library.
19003 no_undefined_flag_CXX=' ${wl}-bernotok'
19004 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019005 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019006 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019007 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019008 # This is similar to how AIX traditionally builds its shared libraries.
19009 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 +000019010 fi
19011 fi
19012 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019013
19014 beos*)
19015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19016 allow_undefined_flag_CXX=unsupported
19017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19018 # support --undefined. This deserves some investigation. FIXME
19019 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19020 else
19021 ld_shlibs_CXX=no
19022 fi
19023 ;;
19024
John Criswell47fdd832003-07-14 16:52:07 +000019025 chorus*)
19026 case $cc_basename in
19027 *)
19028 # FIXME: insert proper C++ library support
19029 ld_shlibs_CXX=no
19030 ;;
19031 esac
19032 ;;
19033
19034 cygwin* | mingw* | pw32*)
19035 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19036 # as there is no search path for DLLs.
19037 hardcode_libdir_flag_spec_CXX='-L$libdir'
19038 allow_undefined_flag_CXX=unsupported
19039 always_export_symbols_CXX=no
19040 enable_shared_with_static_runtimes_CXX=yes
19041
19042 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019043 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 +000019044 # If the export-symbols file already is a .def file (1st line
19045 # is EXPORTS), use it as is; otherwise, prepend...
19046 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19047 cp $export_symbols $output_objdir/$soname.def;
19048 else
19049 echo EXPORTS > $output_objdir/$soname.def;
19050 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019051 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019052 $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 +000019053 else
19054 ld_shlibs_CXX=no
19055 fi
19056 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019057 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019058 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019059 rhapsody* | darwin1.[012])
19060 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19061 ;;
19062 *) # Darwin 1.3 on
19063 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19064 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19065 else
19066 case ${MACOSX_DEPLOYMENT_TARGET} in
19067 10.[012])
19068 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19069 ;;
19070 10.*)
19071 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19072 ;;
19073 esac
19074 fi
19075 ;;
19076 esac
19077 archive_cmds_need_lc_CXX=no
19078 hardcode_direct_CXX=no
19079 hardcode_automatic_CXX=yes
19080 hardcode_shlibpath_var_CXX=unsupported
19081 whole_archive_flag_spec_CXX=''
19082 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019083
Reid Spencer2706f8c2004-09-19 23:53:36 +000019084 if test "$GXX" = yes ; then
19085 lt_int_apple_cc_single_mod=no
19086 output_verbose_link_cmd='echo'
19087 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19088 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019089 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019090 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019091 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 +000019092 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019093 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 +000019094 fi
19095 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019096 # 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 +000019097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019098 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000019099 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019100 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 +000019101 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019102 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 +000019103 else
Reid Spencera773bd52006-08-04 18:18:08 +000019104 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019105 xlc*)
19106 output_verbose_link_cmd='echo'
19107 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'
19108 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019109 # 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 +000019110 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}'
19111 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 +000019112 ;;
19113 *)
19114 ld_shlibs_CXX=no
19115 ;;
19116 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019117 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019118 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019119
19120 dgux*)
19121 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019122 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019126 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019127 # Green Hills C++ Compiler
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131 *)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 esac
19136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019137 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019138 # C++ shared libraries reported to be fairly broken before switch to ELF
19139 ld_shlibs_CXX=no
19140 ;;
19141 freebsd-elf*)
19142 archive_cmds_need_lc_CXX=no
19143 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019144 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019145 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19146 # conventions
19147 ld_shlibs_CXX=yes
19148 ;;
19149 gnu*)
19150 ;;
19151 hpux9*)
19152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19153 hardcode_libdir_separator_CXX=:
19154 export_dynamic_flag_spec_CXX='${wl}-E'
19155 hardcode_direct_CXX=yes
19156 hardcode_minus_L_CXX=yes # Not in the search PATH,
19157 # but as the default
19158 # location of the library.
19159
19160 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019161 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019162 # FIXME: insert proper C++ library support
19163 ld_shlibs_CXX=no
19164 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019165 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019166 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 +000019167 # Commands to make compiler produce verbose output that lists
19168 # what "hidden" libraries, object files and flags are used when
19169 # linking a shared library.
19170 #
19171 # There doesn't appear to be a way to prevent this compiler from
19172 # explicitly linking system object files so we need to strip them
19173 # from the output so that they don't get included in the library
19174 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019175 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 +000019176 ;;
19177 *)
19178 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019179 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 +000019180 else
19181 # FIXME: insert proper C++ library support
19182 ld_shlibs_CXX=no
19183 fi
19184 ;;
19185 esac
19186 ;;
19187 hpux10*|hpux11*)
19188 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019189 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19190 hardcode_libdir_separator_CXX=:
19191
19192 case $host_cpu in
19193 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019194 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019195 ;;
19196 *)
John Criswell47fdd832003-07-14 16:52:07 +000019197 export_dynamic_flag_spec_CXX='${wl}-E'
19198 ;;
19199 esac
19200 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019201 case $host_cpu in
19202 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019203 hardcode_direct_CXX=no
19204 hardcode_shlibpath_var_CXX=no
19205 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019206 *)
19207 hardcode_direct_CXX=yes
19208 hardcode_minus_L_CXX=yes # Not in the search PATH,
19209 # but as the default
19210 # location of the library.
19211 ;;
19212 esac
19213
19214 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019215 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019216 # FIXME: insert proper C++ library support
19217 ld_shlibs_CXX=no
19218 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019219 aCC*)
19220 case $host_cpu in
19221 hppa*64*)
19222 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19223 ;;
19224 ia64*)
19225 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 +000019226 ;;
19227 *)
19228 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 ;;
19230 esac
19231 # Commands to make compiler produce verbose output that lists
19232 # what "hidden" libraries, object files and flags are used when
19233 # linking a shared library.
19234 #
19235 # There doesn't appear to be a way to prevent this compiler from
19236 # explicitly linking system object files so we need to strip them
19237 # from the output so that they don't get included in the library
19238 # dependencies.
19239 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'
19240 ;;
19241 *)
19242 if test "$GXX" = yes; then
19243 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019244 case $host_cpu in
19245 hppa*64*)
19246 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19247 ;;
19248 ia64*)
19249 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 +000019250 ;;
19251 *)
19252 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'
19253 ;;
19254 esac
19255 fi
19256 else
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19259 fi
19260 ;;
19261 esac
19262 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019263 interix3*)
19264 hardcode_direct_CXX=no
19265 hardcode_shlibpath_var_CXX=no
19266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19267 export_dynamic_flag_spec_CXX='${wl}-E'
19268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19269 # Instead, shared libraries are loaded at an image base (0x10000000 by
19270 # default) and relocated if they conflict, which is a slow very memory
19271 # consuming and fragmenting process. To avoid this, we pick a random,
19272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19274 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'
19275 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'
19276 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019277 irix5* | irix6*)
19278 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019279 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019280 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019281 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 +000019282
19283 # Archives containing C++ object files must be created using
19284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19285 # necessary to make sure instantiated templates are included
19286 # in the archive.
19287 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19288 ;;
19289 *)
19290 if test "$GXX" = yes; then
19291 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019292 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 +000019293 else
19294 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'
19295 fi
19296 fi
19297 link_all_deplibs_CXX=yes
19298 ;;
19299 esac
19300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19301 hardcode_libdir_separator_CXX=:
19302 ;;
19303 linux*)
19304 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019305 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019306 # Kuck and Associates, Inc. (KAI) C++ Compiler
19307
19308 # KCC will only create a shared library if the output file
19309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19310 # to its proper name (with version) after linking.
19311 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'
19312 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'
19313 # Commands to make compiler produce verbose output that lists
19314 # what "hidden" libraries, object files and flags are used when
19315 # linking a shared library.
19316 #
19317 # There doesn't appear to be a way to prevent this compiler from
19318 # explicitly linking system object files so we need to strip them
19319 # from the output so that they don't get included in the library
19320 # dependencies.
19321 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'
19322
19323 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19325
19326 # Archives containing C++ object files must be created using
19327 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19328 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19329 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019330 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019331 # Intel C++
19332 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019333 # version 8.0 and above of icpc choke on multiply defined symbols
19334 # if we add $predep_objects and $postdep_objects, however 7.1 and
19335 # earlier do not add the objects themselves.
19336 case `$CC -V 2>&1` in
19337 *"Version 7."*)
19338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19339 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'
19340 ;;
19341 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019342 tmp_idyn=
19343 case $host_cpu in
19344 ia64*) tmp_idyn=' -i_dynamic';;
19345 esac
19346 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19347 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 +000019348 ;;
19349 esac
John Criswell47fdd832003-07-14 16:52:07 +000019350 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19354 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019355 pgCC*)
19356 # Portland Group C++ compiler
19357 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19358 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'
19359
19360 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19362 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'
19363 ;;
19364 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019365 # Compaq C++
19366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 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'
19368
19369 runpath_var=LD_RUN_PATH
19370 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19371 hardcode_libdir_separator_CXX=:
19372
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19376 #
19377 # There doesn't appear to be a way to prevent this compiler from
19378 # explicitly linking system object files so we need to strip them
19379 # from the output so that they don't get included in the library
19380 # dependencies.
19381 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'
19382 ;;
19383 esac
19384 ;;
19385 lynxos*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19388 ;;
19389 m88k*)
19390 # FIXME: insert proper C++ library support
19391 ld_shlibs_CXX=no
19392 ;;
19393 mvs*)
19394 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019395 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019396 # FIXME: insert proper C++ library support
19397 ld_shlibs_CXX=no
19398 ;;
19399 *)
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19402 ;;
19403 esac
19404 ;;
19405 netbsd*)
19406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19407 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19408 wlarc=
19409 hardcode_libdir_flag_spec_CXX='-R$libdir'
19410 hardcode_direct_CXX=yes
19411 hardcode_shlibpath_var_CXX=no
19412 fi
19413 # Workaround some broken pre-1.5 toolchains
19414 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19415 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019416 openbsd2*)
19417 # C++ shared libraries are fairly broken
19418 ld_shlibs_CXX=no
19419 ;;
19420 openbsd*)
19421 hardcode_direct_CXX=yes
19422 hardcode_shlibpath_var_CXX=no
19423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19426 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19427 export_dynamic_flag_spec_CXX='${wl}-E'
19428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19429 fi
19430 output_verbose_link_cmd='echo'
19431 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019432 osf3*)
19433 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019434 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019435 # Kuck and Associates, Inc. (KAI) C++ Compiler
19436
19437 # KCC will only create a shared library if the output file
19438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19439 # to its proper name (with version) after linking.
19440 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'
19441
19442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19443 hardcode_libdir_separator_CXX=:
19444
19445 # Archives containing C++ object files must be created using
19446 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19447 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19448
19449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019450 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019451 # Rational C++ 2.4.1
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019455 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019456 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019457 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 +000019458
19459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19460 hardcode_libdir_separator_CXX=:
19461
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 #
19466 # There doesn't appear to be a way to prevent this compiler from
19467 # explicitly linking system object files so we need to strip them
19468 # from the output so that they don't get included in the library
19469 # dependencies.
19470 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'
19471 ;;
19472 *)
19473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19474 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019475 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 +000019476
19477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19478 hardcode_libdir_separator_CXX=:
19479
19480 # Commands to make compiler produce verbose output that lists
19481 # what "hidden" libraries, object files and flags are used when
19482 # linking a shared library.
19483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19484
19485 else
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 fi
19489 ;;
19490 esac
19491 ;;
19492 osf4* | osf5*)
19493 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019494 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019495 # Kuck and Associates, Inc. (KAI) C++ Compiler
19496
19497 # KCC will only create a shared library if the output file
19498 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19499 # to its proper name (with version) after linking.
19500 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'
19501
19502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19503 hardcode_libdir_separator_CXX=:
19504
19505 # Archives containing C++ object files must be created using
19506 # the KAI C++ compiler.
19507 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019509 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019510 # Rational C++ 2.4.1
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019514 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019515 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019516 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 +000019517 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19518 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019519 $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 +000019520 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019521
19522 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19523 hardcode_libdir_separator_CXX=:
19524
19525 # Commands to make compiler produce verbose output that lists
19526 # what "hidden" libraries, object files and flags are used when
19527 # linking a shared library.
19528 #
19529 # There doesn't appear to be a way to prevent this compiler from
19530 # explicitly linking system object files so we need to strip them
19531 # from the output so that they don't get included in the library
19532 # dependencies.
19533 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'
19534 ;;
19535 *)
19536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019538 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 +000019539
19540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19541 hardcode_libdir_separator_CXX=:
19542
19543 # Commands to make compiler produce verbose output that lists
19544 # what "hidden" libraries, object files and flags are used when
19545 # linking a shared library.
19546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19547
19548 else
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19551 fi
19552 ;;
19553 esac
19554 ;;
19555 psos*)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019559 sunos4*)
19560 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019561 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019562 # Sun C++ 4.x
19563 # FIXME: insert proper C++ library support
19564 ld_shlibs_CXX=no
19565 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019566 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019567 # Lucid
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19570 ;;
19571 *)
19572 # FIXME: insert proper C++ library support
19573 ld_shlibs_CXX=no
19574 ;;
19575 esac
19576 ;;
19577 solaris*)
19578 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019579 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019580 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019581 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019582 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019583 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 +000019584 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 +000019585 $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 +000019586
19587 hardcode_libdir_flag_spec_CXX='-R$libdir'
19588 hardcode_shlibpath_var_CXX=no
19589 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019590 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019591 *)
19592 # The C++ compiler is used as linker so we must use $wl
19593 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019594 # linker. We must also pass each convience library through
19595 # to the system linker between allextract/defaultextract.
19596 # The C++ compiler will combine linker options so we
19597 # cannot just pass the convience library names through
19598 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019599 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019600 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 +000019601 ;;
19602 esac
19603 link_all_deplibs_CXX=yes
19604
Reid Spencera773bd52006-08-04 18:18:08 +000019605 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019606
19607 # Archives containing C++ object files must be created using
19608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19609 # necessary to make sure instantiated templates are included
19610 # in the archive.
19611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019613 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019614 # Green Hills C++ Compiler
19615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19616
19617 # The C++ compiler must be used to create the archive.
19618 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19619 ;;
19620 *)
19621 # GNU C++ compiler with Solaris linker
19622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19623 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19624 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019625 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 +000019626 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19627 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19628
John Criswell47fdd832003-07-14 16:52:07 +000019629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019632 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019633 else
19634 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19635 # platform.
19636 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 +000019637 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19638 $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 +000019639
19640 # Commands to make compiler produce verbose output that lists
19641 # what "hidden" libraries, object files and flags are used when
19642 # linking a shared library.
19643 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19644 fi
19645
19646 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19647 fi
19648 ;;
19649 esac
19650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19652 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019653 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019654 hardcode_shlibpath_var_CXX=no
19655 runpath_var='LD_RUN_PATH'
19656
19657 case $cc_basename in
19658 CC*)
19659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 ;;
19662 *)
19663 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19665 ;;
19666 esac
19667 ;;
19668 sysv5* | sco3.2v5* | sco5v6*)
19669 # Note: We can NOT use -z defs as we might desire, because we do not
19670 # link with -lc, and that would cause any symbols used from libc to
19671 # always be unresolved, which means just about no library would
19672 # ever link correctly. If we're not using GNU ld we use -z text
19673 # though, which does catch some bad symbols but isn't as heavy-handed
19674 # as -z defs.
19675 # For security reasons, it is highly recommended that you always
19676 # use absolute paths for naming shared libraries, and exclude the
19677 # DT_RUNPATH tag from executables and libraries. But doing so
19678 # requires that you compile everything twice, which is a pain.
19679 # So that behaviour is only enabled if SCOABSPATH is set to a
19680 # non-empty value in the environment. Most likely only useful for
19681 # creating official distributions of packages.
19682 # This is a hack until libtool officially supports absolute path
19683 # names for shared libraries.
19684 no_undefined_flag_CXX='${wl}-z,text'
19685 allow_undefined_flag_CXX='${wl}-z,nodefs'
19686 archive_cmds_need_lc_CXX=no
19687 hardcode_shlibpath_var_CXX=no
19688 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19689 hardcode_libdir_separator_CXX=':'
19690 link_all_deplibs_CXX=yes
19691 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19692 runpath_var='LD_RUN_PATH'
19693
19694 case $cc_basename in
19695 CC*)
19696 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19697 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 ;;
19699 *)
19700 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19701 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19702 ;;
19703 esac
John Criswell47fdd832003-07-14 16:52:07 +000019704 ;;
19705 tandem*)
19706 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019707 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019708 # NonStop-UX NCC 3.20
19709 # FIXME: insert proper C++ library support
19710 ld_shlibs_CXX=no
19711 ;;
19712 *)
19713 # FIXME: insert proper C++ library support
19714 ld_shlibs_CXX=no
19715 ;;
19716 esac
19717 ;;
19718 vxworks*)
19719 # FIXME: insert proper C++ library support
19720 ld_shlibs_CXX=no
19721 ;;
19722 *)
19723 # FIXME: insert proper C++ library support
19724 ld_shlibs_CXX=no
19725 ;;
19726esac
Reid Spencera773bd52006-08-04 18:18:08 +000019727{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19728echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019729test "$ld_shlibs_CXX" = no && can_build_shared=no
19730
19731GCC_CXX="$GXX"
19732LD_CXX="$LD"
19733
John Criswell47fdd832003-07-14 16:52:07 +000019734
19735cat > conftest.$ac_ext <<EOF
19736class Foo
19737{
19738public:
19739 Foo (void) { a = 0; }
19740private:
19741 int a;
19742};
19743EOF
19744
19745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746 (eval $ac_compile) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; then
19750 # Parse the compiler output and extract the necessary
19751 # objects, libraries and library flags.
19752
19753 # Sentinel used to keep track of whether or not we are before
19754 # the conftest object file.
19755 pre_test_object_deps_done=no
19756
19757 # The `*' in the case matches for architectures that use `case' in
19758 # $output_verbose_cmd can trigger glob expansion during the loop
19759 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019760 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019761
19762 for p in `eval $output_verbose_link_cmd`; do
19763 case $p in
19764
19765 -L* | -R* | -l*)
19766 # Some compilers place space between "-{L,R}" and the path.
19767 # Remove the space.
19768 if test $p = "-L" \
19769 || test $p = "-R"; then
19770 prev=$p
19771 continue
19772 else
19773 prev=
19774 fi
19775
19776 if test "$pre_test_object_deps_done" = no; then
19777 case $p in
19778 -L* | -R*)
19779 # Internal compiler library paths should come after those
19780 # provided the user. The postdeps already come after the
19781 # user supplied libs so there is no need to process them.
19782 if test -z "$compiler_lib_search_path_CXX"; then
19783 compiler_lib_search_path_CXX="${prev}${p}"
19784 else
19785 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19786 fi
19787 ;;
19788 # The "-l" case would never come before the object being
19789 # linked, so don't bother handling this case.
19790 esac
19791 else
19792 if test -z "$postdeps_CXX"; then
19793 postdeps_CXX="${prev}${p}"
19794 else
19795 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19796 fi
19797 fi
19798 ;;
19799
19800 *.$objext)
19801 # This assumes that the test object file only shows up
19802 # once in the compiler output.
19803 if test "$p" = "conftest.$objext"; then
19804 pre_test_object_deps_done=yes
19805 continue
19806 fi
19807
19808 if test "$pre_test_object_deps_done" = no; then
19809 if test -z "$predep_objects_CXX"; then
19810 predep_objects_CXX="$p"
19811 else
19812 predep_objects_CXX="$predep_objects_CXX $p"
19813 fi
19814 else
19815 if test -z "$postdep_objects_CXX"; then
19816 postdep_objects_CXX="$p"
19817 else
19818 postdep_objects_CXX="$postdep_objects_CXX $p"
19819 fi
19820 fi
19821 ;;
19822
19823 *) ;; # Ignore the rest.
19824
19825 esac
19826 done
19827
19828 # Clean up.
19829 rm -f a.out a.exe
19830else
19831 echo "libtool.m4: error: problem compiling CXX test program"
19832fi
19833
19834$rm -f confest.$objext
19835
Reid Spencera773bd52006-08-04 18:18:08 +000019836# PORTME: override above test on systems where it is broken
19837case $host_os in
19838interix3*)
19839 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19840 # hack all around it, let's just trust "g++" to DTRT.
19841 predep_objects_CXX=
19842 postdep_objects_CXX=
19843 postdeps_CXX=
19844 ;;
19845
19846solaris*)
19847 case $cc_basename in
19848 CC*)
19849 # Adding this requires a known-good setup of shared libraries for
19850 # Sun compiler versions before 5.6, else PIC objects from an old
19851 # archive will be linked into the output, leading to subtle bugs.
19852 postdeps_CXX='-lCstd -lCrun'
19853 ;;
19854 esac
19855 ;;
19856esac
19857
19858
John Criswell47fdd832003-07-14 16:52:07 +000019859case " $postdeps_CXX " in
19860*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19861esac
19862
19863lt_prog_compiler_wl_CXX=
19864lt_prog_compiler_pic_CXX=
19865lt_prog_compiler_static_CXX=
19866
Reid Spencera773bd52006-08-04 18:18:08 +000019867{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19868echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019869
19870 # C++ specific cases for pic, static, wl, etc.
19871 if test "$GXX" = yes; then
19872 lt_prog_compiler_wl_CXX='-Wl,'
19873 lt_prog_compiler_static_CXX='-static'
19874
19875 case $host_os in
19876 aix*)
19877 # All AIX code is PIC.
19878 if test "$host_cpu" = ia64; then
19879 # AIX 5 now supports IA64 processor
19880 lt_prog_compiler_static_CXX='-Bstatic'
19881 fi
19882 ;;
19883 amigaos*)
19884 # FIXME: we need at least 68020 code to build shared libraries, but
19885 # adding the `-m68020' flag to GCC prevents building anything better,
19886 # like `-m68040'.
19887 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19888 ;;
19889 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19890 # PIC is the default for these OSes.
19891 ;;
19892 mingw* | os2* | pw32*)
19893 # This hack is so that the source file can tell whether it is being
19894 # built for inclusion in a dll (and should export symbols for example).
19895 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19896 ;;
19897 darwin* | rhapsody*)
19898 # PIC is the default on this platform
19899 # Common symbols not allowed in MH_DYLIB files
19900 lt_prog_compiler_pic_CXX='-fno-common'
19901 ;;
19902 *djgpp*)
19903 # DJGPP does not support shared libraries at all
19904 lt_prog_compiler_pic_CXX=
19905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019906 interix3*)
19907 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19908 # Instead, we relocate shared libraries at runtime.
19909 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019910 sysv4*MP*)
19911 if test -d /usr/nec; then
19912 lt_prog_compiler_pic_CXX=-Kconform_pic
19913 fi
19914 ;;
19915 hpux*)
19916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19917 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019918 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019919 hppa*64*|ia64*)
19920 ;;
19921 *)
19922 lt_prog_compiler_pic_CXX='-fPIC'
19923 ;;
19924 esac
19925 ;;
19926 *)
19927 lt_prog_compiler_pic_CXX='-fPIC'
19928 ;;
19929 esac
19930 else
19931 case $host_os in
19932 aix4* | aix5*)
19933 # All AIX code is PIC.
19934 if test "$host_cpu" = ia64; then
19935 # AIX 5 now supports IA64 processor
19936 lt_prog_compiler_static_CXX='-Bstatic'
19937 else
19938 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19939 fi
19940 ;;
19941 chorus*)
19942 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019943 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019944 # Green Hills C++ Compiler
19945 # _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"
19946 ;;
19947 esac
19948 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019949 darwin*)
19950 # PIC is the default on this platform
19951 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019952 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019953 xlc*)
19954 lt_prog_compiler_pic_CXX='-qnocommon'
19955 lt_prog_compiler_wl_CXX='-Wl,'
19956 ;;
19957 esac
19958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019959 dgux*)
19960 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019961 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019962 lt_prog_compiler_pic_CXX='-KPIC'
19963 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019964 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019965 # Green Hills C++ Compiler
19966 lt_prog_compiler_pic_CXX='-pic'
19967 ;;
19968 *)
19969 ;;
19970 esac
19971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019972 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019973 # FreeBSD uses GNU C++
19974 ;;
19975 hpux9* | hpux10* | hpux11*)
19976 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019977 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019978 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019979 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019980 if test "$host_cpu" != ia64; then
19981 lt_prog_compiler_pic_CXX='+Z'
19982 fi
19983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019984 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019985 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19987 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019988 hppa*64*|ia64*)
19989 # +Z the default
19990 ;;
19991 *)
19992 lt_prog_compiler_pic_CXX='+Z'
19993 ;;
19994 esac
19995 ;;
19996 *)
19997 ;;
19998 esac
19999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020000 interix*)
20001 # This is c89, which is MS Visual C++ (no shared libs)
20002 # Anyone wants to do a port?
20003 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020004 irix5* | irix6* | nonstopux*)
20005 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020006 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 lt_prog_compiler_wl_CXX='-Wl,'
20008 lt_prog_compiler_static_CXX='-non_shared'
20009 # CC pic flag -KPIC is the default.
20010 ;;
20011 *)
20012 ;;
20013 esac
20014 ;;
20015 linux*)
20016 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020017 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020018 # KAI C++ Compiler
20019 lt_prog_compiler_wl_CXX='--backend -Wl,'
20020 lt_prog_compiler_pic_CXX='-fPIC'
20021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020022 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020023 # Intel C++
20024 lt_prog_compiler_wl_CXX='-Wl,'
20025 lt_prog_compiler_pic_CXX='-KPIC'
20026 lt_prog_compiler_static_CXX='-static'
20027 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020028 pgCC*)
20029 # Portland Group C++ compiler.
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_pic_CXX='-fpic'
20032 lt_prog_compiler_static_CXX='-Bstatic'
20033 ;;
20034 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020035 # Compaq C++
20036 # Make sure the PIC flag is empty. It appears that all Alpha
20037 # Linux and Compaq Tru64 Unix objects are PIC.
20038 lt_prog_compiler_pic_CXX=
20039 lt_prog_compiler_static_CXX='-non_shared'
20040 ;;
20041 *)
20042 ;;
20043 esac
20044 ;;
20045 lynxos*)
20046 ;;
20047 m88k*)
20048 ;;
20049 mvs*)
20050 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020051 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020052 lt_prog_compiler_pic_CXX='-W c,exportall'
20053 ;;
20054 *)
20055 ;;
20056 esac
20057 ;;
20058 netbsd*)
20059 ;;
20060 osf3* | osf4* | osf5*)
20061 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020062 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020063 lt_prog_compiler_wl_CXX='--backend -Wl,'
20064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020065 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020066 # Rational C++ 2.4.1
20067 lt_prog_compiler_pic_CXX='-pic'
20068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020069 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020070 # Digital/Compaq C++
20071 lt_prog_compiler_wl_CXX='-Wl,'
20072 # Make sure the PIC flag is empty. It appears that all Alpha
20073 # Linux and Compaq Tru64 Unix objects are PIC.
20074 lt_prog_compiler_pic_CXX=
20075 lt_prog_compiler_static_CXX='-non_shared'
20076 ;;
20077 *)
20078 ;;
20079 esac
20080 ;;
20081 psos*)
20082 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020083 solaris*)
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.2, 5.x and Centerline C++
20087 lt_prog_compiler_pic_CXX='-KPIC'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20089 lt_prog_compiler_wl_CXX='-Qoption ld '
20090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020091 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020092 # Green Hills C++ Compiler
20093 lt_prog_compiler_pic_CXX='-PIC'
20094 ;;
20095 *)
20096 ;;
20097 esac
20098 ;;
20099 sunos4*)
20100 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020101 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020102 # Sun C++ 4.x
20103 lt_prog_compiler_pic_CXX='-pic'
20104 lt_prog_compiler_static_CXX='-Bstatic'
20105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020106 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020107 # Lucid
20108 lt_prog_compiler_pic_CXX='-pic'
20109 ;;
20110 *)
20111 ;;
20112 esac
20113 ;;
20114 tandem*)
20115 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020116 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020117 # NonStop-UX NCC 3.20
20118 lt_prog_compiler_pic_CXX='-KPIC'
20119 ;;
20120 *)
20121 ;;
20122 esac
20123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20125 case $cc_basename in
20126 CC*)
20127 lt_prog_compiler_wl_CXX='-Wl,'
20128 lt_prog_compiler_pic_CXX='-KPIC'
20129 lt_prog_compiler_static_CXX='-Bstatic'
20130 ;;
20131 esac
John Criswell47fdd832003-07-14 16:52:07 +000020132 ;;
20133 vxworks*)
20134 ;;
20135 *)
20136 lt_prog_compiler_can_build_shared_CXX=no
20137 ;;
20138 esac
20139 fi
20140
Reid Spencera773bd52006-08-04 18:18:08 +000020141{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20142echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020143
20144#
20145# Check to make sure the PIC flag actually works.
20146#
20147if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020148
Reid Spencera773bd52006-08-04 18:18:08 +000020149{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20150echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020151if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153else
20154 lt_prog_compiler_pic_works_CXX=no
20155 ac_outfile=conftest.$ac_objext
20156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20157 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20158 # Insert the option either (1) after the last *FLAGS variable, or
20159 # (2) before a word containing "conftest.", or (3) at the end.
20160 # Note that $ac_compile itself does not contain backslashes and begins
20161 # with a dollar sign (not a hyphen), so the echo should work correctly.
20162 # The option is referenced via a variable to avoid confusing sed.
20163 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20166 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000020167 (eval echo "\"\$as_me:20167: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020168 (eval "$lt_compile" 2>conftest.err)
20169 ac_status=$?
20170 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000020171 echo "$as_me:20171: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020172 if (exit $ac_status) && test -s "$ac_outfile"; then
20173 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020174 # So say no if there are warnings other than the usual output.
20175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020178 lt_prog_compiler_pic_works_CXX=yes
20179 fi
20180 fi
20181 $rm conftest*
20182
20183fi
Reid Spencera773bd52006-08-04 18:18:08 +000020184{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20185echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020186
20187if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20188 case $lt_prog_compiler_pic_CXX in
20189 "" | " "*) ;;
20190 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20191 esac
20192else
20193 lt_prog_compiler_pic_CXX=
20194 lt_prog_compiler_can_build_shared_CXX=no
20195fi
20196
20197fi
Reid Spencera773bd52006-08-04 18:18:08 +000020198case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020199 # For platforms which do not support PIC, -DPIC is meaningless:
20200 *djgpp*)
20201 lt_prog_compiler_pic_CXX=
20202 ;;
20203 *)
20204 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20205 ;;
20206esac
20207
Reid Spencera773bd52006-08-04 18:18:08 +000020208#
20209# Check to make sure the static flag actually works.
20210#
20211wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20212{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20213echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20214if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216else
20217 lt_prog_compiler_static_works_CXX=no
20218 save_LDFLAGS="$LDFLAGS"
20219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20220 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20222 # The linker can only warn and ignore the option if not recognized
20223 # So say no if there are warnings
20224 if test -s conftest.err; then
20225 # Append any errors to the config.log.
20226 cat conftest.err 1>&5
20227 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20229 if diff conftest.exp conftest.er2 >/dev/null; then
20230 lt_prog_compiler_static_works_CXX=yes
20231 fi
20232 else
20233 lt_prog_compiler_static_works_CXX=yes
20234 fi
20235 fi
20236 $rm conftest*
20237 LDFLAGS="$save_LDFLAGS"
20238
20239fi
20240{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20241echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20242
20243if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20244 :
20245else
20246 lt_prog_compiler_static_CXX=
20247fi
20248
20249
20250{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20251echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020252if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255 lt_cv_prog_compiler_c_o_CXX=no
20256 $rm -r conftest 2>/dev/null
20257 mkdir conftest
20258 cd conftest
20259 mkdir out
20260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20261
John Criswell47fdd832003-07-14 16:52:07 +000020262 lt_compiler_flag="-o out/conftest2.$ac_objext"
20263 # Insert the option either (1) after the last *FLAGS variable, or
20264 # (2) before a word containing "conftest.", or (3) at the end.
20265 # Note that $ac_compile itself does not contain backslashes and begins
20266 # with a dollar sign (not a hyphen), so the echo should work correctly.
20267 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20270 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000020271 (eval echo "\"\$as_me:20271: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020272 (eval "$lt_compile" 2>out/conftest.err)
20273 ac_status=$?
20274 cat out/conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000020275 echo "$as_me:20275: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20277 then
20278 # The compiler can only warn and ignore the option if not recognized
20279 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020280 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020283 lt_cv_prog_compiler_c_o_CXX=yes
20284 fi
20285 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020286 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020287 $rm conftest*
20288 # SGI C++ compiler will create directory out/ii_files/ for
20289 # template instantiation
20290 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20291 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020292 cd ..
20293 rmdir conftest
20294 $rm conftest*
20295
20296fi
Reid Spencera773bd52006-08-04 18:18:08 +000020297{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20298echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020299
20300
20301hard_links="nottested"
20302if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20303 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020304 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20305echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020306 hard_links=yes
20307 $rm conftest*
20308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20309 touch conftest.a
20310 ln conftest.a conftest.b 2>&5 || hard_links=no
20311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020312 { echo "$as_me:$LINENO: result: $hard_links" >&5
20313echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020314 if test "$hard_links" = no; then
20315 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20316echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20317 need_locks=warn
20318 fi
20319else
20320 need_locks=no
20321fi
20322
Reid Spencera773bd52006-08-04 18:18:08 +000020323{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20324echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020325
20326 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20327 case $host_os in
20328 aix4* | aix5*)
20329 # If we're using GNU nm, then we don't want the "-C" option.
20330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20332 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'
20333 else
20334 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'
20335 fi
20336 ;;
20337 pw32*)
20338 export_symbols_cmds_CXX="$ltdll_cmds"
20339 ;;
20340 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020341 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 +000020342 ;;
20343 *)
20344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20345 ;;
20346 esac
20347
Reid Spencera773bd52006-08-04 18:18:08 +000020348{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20349echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020350test "$ld_shlibs_CXX" = no && can_build_shared=no
20351
John Criswell47fdd832003-07-14 16:52:07 +000020352#
20353# Do we need to explicitly link libc?
20354#
20355case "x$archive_cmds_need_lc_CXX" in
20356x|xyes)
20357 # Assume -lc should be added
20358 archive_cmds_need_lc_CXX=yes
20359
20360 if test "$enable_shared" = yes && test "$GCC" = yes; then
20361 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020362 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020363 # FIXME: we may have to deal with multi-command sequences.
20364 ;;
20365 '$CC '*)
20366 # Test whether the compiler implicitly links with -lc since on some
20367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20368 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020369 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20370echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020371 $rm conftest*
20372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20373
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } 2>conftest.err; then
20379 soname=conftest
20380 lib=conftest
20381 libobjs=conftest.$ac_objext
20382 deplibs=
20383 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020384 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020385 compiler_flags=-v
20386 linker_flags=-v
20387 verstring=
20388 output_objdir=.
20389 libname=conftest
20390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20391 allow_undefined_flag_CXX=
20392 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20393 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }
20397 then
20398 archive_cmds_need_lc_CXX=no
20399 else
20400 archive_cmds_need_lc_CXX=yes
20401 fi
20402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20403 else
20404 cat conftest.err 1>&5
20405 fi
20406 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020407 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20408echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020409 ;;
20410 esac
20411 fi
20412 ;;
20413esac
20414
Reid Spencera773bd52006-08-04 18:18:08 +000020415{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20416echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020417library_names_spec=
20418libname_spec='lib$name'
20419soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020421postinstall_cmds=
20422postuninstall_cmds=
20423finish_cmds=
20424finish_eval=
20425shlibpath_var=
20426shlibpath_overrides_runpath=unknown
20427version_type=none
20428dynamic_linker="$host_os ld.so"
20429sys_lib_dlsearch_path_spec="/lib /usr/lib"
20430if test "$GCC" = yes; then
20431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20432 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20433 # if the path contains ";" then we assume it to be the separator
20434 # otherwise default to the standard path separator (i.e. ":") - it is
20435 # assumed that no part of a normal pathname contains ";" but that should
20436 # okay in the real world where ";" in dirpaths is itself problematic.
20437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20438 else
20439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20440 fi
20441else
20442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20443fi
20444need_lib_prefix=unknown
20445hardcode_into_libs=no
20446
20447# when you set need_version to no, make sure it does not cause -set_version
20448# flags to be left without arguments
20449need_version=unknown
20450
20451case $host_os in
20452aix3*)
20453 version_type=linux
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20455 shlibpath_var=LIBPATH
20456
20457 # AIX 3 has no versioning support, so we append a major version to the name.
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 ;;
20460
20461aix4* | aix5*)
20462 version_type=linux
20463 need_lib_prefix=no
20464 need_version=no
20465 hardcode_into_libs=yes
20466 if test "$host_cpu" = ia64; then
20467 # AIX 5 supports IA64
20468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 else
20471 # With GCC up to 2.95.x, collect2 would create an import file
20472 # for dependence libraries. The import file would start with
20473 # the line `#! .'. This would cause the generated library to
20474 # depend on `.', always an invalid library. This was fixed in
20475 # development snapshots of GCC prior to 3.0.
20476 case $host_os in
20477 aix4 | aix4.[01] | aix4.[01].*)
20478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20479 echo ' yes '
20480 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20481 :
20482 else
20483 can_build_shared=no
20484 fi
20485 ;;
20486 esac
20487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20488 # soname into executable. Probably we can add versioning support to
20489 # collect2, so additional links can be useful in future.
20490 if test "$aix_use_runtimelinking" = yes; then
20491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20492 # instead of lib<name>.a to let people know that these are not
20493 # typical AIX shared libraries.
20494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495 else
20496 # We preserve .a as extension for shared libraries through AIX4.2
20497 # and later when we are not doing run time linking.
20498 library_names_spec='${libname}${release}.a $libname.a'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 fi
20501 shlibpath_var=LIBPATH
20502 fi
20503 ;;
20504
20505amigaos*)
20506 library_names_spec='$libname.ixlibrary $libname.a'
20507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020508 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 +000020509 ;;
20510
20511beos*)
20512 library_names_spec='${libname}${shared_ext}'
20513 dynamic_linker="$host_os ld.so"
20514 shlibpath_var=LIBRARY_PATH
20515 ;;
20516
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020518 version_type=linux
20519 need_version=no
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 soname_spec='${libname}${release}${shared_ext}$major'
20522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20523 shlibpath_var=LD_LIBRARY_PATH
20524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20526 # the default ld.so.conf also contains /usr/contrib/lib and
20527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20528 # libtool to hard-code these into programs
20529 ;;
20530
20531cygwin* | mingw* | pw32*)
20532 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020533 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020534 need_version=no
20535 need_lib_prefix=no
20536
20537 case $GCC,$host_os in
20538 yes,cygwin* | yes,mingw* | yes,pw32*)
20539 library_names_spec='$libname.dll.a'
20540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020541 postinstall_cmds='base_file=`basename \${file}`~
20542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20543 dldir=$destdir/`dirname \$dlpath`~
20544 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020545 $install_prog $dir/$dlname \$dldir/$dlname~
20546 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20548 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020549 $rm \$dlpath'
20550 shlibpath_overrides_runpath=yes
20551
20552 case $host_os in
20553 cygwin*)
20554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20555 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 +000020556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020557 ;;
20558 mingw*)
20559 # MinGW DLLs use traditional 'lib' prefix
20560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20563 # It is most probably a Windows format PATH printed by
20564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20565 # path with ; separators, and with drive letters. We can handle the
20566 # drive letters (cygwin fileutils understands them), so leave them,
20567 # especially as we might pass files found there to a mingw objdump,
20568 # which wouldn't understand a cygwinified path. Ahh.
20569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20570 else
20571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20572 fi
20573 ;;
20574 pw32*)
20575 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020576 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 +000020577 ;;
20578 esac
20579 ;;
20580
20581 *)
20582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20583 ;;
20584 esac
20585 dynamic_linker='Win32 ld.exe'
20586 # FIXME: first we should search . and the directory the executable is in
20587 shlibpath_var=PATH
20588 ;;
20589
20590darwin* | rhapsody*)
20591 dynamic_linker="$host_os dyld"
20592 version_type=darwin
20593 need_lib_prefix=no
20594 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020596 soname_spec='${libname}${release}${major}$shared_ext'
20597 shlibpath_overrides_runpath=yes
20598 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020599 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020601 if test "$GCC" = yes; then
20602 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"`
20603 else
20604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020605 fi
20606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20607 ;;
20608
20609dgux*)
20610 version_type=linux
20611 need_lib_prefix=no
20612 need_version=no
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LD_LIBRARY_PATH
20616 ;;
20617
20618freebsd1*)
20619 dynamic_linker=no
20620 ;;
20621
Reid Spencer2706f8c2004-09-19 23:53:36 +000020622kfreebsd*-gnu)
20623 version_type=linux
20624 need_lib_prefix=no
20625 need_version=no
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20627 soname_spec='${libname}${release}${shared_ext}$major'
20628 shlibpath_var=LD_LIBRARY_PATH
20629 shlibpath_overrides_runpath=no
20630 hardcode_into_libs=yes
20631 dynamic_linker='GNU ld.so'
20632 ;;
20633
Reid Spencera773bd52006-08-04 18:18:08 +000020634freebsd* | dragonfly*)
20635 # DragonFly does not have aout. When/if they implement a new
20636 # versioning mechanism, adjust this.
20637 if test -x /usr/bin/objformat; then
20638 objformat=`/usr/bin/objformat`
20639 else
20640 case $host_os in
20641 freebsd[123]*) objformat=aout ;;
20642 *) objformat=elf ;;
20643 esac
20644 fi
John Criswell47fdd832003-07-14 16:52:07 +000020645 version_type=freebsd-$objformat
20646 case $version_type in
20647 freebsd-elf*)
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20649 need_version=no
20650 need_lib_prefix=no
20651 ;;
20652 freebsd-*)
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20654 need_version=yes
20655 ;;
20656 esac
20657 shlibpath_var=LD_LIBRARY_PATH
20658 case $host_os in
20659 freebsd2*)
20660 shlibpath_overrides_runpath=yes
20661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020662 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020663 shlibpath_overrides_runpath=yes
20664 hardcode_into_libs=yes
20665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020668 shlibpath_overrides_runpath=no
20669 hardcode_into_libs=yes
20670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020671 freebsd*) # from 4.6 on
20672 shlibpath_overrides_runpath=yes
20673 hardcode_into_libs=yes
20674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020675 esac
20676 ;;
20677
20678gnu*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 hardcode_into_libs=yes
20686 ;;
20687
20688hpux9* | hpux10* | hpux11*)
20689 # Give a soname corresponding to the major version so that dld.sl refuses to
20690 # link against other versions.
20691 version_type=sunos
20692 need_lib_prefix=no
20693 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020694 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020695 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020696 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020697 hardcode_into_libs=yes
20698 dynamic_linker="$host_os dld.so"
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 if test "X$HPUX_IA64_MODE" = X32; then
20704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20705 else
20706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20707 fi
20708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20709 ;;
20710 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020711 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020712 hardcode_into_libs=yes
20713 dynamic_linker="$host_os dld.sl"
20714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20720 ;;
20721 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020722 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020723 dynamic_linker="$host_os dld.sl"
20724 shlibpath_var=SHLIB_PATH
20725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727 soname_spec='${libname}${release}${shared_ext}$major'
20728 ;;
20729 esac
20730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20731 postinstall_cmds='chmod 555 $lib'
20732 ;;
20733
Reid Spencera773bd52006-08-04 18:18:08 +000020734interix3*)
20735 version_type=linux
20736 need_lib_prefix=no
20737 need_version=no
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20739 soname_spec='${libname}${release}${shared_ext}$major'
20740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=no
20743 hardcode_into_libs=yes
20744 ;;
20745
John Criswell47fdd832003-07-14 16:52:07 +000020746irix5* | irix6* | nonstopux*)
20747 case $host_os in
20748 nonstopux*) version_type=nonstopux ;;
20749 *)
20750 if test "$lt_cv_prog_gnu_ld" = yes; then
20751 version_type=linux
20752 else
20753 version_type=irix
20754 fi ;;
20755 esac
20756 need_lib_prefix=no
20757 need_version=no
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20760 case $host_os in
20761 irix5* | nonstopux*)
20762 libsuff= shlibsuff=
20763 ;;
20764 *)
20765 case $LD in # libtool.m4 will add one of these switches to LD
20766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20767 libsuff= shlibsuff= libmagic=32-bit;;
20768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20769 libsuff=32 shlibsuff=N32 libmagic=N32;;
20770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20772 *) libsuff= shlibsuff= libmagic=never-match;;
20773 esac
20774 ;;
20775 esac
20776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20777 shlibpath_overrides_runpath=no
20778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20780 hardcode_into_libs=yes
20781 ;;
20782
20783# No shared lib support for Linux oldld, aout, or coff.
20784linux*oldld* | linux*aout* | linux*coff*)
20785 dynamic_linker=no
20786 ;;
20787
20788# This must be Linux ELF.
20789linux*)
20790 version_type=linux
20791 need_lib_prefix=no
20792 need_version=no
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20796 shlibpath_var=LD_LIBRARY_PATH
20797 shlibpath_overrides_runpath=no
20798 # This implies no fast_install, which is unacceptable.
20799 # Some rework will be needed to allow for fast_install
20800 # before this can be enabled.
20801 hardcode_into_libs=yes
20802
Reid Spencer2706f8c2004-09-19 23:53:36 +000020803 # Append ld.so.conf contents to the search path
20804 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020805 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 +000020806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20807 fi
20808
John Criswell47fdd832003-07-14 16:52:07 +000020809 # We used to test for /lib/ld.so.1 and disable shared libraries on
20810 # powerpc, because MkLinux only supported shared libraries with the
20811 # GNU dynamic linker. Since this was broken with cross compilers,
20812 # most powerpc-linux boxes support dynamic linking these days and
20813 # people can always --disable-shared, the test was removed, and we
20814 # assume the GNU/Linux dynamic linker is in use.
20815 dynamic_linker='GNU/Linux ld.so'
20816 ;;
20817
Reid Spencer2706f8c2004-09-19 23:53:36 +000020818knetbsd*-gnu)
20819 version_type=linux
20820 need_lib_prefix=no
20821 need_version=no
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 shlibpath_var=LD_LIBRARY_PATH
20825 shlibpath_overrides_runpath=no
20826 hardcode_into_libs=yes
20827 dynamic_linker='GNU ld.so'
20828 ;;
20829
John Criswell47fdd832003-07-14 16:52:07 +000020830netbsd*)
20831 version_type=sunos
20832 need_lib_prefix=no
20833 need_version=no
20834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20837 dynamic_linker='NetBSD (a.out) ld.so'
20838 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020840 soname_spec='${libname}${release}${shared_ext}$major'
20841 dynamic_linker='NetBSD ld.elf_so'
20842 fi
20843 shlibpath_var=LD_LIBRARY_PATH
20844 shlibpath_overrides_runpath=yes
20845 hardcode_into_libs=yes
20846 ;;
20847
20848newsos6)
20849 version_type=linux
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=yes
20853 ;;
20854
Reid Spencer2706f8c2004-09-19 23:53:36 +000020855nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020856 version_type=linux
20857 need_lib_prefix=no
20858 need_version=no
20859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20860 soname_spec='${libname}${release}${shared_ext}$major'
20861 shlibpath_var=LD_LIBRARY_PATH
20862 shlibpath_overrides_runpath=yes
20863 ;;
20864
20865openbsd*)
20866 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020867 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020868 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20870 case $host_os in
20871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20872 *) need_version=no ;;
20873 esac
John Criswell47fdd832003-07-14 16:52:07 +000020874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20878 case $host_os in
20879 openbsd2.[89] | openbsd2.[89].*)
20880 shlibpath_overrides_runpath=no
20881 ;;
20882 *)
20883 shlibpath_overrides_runpath=yes
20884 ;;
20885 esac
20886 else
20887 shlibpath_overrides_runpath=yes
20888 fi
20889 ;;
20890
20891os2*)
20892 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020893 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020894 need_lib_prefix=no
20895 library_names_spec='$libname${shared_ext} $libname.a'
20896 dynamic_linker='OS/2 ld.exe'
20897 shlibpath_var=LIBPATH
20898 ;;
20899
20900osf3* | osf4* | osf5*)
20901 version_type=osf
20902 need_lib_prefix=no
20903 need_version=no
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20909 ;;
20910
John Criswell47fdd832003-07-14 16:52:07 +000020911solaris*)
20912 version_type=linux
20913 need_lib_prefix=no
20914 need_version=no
20915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20916 soname_spec='${libname}${release}${shared_ext}$major'
20917 shlibpath_var=LD_LIBRARY_PATH
20918 shlibpath_overrides_runpath=yes
20919 hardcode_into_libs=yes
20920 # ldd complains unless libraries are executable
20921 postinstall_cmds='chmod +x $lib'
20922 ;;
20923
20924sunos4*)
20925 version_type=sunos
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 shlibpath_overrides_runpath=yes
20930 if test "$with_gnu_ld" = yes; then
20931 need_lib_prefix=no
20932 fi
20933 need_version=yes
20934 ;;
20935
Reid Spencera773bd52006-08-04 18:18:08 +000020936sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020937 version_type=linux
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 case $host_vendor in
20942 sni)
20943 shlibpath_overrides_runpath=no
20944 need_lib_prefix=no
20945 export_dynamic_flag_spec='${wl}-Blargedynsym'
20946 runpath_var=LD_RUN_PATH
20947 ;;
20948 siemens)
20949 need_lib_prefix=no
20950 ;;
20951 motorola)
20952 need_lib_prefix=no
20953 need_version=no
20954 shlibpath_overrides_runpath=no
20955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20956 ;;
20957 esac
20958 ;;
20959
20960sysv4*MP*)
20961 if test -d /usr/nec ;then
20962 version_type=linux
20963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20964 soname_spec='$libname${shared_ext}.$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 fi
20967 ;;
20968
Reid Spencera773bd52006-08-04 18:18:08 +000020969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20970 version_type=freebsd-elf
20971 need_lib_prefix=no
20972 need_version=no
20973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20974 soname_spec='${libname}${release}${shared_ext}$major'
20975 shlibpath_var=LD_LIBRARY_PATH
20976 hardcode_into_libs=yes
20977 if test "$with_gnu_ld" = yes; then
20978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20979 shlibpath_overrides_runpath=no
20980 else
20981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20982 shlibpath_overrides_runpath=yes
20983 case $host_os in
20984 sco3.2v5*)
20985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20986 ;;
20987 esac
20988 fi
20989 sys_lib_dlsearch_path_spec='/usr/lib'
20990 ;;
20991
John Criswell47fdd832003-07-14 16:52:07 +000020992uts4*)
20993 version_type=linux
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20996 shlibpath_var=LD_LIBRARY_PATH
20997 ;;
20998
20999*)
21000 dynamic_linker=no
21001 ;;
21002esac
Reid Spencera773bd52006-08-04 18:18:08 +000021003{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21004echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021005test "$dynamic_linker" = no && can_build_shared=no
21006
Reid Spencera773bd52006-08-04 18:18:08 +000021007variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21008if test "$GCC" = yes; then
21009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21010fi
21011
21012{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21013echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021014hardcode_action_CXX=
21015if test -n "$hardcode_libdir_flag_spec_CXX" || \
21016 test -n "$runpath_var_CXX" || \
21017 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21018
21019 # We can hardcode non-existant directories.
21020 if test "$hardcode_direct_CXX" != no &&
21021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21022 # have to relink, otherwise we might link with an installed library
21023 # when we should be linking with a yet-to-be-installed one
21024 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21025 test "$hardcode_minus_L_CXX" != no; then
21026 # Linking always hardcodes the temporary library directory.
21027 hardcode_action_CXX=relink
21028 else
21029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21030 hardcode_action_CXX=immediate
21031 fi
21032else
21033 # We cannot hardcode anything, or else we can only hardcode existing
21034 # directories.
21035 hardcode_action_CXX=unsupported
21036fi
Reid Spencera773bd52006-08-04 18:18:08 +000021037{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21038echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021039
21040if test "$hardcode_action_CXX" = relink; then
21041 # Fast installation is not supported
21042 enable_fast_install=no
21043elif test "$shlibpath_overrides_runpath" = yes ||
21044 test "$enable_shared" = no; then
21045 # Fast installation is not necessary
21046 enable_fast_install=needless
21047fi
21048
John Criswell47fdd832003-07-14 16:52:07 +000021049
21050# The else clause should only fire when bootstrapping the
21051# libtool distribution, otherwise you forgot to ship ltmain.sh
21052# with your package, and you will get complaints that there are
21053# no rules to generate ltmain.sh.
21054if test -f "$ltmain"; then
21055 # See if we are running on zsh, and set the options which allow our commands through
21056 # without removal of \ escapes.
21057 if test -n "${ZSH_VERSION+set}" ; then
21058 setopt NO_GLOB_SUBST
21059 fi
21060 # Now quote all the things that may contain metacharacters while being
21061 # careful not to overquote the AC_SUBSTed values. We take copies of the
21062 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021063 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 +000021064 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21067 deplibs_check_method reload_flag reload_cmds need_locks \
21068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21069 lt_cv_sys_global_symbol_to_c_name_address \
21070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21071 old_postinstall_cmds old_postuninstall_cmds \
21072 compiler_CXX \
21073 CC_CXX \
21074 LD_CXX \
21075 lt_prog_compiler_wl_CXX \
21076 lt_prog_compiler_pic_CXX \
21077 lt_prog_compiler_static_CXX \
21078 lt_prog_compiler_no_builtin_flag_CXX \
21079 export_dynamic_flag_spec_CXX \
21080 thread_safe_flag_spec_CXX \
21081 whole_archive_flag_spec_CXX \
21082 enable_shared_with_static_runtimes_CXX \
21083 old_archive_cmds_CXX \
21084 old_archive_from_new_cmds_CXX \
21085 predep_objects_CXX \
21086 postdep_objects_CXX \
21087 predeps_CXX \
21088 postdeps_CXX \
21089 compiler_lib_search_path_CXX \
21090 archive_cmds_CXX \
21091 archive_expsym_cmds_CXX \
21092 postinstall_cmds_CXX \
21093 postuninstall_cmds_CXX \
21094 old_archive_from_expsyms_cmds_CXX \
21095 allow_undefined_flag_CXX \
21096 no_undefined_flag_CXX \
21097 export_symbols_cmds_CXX \
21098 hardcode_libdir_flag_spec_CXX \
21099 hardcode_libdir_flag_spec_ld_CXX \
21100 hardcode_libdir_separator_CXX \
21101 hardcode_automatic_CXX \
21102 module_cmds_CXX \
21103 module_expsym_cmds_CXX \
21104 lt_cv_prog_compiler_c_o_CXX \
21105 exclude_expsyms_CXX \
21106 include_expsyms_CXX; do
21107
21108 case $var in
21109 old_archive_cmds_CXX | \
21110 old_archive_from_new_cmds_CXX | \
21111 archive_cmds_CXX | \
21112 archive_expsym_cmds_CXX | \
21113 module_cmds_CXX | \
21114 module_expsym_cmds_CXX | \
21115 old_archive_from_expsyms_cmds_CXX | \
21116 export_symbols_cmds_CXX | \
21117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21118 postinstall_cmds | postuninstall_cmds | \
21119 old_postinstall_cmds | old_postuninstall_cmds | \
21120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21121 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021122 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 +000021123 ;;
21124 *)
21125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21126 ;;
21127 esac
21128 done
21129
21130 case $lt_echo in
21131 *'\$0 --fallback-echo"')
21132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21133 ;;
21134 esac
21135
21136cfgfile="$ofile"
21137
21138 cat <<__EOF__ >> "$cfgfile"
21139# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21140
21141# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21142
21143# Shell to use when invoking shell scripts.
21144SHELL=$lt_SHELL
21145
21146# Whether or not to build shared libraries.
21147build_libtool_libs=$enable_shared
21148
21149# Whether or not to build static libraries.
21150build_old_libs=$enable_static
21151
21152# Whether or not to add -lc for building shared libraries.
21153build_libtool_need_lc=$archive_cmds_need_lc_CXX
21154
21155# Whether or not to disallow shared libs when runtime libs are static
21156allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21157
21158# Whether or not to optimize for fast installation.
21159fast_install=$enable_fast_install
21160
21161# The host system.
21162host_alias=$host_alias
21163host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021164host_os=$host_os
21165
21166# The build system.
21167build_alias=$build_alias
21168build=$build
21169build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021170
21171# An echo program that does not interpret backslashes.
21172echo=$lt_echo
21173
21174# The archiver.
21175AR=$lt_AR
21176AR_FLAGS=$lt_AR_FLAGS
21177
21178# A C compiler.
21179LTCC=$lt_LTCC
21180
Reid Spencera773bd52006-08-04 18:18:08 +000021181# LTCC compiler flags.
21182LTCFLAGS=$lt_LTCFLAGS
21183
John Criswell47fdd832003-07-14 16:52:07 +000021184# A language-specific compiler.
21185CC=$lt_compiler_CXX
21186
21187# Is the compiler the GNU C compiler?
21188with_gcc=$GCC_CXX
21189
21190# An ERE matcher.
21191EGREP=$lt_EGREP
21192
21193# The linker used to build libraries.
21194LD=$lt_LD_CXX
21195
21196# Whether we need hard or soft links.
21197LN_S=$lt_LN_S
21198
21199# A BSD-compatible nm program.
21200NM=$lt_NM
21201
21202# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021203STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021204
21205# Used to examine libraries when file_magic_cmd begins "file"
21206MAGIC_CMD=$MAGIC_CMD
21207
21208# Used on cygwin: DLL creation program.
21209DLLTOOL="$DLLTOOL"
21210
21211# Used on cygwin: object dumper.
21212OBJDUMP="$OBJDUMP"
21213
21214# Used on cygwin: assembler.
21215AS="$AS"
21216
21217# The name of the directory that contains temporary libtool files.
21218objdir=$objdir
21219
21220# How to create reloadable object files.
21221reload_flag=$lt_reload_flag
21222reload_cmds=$lt_reload_cmds
21223
21224# How to pass a linker flag through the compiler.
21225wl=$lt_lt_prog_compiler_wl_CXX
21226
21227# Object file suffix (normally "o").
21228objext="$ac_objext"
21229
21230# Old archive suffix (normally "a").
21231libext="$libext"
21232
21233# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021234shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021235
21236# Executable file suffix (normally "").
21237exeext="$exeext"
21238
21239# Additional compiler flags for building library objects.
21240pic_flag=$lt_lt_prog_compiler_pic_CXX
21241pic_mode=$pic_mode
21242
21243# What is the maximum length of a command?
21244max_cmd_len=$lt_cv_sys_max_cmd_len
21245
21246# Does compiler simultaneously support -c and -o options?
21247compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21248
Reid Spencera773bd52006-08-04 18:18:08 +000021249# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021250need_locks=$lt_need_locks
21251
21252# Do we need the lib prefix for modules?
21253need_lib_prefix=$need_lib_prefix
21254
21255# Do we need a version for libraries?
21256need_version=$need_version
21257
21258# Whether dlopen is supported.
21259dlopen_support=$enable_dlopen
21260
21261# Whether dlopen of programs is supported.
21262dlopen_self=$enable_dlopen_self
21263
21264# Whether dlopen of statically linked programs is supported.
21265dlopen_self_static=$enable_dlopen_self_static
21266
21267# Compiler flag to prevent dynamic linking.
21268link_static_flag=$lt_lt_prog_compiler_static_CXX
21269
21270# Compiler flag to turn off builtin functions.
21271no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21272
21273# Compiler flag to allow reflexive dlopens.
21274export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21275
21276# Compiler flag to generate shared objects directly from archives.
21277whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21278
21279# Compiler flag to generate thread-safe objects.
21280thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21281
21282# Library versioning type.
21283version_type=$version_type
21284
21285# Format of library name prefix.
21286libname_spec=$lt_libname_spec
21287
21288# List of archive names. First name is the real one, the rest are links.
21289# The last name is the one that the linker finds with -lNAME.
21290library_names_spec=$lt_library_names_spec
21291
21292# The coded name of the library, if different from the real name.
21293soname_spec=$lt_soname_spec
21294
21295# Commands used to build and install an old-style archive.
21296RANLIB=$lt_RANLIB
21297old_archive_cmds=$lt_old_archive_cmds_CXX
21298old_postinstall_cmds=$lt_old_postinstall_cmds
21299old_postuninstall_cmds=$lt_old_postuninstall_cmds
21300
21301# Create an old-style archive from a shared archive.
21302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21303
21304# Create a temporary old-style archive to link instead of a shared archive.
21305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21306
21307# Commands used to build and install a shared archive.
21308archive_cmds=$lt_archive_cmds_CXX
21309archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21310postinstall_cmds=$lt_postinstall_cmds
21311postuninstall_cmds=$lt_postuninstall_cmds
21312
21313# Commands used to build a loadable module (assumed same as above if empty)
21314module_cmds=$lt_module_cmds_CXX
21315module_expsym_cmds=$lt_module_expsym_cmds_CXX
21316
21317# Commands to strip libraries.
21318old_striplib=$lt_old_striplib
21319striplib=$lt_striplib
21320
21321# Dependencies to place before the objects being linked to create a
21322# shared library.
21323predep_objects=$lt_predep_objects_CXX
21324
21325# Dependencies to place after the objects being linked to create a
21326# shared library.
21327postdep_objects=$lt_postdep_objects_CXX
21328
21329# Dependencies to place before the objects being linked to create a
21330# shared library.
21331predeps=$lt_predeps_CXX
21332
21333# Dependencies to place after the objects being linked to create a
21334# shared library.
21335postdeps=$lt_postdeps_CXX
21336
21337# The library search path used internally by the compiler when linking
21338# a shared library.
21339compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21340
21341# Method to check whether dependent libraries are shared objects.
21342deplibs_check_method=$lt_deplibs_check_method
21343
21344# Command to use when deplibs_check_method == file_magic.
21345file_magic_cmd=$lt_file_magic_cmd
21346
21347# Flag that allows shared libraries with undefined symbols to be built.
21348allow_undefined_flag=$lt_allow_undefined_flag_CXX
21349
21350# Flag that forces no undefined symbols.
21351no_undefined_flag=$lt_no_undefined_flag_CXX
21352
21353# Commands used to finish a libtool library installation in a directory.
21354finish_cmds=$lt_finish_cmds
21355
21356# Same as above, but a single script fragment to be evaled but not shown.
21357finish_eval=$lt_finish_eval
21358
21359# Take the output of nm and produce a listing of raw symbols and C names.
21360global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21361
21362# Transform the output of nm in a proper C declaration
21363global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21364
21365# Transform the output of nm in a C name address pair
21366global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21367
21368# This is the shared library runtime path variable.
21369runpath_var=$runpath_var
21370
21371# This is the shared library path variable.
21372shlibpath_var=$shlibpath_var
21373
21374# Is shlibpath searched before the hard-coded library search path?
21375shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21376
21377# How to hardcode a shared library path into an executable.
21378hardcode_action=$hardcode_action_CXX
21379
21380# Whether we should hardcode library paths into libraries.
21381hardcode_into_libs=$hardcode_into_libs
21382
21383# Flag to hardcode \$libdir into a binary during linking.
21384# This must work even if \$libdir does not exist.
21385hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21386
21387# If ld is used when linking, flag to hardcode \$libdir into
21388# a binary during linking. This must work even if \$libdir does
21389# not exist.
21390hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21391
21392# Whether we need a single -rpath flag with a separated argument.
21393hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21394
21395# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21396# resulting binary.
21397hardcode_direct=$hardcode_direct_CXX
21398
21399# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21400# resulting binary.
21401hardcode_minus_L=$hardcode_minus_L_CXX
21402
21403# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21404# the resulting binary.
21405hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21406
21407# Set to yes if building a shared library automatically hardcodes DIR into the library
21408# and all subsequent libraries and executables linked against it.
21409hardcode_automatic=$hardcode_automatic_CXX
21410
21411# Variables whose values should be saved in libtool wrapper scripts and
21412# restored at relink time.
21413variables_saved_for_relink="$variables_saved_for_relink"
21414
21415# Whether libtool must link a program against all its dependency libraries.
21416link_all_deplibs=$link_all_deplibs_CXX
21417
21418# Compile-time system search path for libraries
21419sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21420
21421# Run-time system search path for libraries
21422sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21423
21424# Fix the shell variable \$srcfile for the compiler.
21425fix_srcfile_path="$fix_srcfile_path_CXX"
21426
21427# Set to yes if exported symbols are required.
21428always_export_symbols=$always_export_symbols_CXX
21429
21430# The commands to list exported symbols.
21431export_symbols_cmds=$lt_export_symbols_cmds_CXX
21432
21433# The commands to extract the exported symbol list from a shared archive.
21434extract_expsyms_cmds=$lt_extract_expsyms_cmds
21435
21436# Symbols that should not be listed in the preloaded symbols.
21437exclude_expsyms=$lt_exclude_expsyms_CXX
21438
21439# Symbols that must always be exported.
21440include_expsyms=$lt_include_expsyms_CXX
21441
21442# ### END LIBTOOL TAG CONFIG: $tagname
21443
21444__EOF__
21445
21446
21447else
21448 # If there is no Makefile yet, we rely on a make rule to execute
21449 # `config.status --recheck' to rerun these tests and create the
21450 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021451 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21452 if test -f "$ltmain_in"; then
21453 test -f Makefile && make "$ltmain"
21454 fi
John Criswell47fdd832003-07-14 16:52:07 +000021455fi
21456
21457
21458ac_ext=c
21459ac_cpp='$CPP $CPPFLAGS'
21460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21462ac_compiler_gnu=$ac_cv_c_compiler_gnu
21463
21464CC=$lt_save_CC
21465LDCXX=$LD
21466LD=$lt_save_LD
21467GCC=$lt_save_GCC
21468with_gnu_ldcxx=$with_gnu_ld
21469with_gnu_ld=$lt_save_with_gnu_ld
21470lt_cv_path_LDCXX=$lt_cv_path_LD
21471lt_cv_path_LD=$lt_save_path_LD
21472lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21473lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21474
21475 else
21476 tagname=""
21477 fi
21478 ;;
21479
21480 F77)
21481 if test -n "$F77" && test "X$F77" != "Xno"; then
21482
21483ac_ext=f
21484ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21485ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21486ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21487
21488
21489archive_cmds_need_lc_F77=no
21490allow_undefined_flag_F77=
21491always_export_symbols_F77=no
21492archive_expsym_cmds_F77=
21493export_dynamic_flag_spec_F77=
21494hardcode_direct_F77=no
21495hardcode_libdir_flag_spec_F77=
21496hardcode_libdir_flag_spec_ld_F77=
21497hardcode_libdir_separator_F77=
21498hardcode_minus_L_F77=no
21499hardcode_automatic_F77=no
21500module_cmds_F77=
21501module_expsym_cmds_F77=
21502link_all_deplibs_F77=unknown
21503old_archive_cmds_F77=$old_archive_cmds
21504no_undefined_flag_F77=
21505whole_archive_flag_spec_F77=
21506enable_shared_with_static_runtimes_F77=no
21507
21508# Source file extension for f77 test sources.
21509ac_ext=f
21510
21511# Object file extension for compiled f77 test sources.
21512objext=o
21513objext_F77=$objext
21514
21515# Code to be used in simple compile tests
21516lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21517
21518# Code to be used in simple link tests
21519lt_simple_link_test_code=" program t\n end\n"
21520
21521# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21522
21523# If no C compiler was specified, use CC.
21524LTCC=${LTCC-"$CC"}
21525
Reid Spencera773bd52006-08-04 18:18:08 +000021526# If no C compiler flags were specified, use CFLAGS.
21527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21528
John Criswell47fdd832003-07-14 16:52:07 +000021529# Allow CC to be a program name with arguments.
21530compiler=$CC
21531
21532
Reid Spencera773bd52006-08-04 18:18:08 +000021533# save warnings/boilerplate of simple test code
21534ac_outfile=conftest.$ac_objext
21535printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21536eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21537_lt_compiler_boilerplate=`cat conftest.err`
21538$rm conftest*
21539
21540ac_outfile=conftest.$ac_objext
21541printf "$lt_simple_link_test_code" >conftest.$ac_ext
21542eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21543_lt_linker_boilerplate=`cat conftest.err`
21544$rm conftest*
21545
21546
John Criswell47fdd832003-07-14 16:52:07 +000021547# Allow CC to be a program name with arguments.
21548lt_save_CC="$CC"
21549CC=${F77-"f77"}
21550compiler=$CC
21551compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021552for cc_temp in $compiler""; do
21553 case $cc_temp in
21554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21556 \-*) ;;
21557 *) break;;
21558 esac
21559done
21560cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021561
John Criswell47fdd832003-07-14 16:52:07 +000021562
Reid Spencera773bd52006-08-04 18:18:08 +000021563{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21564echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21565{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21566echo "${ECHO_T}$can_build_shared" >&6; }
21567
21568{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21569echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021570test "$can_build_shared" = "no" && enable_shared=no
21571
21572# On AIX, shared libraries and static libraries use the same namespace, and
21573# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021574case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021575aix3*)
21576 test "$enable_shared" = yes && enable_static=no
21577 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021578 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021579 postinstall_cmds='$RANLIB $lib'
21580 fi
21581 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021582aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021583 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21584 test "$enable_shared" = yes && enable_static=no
21585 fi
John Criswell47fdd832003-07-14 16:52:07 +000021586 ;;
21587esac
Reid Spencera773bd52006-08-04 18:18:08 +000021588{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21589echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021590
Reid Spencera773bd52006-08-04 18:18:08 +000021591{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21592echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021593# Make sure either enable_shared or enable_static is yes.
21594test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021595{ echo "$as_me:$LINENO: result: $enable_static" >&5
21596echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021597
21598GCC_F77="$G77"
21599LD_F77="$LD"
21600
21601lt_prog_compiler_wl_F77=
21602lt_prog_compiler_pic_F77=
21603lt_prog_compiler_static_F77=
21604
Reid Spencera773bd52006-08-04 18:18:08 +000021605{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021607
21608 if test "$GCC" = yes; then
21609 lt_prog_compiler_wl_F77='-Wl,'
21610 lt_prog_compiler_static_F77='-static'
21611
21612 case $host_os in
21613 aix*)
21614 # All AIX code is PIC.
21615 if test "$host_cpu" = ia64; then
21616 # AIX 5 now supports IA64 processor
21617 lt_prog_compiler_static_F77='-Bstatic'
21618 fi
21619 ;;
21620
21621 amigaos*)
21622 # FIXME: we need at least 68020 code to build shared libraries, but
21623 # adding the `-m68020' flag to GCC prevents building anything better,
21624 # like `-m68040'.
21625 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21626 ;;
21627
21628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21629 # PIC is the default for these OSes.
21630 ;;
21631
21632 mingw* | pw32* | os2*)
21633 # This hack is so that the source file can tell whether it is being
21634 # built for inclusion in a dll (and should export symbols for example).
21635 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21636 ;;
21637
21638 darwin* | rhapsody*)
21639 # PIC is the default on this platform
21640 # Common symbols not allowed in MH_DYLIB files
21641 lt_prog_compiler_pic_F77='-fno-common'
21642 ;;
21643
Reid Spencera773bd52006-08-04 18:18:08 +000021644 interix3*)
21645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21646 # Instead, we relocate shared libraries at runtime.
21647 ;;
21648
John Criswell47fdd832003-07-14 16:52:07 +000021649 msdosdjgpp*)
21650 # Just because we use GCC doesn't mean we suddenly get shared libraries
21651 # on systems that don't support them.
21652 lt_prog_compiler_can_build_shared_F77=no
21653 enable_shared=no
21654 ;;
21655
21656 sysv4*MP*)
21657 if test -d /usr/nec; then
21658 lt_prog_compiler_pic_F77=-Kconform_pic
21659 fi
21660 ;;
21661
21662 hpux*)
21663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21664 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021665 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021666 hppa*64*|ia64*)
21667 # +Z the default
21668 ;;
21669 *)
21670 lt_prog_compiler_pic_F77='-fPIC'
21671 ;;
21672 esac
21673 ;;
21674
21675 *)
21676 lt_prog_compiler_pic_F77='-fPIC'
21677 ;;
21678 esac
21679 else
21680 # PORTME Check for flag to pass linker flags through the system compiler.
21681 case $host_os in
21682 aix*)
21683 lt_prog_compiler_wl_F77='-Wl,'
21684 if test "$host_cpu" = ia64; then
21685 # AIX 5 now supports IA64 processor
21686 lt_prog_compiler_static_F77='-Bstatic'
21687 else
21688 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21689 fi
21690 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021691 darwin*)
21692 # PIC is the default on this platform
21693 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021694 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021695 xlc*)
21696 lt_prog_compiler_pic_F77='-qnocommon'
21697 lt_prog_compiler_wl_F77='-Wl,'
21698 ;;
21699 esac
21700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021701
21702 mingw* | pw32* | os2*)
21703 # This hack is so that the source file can tell whether it is being
21704 # built for inclusion in a dll (and should export symbols for example).
21705 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21706 ;;
21707
21708 hpux9* | hpux10* | hpux11*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21711 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021712 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021713 hppa*64*|ia64*)
21714 # +Z the default
21715 ;;
21716 *)
21717 lt_prog_compiler_pic_F77='+Z'
21718 ;;
21719 esac
21720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21721 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21722 ;;
21723
21724 irix5* | irix6* | nonstopux*)
21725 lt_prog_compiler_wl_F77='-Wl,'
21726 # PIC (with -KPIC) is the default.
21727 lt_prog_compiler_static_F77='-non_shared'
21728 ;;
21729
21730 newsos6)
21731 lt_prog_compiler_pic_F77='-KPIC'
21732 lt_prog_compiler_static_F77='-Bstatic'
21733 ;;
21734
21735 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021736 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021738 lt_prog_compiler_wl_F77='-Wl,'
21739 lt_prog_compiler_pic_F77='-KPIC'
21740 lt_prog_compiler_static_F77='-static'
21741 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021742 pgcc* | pgf77* | pgf90* | pgf95*)
21743 # Portland Group compilers (*not* the Pentium gcc compiler,
21744 # which looks to be a dead project)
21745 lt_prog_compiler_wl_F77='-Wl,'
21746 lt_prog_compiler_pic_F77='-fpic'
21747 lt_prog_compiler_static_F77='-Bstatic'
21748 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021749 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021750 lt_prog_compiler_wl_F77='-Wl,'
21751 # All Alpha code is PIC.
21752 lt_prog_compiler_static_F77='-non_shared'
21753 ;;
21754 esac
21755 ;;
21756
21757 osf3* | osf4* | osf5*)
21758 lt_prog_compiler_wl_F77='-Wl,'
21759 # All OSF/1 code is PIC.
21760 lt_prog_compiler_static_F77='-non_shared'
21761 ;;
21762
John Criswell47fdd832003-07-14 16:52:07 +000021763 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021764 lt_prog_compiler_pic_F77='-KPIC'
21765 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021766 case $cc_basename in
21767 f77* | f90* | f95*)
21768 lt_prog_compiler_wl_F77='-Qoption ld ';;
21769 *)
21770 lt_prog_compiler_wl_F77='-Wl,';;
21771 esac
John Criswell47fdd832003-07-14 16:52:07 +000021772 ;;
21773
21774 sunos4*)
21775 lt_prog_compiler_wl_F77='-Qoption ld '
21776 lt_prog_compiler_pic_F77='-PIC'
21777 lt_prog_compiler_static_F77='-Bstatic'
21778 ;;
21779
Reid Spencera773bd52006-08-04 18:18:08 +000021780 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021781 lt_prog_compiler_wl_F77='-Wl,'
21782 lt_prog_compiler_pic_F77='-KPIC'
21783 lt_prog_compiler_static_F77='-Bstatic'
21784 ;;
21785
21786 sysv4*MP*)
21787 if test -d /usr/nec ;then
21788 lt_prog_compiler_pic_F77='-Kconform_pic'
21789 lt_prog_compiler_static_F77='-Bstatic'
21790 fi
21791 ;;
21792
Reid Spencera773bd52006-08-04 18:18:08 +000021793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21794 lt_prog_compiler_wl_F77='-Wl,'
21795 lt_prog_compiler_pic_F77='-KPIC'
21796 lt_prog_compiler_static_F77='-Bstatic'
21797 ;;
21798
21799 unicos*)
21800 lt_prog_compiler_wl_F77='-Wl,'
21801 lt_prog_compiler_can_build_shared_F77=no
21802 ;;
21803
John Criswell47fdd832003-07-14 16:52:07 +000021804 uts4*)
21805 lt_prog_compiler_pic_F77='-pic'
21806 lt_prog_compiler_static_F77='-Bstatic'
21807 ;;
21808
21809 *)
21810 lt_prog_compiler_can_build_shared_F77=no
21811 ;;
21812 esac
21813 fi
21814
Reid Spencera773bd52006-08-04 18:18:08 +000021815{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21816echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021817
21818#
21819# Check to make sure the PIC flag actually works.
21820#
21821if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021822
Reid Spencera773bd52006-08-04 18:18:08 +000021823{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21824echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021825if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827else
21828 lt_prog_compiler_pic_works_F77=no
21829 ac_outfile=conftest.$ac_objext
21830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21831 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21832 # Insert the option either (1) after the last *FLAGS variable, or
21833 # (2) before a word containing "conftest.", or (3) at the end.
21834 # Note that $ac_compile itself does not contain backslashes and begins
21835 # with a dollar sign (not a hyphen), so the echo should work correctly.
21836 # The option is referenced via a variable to avoid confusing sed.
21837 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21840 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000021841 (eval echo "\"\$as_me:21841: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021842 (eval "$lt_compile" 2>conftest.err)
21843 ac_status=$?
21844 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000021845 echo "$as_me:21845: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021846 if (exit $ac_status) && test -s "$ac_outfile"; then
21847 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021848 # So say no if there are warnings other than the usual output.
21849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021852 lt_prog_compiler_pic_works_F77=yes
21853 fi
21854 fi
21855 $rm conftest*
21856
21857fi
Reid Spencera773bd52006-08-04 18:18:08 +000021858{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21859echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021860
21861if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21862 case $lt_prog_compiler_pic_F77 in
21863 "" | " "*) ;;
21864 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21865 esac
21866else
21867 lt_prog_compiler_pic_F77=
21868 lt_prog_compiler_can_build_shared_F77=no
21869fi
21870
21871fi
Reid Spencera773bd52006-08-04 18:18:08 +000021872case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021873 # For platforms which do not support PIC, -DPIC is meaningless:
21874 *djgpp*)
21875 lt_prog_compiler_pic_F77=
21876 ;;
21877 *)
21878 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21879 ;;
21880esac
21881
Reid Spencera773bd52006-08-04 18:18:08 +000021882#
21883# Check to make sure the static flag actually works.
21884#
21885wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21886{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21887echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21888if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891 lt_prog_compiler_static_works_F77=no
21892 save_LDFLAGS="$LDFLAGS"
21893 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21894 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21896 # The linker can only warn and ignore the option if not recognized
21897 # So say no if there are warnings
21898 if test -s conftest.err; then
21899 # Append any errors to the config.log.
21900 cat conftest.err 1>&5
21901 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21903 if diff conftest.exp conftest.er2 >/dev/null; then
21904 lt_prog_compiler_static_works_F77=yes
21905 fi
21906 else
21907 lt_prog_compiler_static_works_F77=yes
21908 fi
21909 fi
21910 $rm conftest*
21911 LDFLAGS="$save_LDFLAGS"
21912
21913fi
21914{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21915echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21916
21917if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21918 :
21919else
21920 lt_prog_compiler_static_F77=
21921fi
21922
21923
21924{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21925echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021926if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928else
21929 lt_cv_prog_compiler_c_o_F77=no
21930 $rm -r conftest 2>/dev/null
21931 mkdir conftest
21932 cd conftest
21933 mkdir out
21934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21935
John Criswell47fdd832003-07-14 16:52:07 +000021936 lt_compiler_flag="-o out/conftest2.$ac_objext"
21937 # Insert the option either (1) after the last *FLAGS variable, or
21938 # (2) before a word containing "conftest.", or (3) at the end.
21939 # Note that $ac_compile itself does not contain backslashes and begins
21940 # with a dollar sign (not a hyphen), so the echo should work correctly.
21941 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21944 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000021945 (eval echo "\"\$as_me:21945: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021946 (eval "$lt_compile" 2>out/conftest.err)
21947 ac_status=$?
21948 cat out/conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000021949 echo "$as_me:21949: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21951 then
21952 # The compiler can only warn and ignore the option if not recognized
21953 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021954 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021957 lt_cv_prog_compiler_c_o_F77=yes
21958 fi
21959 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021960 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021961 $rm conftest*
21962 # SGI C++ compiler will create directory out/ii_files/ for
21963 # template instantiation
21964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21965 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021966 cd ..
21967 rmdir conftest
21968 $rm conftest*
21969
21970fi
Reid Spencera773bd52006-08-04 18:18:08 +000021971{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21972echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021973
21974
21975hard_links="nottested"
21976if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21977 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021978 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21979echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021980 hard_links=yes
21981 $rm conftest*
21982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21983 touch conftest.a
21984 ln conftest.a conftest.b 2>&5 || hard_links=no
21985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021986 { echo "$as_me:$LINENO: result: $hard_links" >&5
21987echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021988 if test "$hard_links" = no; then
21989 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21990echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21991 need_locks=warn
21992 fi
21993else
21994 need_locks=no
21995fi
21996
Reid Spencera773bd52006-08-04 18:18:08 +000021997{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21998echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021999
22000 runpath_var=
22001 allow_undefined_flag_F77=
22002 enable_shared_with_static_runtimes_F77=no
22003 archive_cmds_F77=
22004 archive_expsym_cmds_F77=
22005 old_archive_From_new_cmds_F77=
22006 old_archive_from_expsyms_cmds_F77=
22007 export_dynamic_flag_spec_F77=
22008 whole_archive_flag_spec_F77=
22009 thread_safe_flag_spec_F77=
22010 hardcode_libdir_flag_spec_F77=
22011 hardcode_libdir_flag_spec_ld_F77=
22012 hardcode_libdir_separator_F77=
22013 hardcode_direct_F77=no
22014 hardcode_minus_L_F77=no
22015 hardcode_shlibpath_var_F77=unsupported
22016 link_all_deplibs_F77=unknown
22017 hardcode_automatic_F77=no
22018 module_cmds_F77=
22019 module_expsym_cmds_F77=
22020 always_export_symbols_F77=no
22021 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22022 # include_expsyms should be a list of space-separated symbols to be *always*
22023 # included in the symbol list
22024 include_expsyms_F77=
22025 # exclude_expsyms can be an extended regexp of symbols to exclude
22026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22028 # as well as any symbol that contains `d'.
22029 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22031 # platforms (ab)use it in PIC code, but their linkers get confused if
22032 # the symbol is explicitly referenced. Since portable code cannot
22033 # rely on this symbol name, it's probably fine to never include it in
22034 # preloaded symbol tables.
22035 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022036 # Just being paranoid about ensuring that cc_basename is set.
22037 for cc_temp in $compiler""; do
22038 case $cc_temp in
22039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22041 \-*) ;;
22042 *) break;;
22043 esac
22044done
22045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022046
22047 case $host_os in
22048 cygwin* | mingw* | pw32*)
22049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22050 # When not using gcc, we currently assume that we are using
22051 # Microsoft Visual C++.
22052 if test "$GCC" != yes; then
22053 with_gnu_ld=no
22054 fi
22055 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022056 interix*)
22057 # we just hope/assume this is gcc and not c89 (= MSVC++)
22058 with_gnu_ld=yes
22059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022060 openbsd*)
22061 with_gnu_ld=no
22062 ;;
22063 esac
22064
22065 ld_shlibs_F77=yes
22066 if test "$with_gnu_ld" = yes; then
22067 # If archive_cmds runs LD, not CC, wlarc should be empty
22068 wlarc='${wl}'
22069
Reid Spencera773bd52006-08-04 18:18:08 +000022070 # Set some defaults for GNU ld with shared library support. These
22071 # are reset later if shared libraries are not supported. Putting them
22072 # here allows them to be overridden if necessary.
22073 runpath_var=LD_RUN_PATH
22074 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22075 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22076 # ancient GNU ld didn't support --whole-archive et. al.
22077 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22078 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22079 else
22080 whole_archive_flag_spec_F77=
22081 fi
22082 supports_anon_versioning=no
22083 case `$LD -v 2>/dev/null` in
22084 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22085 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22086 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22087 *\ 2.11.*) ;; # other 2.11 versions
22088 *) supports_anon_versioning=yes ;;
22089 esac
22090
John Criswell47fdd832003-07-14 16:52:07 +000022091 # See if GNU ld supports shared libraries.
22092 case $host_os in
22093 aix3* | aix4* | aix5*)
22094 # On AIX/PPC, the GNU linker is very broken
22095 if test "$host_cpu" != ia64; then
22096 ld_shlibs_F77=no
22097 cat <<EOF 1>&2
22098
22099*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22100*** to be unable to reliably create shared libraries on AIX.
22101*** Therefore, libtool is disabling shared libraries support. If you
22102*** really care for shared libraries, you may want to modify your PATH
22103*** so that a non-GNU linker is found, and then restart.
22104
22105EOF
22106 fi
22107 ;;
22108
22109 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022110 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 +000022111 hardcode_libdir_flag_spec_F77='-L$libdir'
22112 hardcode_minus_L_F77=yes
22113
22114 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22115 # that the semantics of dynamic libraries on AmigaOS, at least up
22116 # to version 4, is to share data among multiple programs linked
22117 # with the same dynamic library. Since this doesn't match the
22118 # behavior of shared libraries on other platforms, we can't use
22119 # them.
22120 ld_shlibs_F77=no
22121 ;;
22122
22123 beos*)
22124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22125 allow_undefined_flag_F77=unsupported
22126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22127 # support --undefined. This deserves some investigation. FIXME
22128 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22129 else
22130 ld_shlibs_F77=no
22131 fi
22132 ;;
22133
22134 cygwin* | mingw* | pw32*)
22135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22136 # as there is no search path for DLLs.
22137 hardcode_libdir_flag_spec_F77='-L$libdir'
22138 allow_undefined_flag_F77=unsupported
22139 always_export_symbols_F77=no
22140 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022141 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 +000022142
22143 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022144 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 +000022145 # If the export-symbols file already is a .def file (1st line
22146 # is EXPORTS), use it as is; otherwise, prepend...
22147 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22148 cp $export_symbols $output_objdir/$soname.def;
22149 else
22150 echo EXPORTS > $output_objdir/$soname.def;
22151 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022152 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022153 $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 +000022154 else
Reid Spencera773bd52006-08-04 18:18:08 +000022155 ld_shlibs_F77=no
22156 fi
22157 ;;
22158
22159 interix3*)
22160 hardcode_direct_F77=no
22161 hardcode_shlibpath_var_F77=no
22162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22163 export_dynamic_flag_spec_F77='${wl}-E'
22164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22165 # Instead, shared libraries are loaded at an image base (0x10000000 by
22166 # default) and relocated if they conflict, which is a slow very memory
22167 # consuming and fragmenting process. To avoid this, we pick a random,
22168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22170 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'
22171 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'
22172 ;;
22173
22174 linux*)
22175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22176 tmp_addflag=
22177 case $cc_basename,$host_cpu in
22178 pgcc*) # Portland Group C compiler
22179 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'
22180 tmp_addflag=' $pic_flag'
22181 ;;
22182 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22183 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'
22184 tmp_addflag=' $pic_flag -Mnomain' ;;
22185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22186 tmp_addflag=' -i_dynamic' ;;
22187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22188 tmp_addflag=' -i_dynamic -nofor_main' ;;
22189 ifc* | ifort*) # Intel Fortran compiler
22190 tmp_addflag=' -nofor_main' ;;
22191 esac
22192 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22193
22194 if test $supports_anon_versioning = yes; then
22195 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22197 $echo "local: *; };" >> $output_objdir/$libname.ver~
22198 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22199 fi
22200 else
22201 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022202 fi
22203 ;;
22204
22205 netbsd*)
22206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22207 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22208 wlarc=
22209 else
22210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22211 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22212 fi
22213 ;;
22214
Reid Spencera773bd52006-08-04 18:18:08 +000022215 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22217 ld_shlibs_F77=no
22218 cat <<EOF 1>&2
22219
22220*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22221*** create shared libraries on Solaris systems. Therefore, libtool
22222*** is disabling shared libraries support. We urge you to upgrade GNU
22223*** binutils to release 2.9.1 or newer. Another option is to modify
22224*** your PATH or compiler configuration so that the native linker is
22225*** used, and then restart.
22226
22227EOF
22228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22231 else
22232 ld_shlibs_F77=no
22233 fi
22234 ;;
22235
Reid Spencera773bd52006-08-04 18:18:08 +000022236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22237 case `$LD -v 2>&1` in
22238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22239 ld_shlibs_F77=no
22240 cat <<_LT_EOF 1>&2
22241
22242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22243*** reliably create shared libraries on SCO systems. Therefore, libtool
22244*** is disabling shared libraries support. We urge you to upgrade GNU
22245*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22246*** your PATH or compiler configuration so that the native linker is
22247*** used, and then restart.
22248
22249_LT_EOF
22250 ;;
22251 *)
22252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22253 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22256 else
22257 ld_shlibs_F77=no
22258 fi
22259 ;;
22260 esac
22261 ;;
22262
John Criswell47fdd832003-07-14 16:52:07 +000022263 sunos4*)
22264 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 wlarc=
22266 hardcode_direct_F77=yes
22267 hardcode_shlibpath_var_F77=no
22268 ;;
22269
22270 *)
22271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22272 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22273 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22274 else
22275 ld_shlibs_F77=no
22276 fi
22277 ;;
22278 esac
22279
Reid Spencera773bd52006-08-04 18:18:08 +000022280 if test "$ld_shlibs_F77" = no; then
22281 runpath_var=
22282 hardcode_libdir_flag_spec_F77=
22283 export_dynamic_flag_spec_F77=
22284 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022285 fi
22286 else
22287 # PORTME fill in a description of your system's linker (not GNU ld)
22288 case $host_os in
22289 aix3*)
22290 allow_undefined_flag_F77=unsupported
22291 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022292 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 +000022293 # Note: this linker hardcodes the directories in LIBPATH if there
22294 # are no directories specified by -L.
22295 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022296 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022297 # Neither direct hardcoding nor static linking is supported with a
22298 # broken collect2.
22299 hardcode_direct_F77=unsupported
22300 fi
22301 ;;
22302
22303 aix4* | aix5*)
22304 if test "$host_cpu" = ia64; then
22305 # On IA64, the linker does run time linking by default, so we don't
22306 # have to do anything special.
22307 aix_use_runtimelinking=no
22308 exp_sym_flag='-Bexport'
22309 no_entry_flag=""
22310 else
22311 # If we're using GNU nm, then we don't want the "-C" option.
22312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22314 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'
22315 else
22316 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'
22317 fi
22318 aix_use_runtimelinking=no
22319
22320 # Test if we are trying to use run time linking or normal
22321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22322 # need to do runtime linking.
22323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22324 for ld_flag in $LDFLAGS; do
22325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22326 aix_use_runtimelinking=yes
22327 break
22328 fi
22329 done
Reid Spencera773bd52006-08-04 18:18:08 +000022330 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022331 esac
22332
22333 exp_sym_flag='-bexport'
22334 no_entry_flag='-bnoentry'
22335 fi
22336
22337 # When large executables or shared objects are built, AIX ld can
22338 # have problems creating the table of contents. If linking a library
22339 # or program results in "error TOC overflow" add -mminimal-toc to
22340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22342
22343 archive_cmds_F77=''
22344 hardcode_direct_F77=yes
22345 hardcode_libdir_separator_F77=':'
22346 link_all_deplibs_F77=yes
22347
22348 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022349 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022350 # We only want to do this on AIX 4.2 and lower, the check
22351 # below for broken collect2 doesn't work under 4.3+
22352 collect2name=`${CC} -print-prog-name=collect2`
22353 if test -f "$collect2name" && \
22354 strings "$collect2name" | grep resolve_lib_name >/dev/null
22355 then
22356 # We have reworked collect2
22357 hardcode_direct_F77=yes
22358 else
22359 # We have old collect2
22360 hardcode_direct_F77=unsupported
22361 # It fails to find uninstalled libraries when the uninstalled
22362 # path is not listed in the libpath. Setting hardcode_minus_L
22363 # to unsupported forces relinking
22364 hardcode_minus_L_F77=yes
22365 hardcode_libdir_flag_spec_F77='-L$libdir'
22366 hardcode_libdir_separator_F77=
22367 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022368 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022369 esac
22370 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022371 if test "$aix_use_runtimelinking" = yes; then
22372 shared_flag="$shared_flag "'${wl}-G'
22373 fi
John Criswell47fdd832003-07-14 16:52:07 +000022374 else
22375 # not using gcc
22376 if test "$host_cpu" = ia64; then
22377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22378 # chokes on -Wl,-G. The following line is correct:
22379 shared_flag='-G'
22380 else
Reid Spencera773bd52006-08-04 18:18:08 +000022381 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022382 shared_flag='${wl}-G'
22383 else
22384 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022385 fi
John Criswell47fdd832003-07-14 16:52:07 +000022386 fi
22387 fi
22388
22389 # It seems that -bexpall does not export symbols beginning with
22390 # underscore (_), so it is better to generate a list of symbols to export.
22391 always_export_symbols_F77=yes
22392 if test "$aix_use_runtimelinking" = yes; then
22393 # Warning - without using the other runtime loading flags (-brtl),
22394 # -berok will link without error, but may produce a broken library.
22395 allow_undefined_flag_F77='-berok'
22396 # Determine the default libpath from the value encoded in an empty executable.
22397 cat >conftest.$ac_ext <<_ACEOF
22398 program main
22399
22400 end
22401_ACEOF
22402rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022403if { (ac_try="$ac_link"
22404case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407esac
22408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022415 (exit $ac_status); } &&
22416 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22417 { (case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420esac
22421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_try") 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; } &&
22426 { ac_try='test -s conftest$ac_exeext'
22427 { (case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430esac
22431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_try") 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022436
22437aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22438}'`
22439# Check for a 64-bit object if we didn't find anything.
22440if 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; }
22441}'`; fi
22442else
22443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022444sed 's/^/| /' conftest.$ac_ext >&5
22445
Reid Spencera773bd52006-08-04 18:18:08 +000022446
John Criswell47fdd832003-07-14 16:52:07 +000022447fi
Reid Spencera773bd52006-08-04 18:18:08 +000022448
Bill Wendlingebcceee2009-04-18 11:20:33 +000022449rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022450 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022451if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22452
22453 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022454 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 +000022455 else
22456 if test "$host_cpu" = ia64; then
22457 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22458 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022459 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 +000022460 else
22461 # Determine the default libpath from the value encoded in an empty executable.
22462 cat >conftest.$ac_ext <<_ACEOF
22463 program main
22464
22465 end
22466_ACEOF
22467rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022468if { (ac_try="$ac_link"
22469case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022476 grep -v '^ *+' conftest.er1 >conftest.err
22477 rm -f conftest.er1
22478 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022480 (exit $ac_status); } &&
22481 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22482 { (case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485esac
22486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_try") 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest$ac_exeext'
22492 { (case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22495esac
22496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_try") 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022501
22502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22503}'`
22504# Check for a 64-bit object if we didn't find anything.
22505if 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; }
22506}'`; fi
22507else
22508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022509sed 's/^/| /' conftest.$ac_ext >&5
22510
Reid Spencera773bd52006-08-04 18:18:08 +000022511
John Criswell47fdd832003-07-14 16:52:07 +000022512fi
Reid Spencera773bd52006-08-04 18:18:08 +000022513
Bill Wendlingebcceee2009-04-18 11:20:33 +000022514rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022515 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022516if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22517
22518 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22519 # Warning - without using the other run time loading flags,
22520 # -berok will link without error, but may produce a broken library.
22521 no_undefined_flag_F77=' ${wl}-bernotok'
22522 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022523 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022524 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022525 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022526 # This is similar to how AIX traditionally builds its shared libraries.
22527 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 +000022528 fi
22529 fi
22530 ;;
22531
22532 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022533 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 +000022534 hardcode_libdir_flag_spec_F77='-L$libdir'
22535 hardcode_minus_L_F77=yes
22536 # see comment about different semantics on the GNU ld section
22537 ld_shlibs_F77=no
22538 ;;
22539
Reid Spencer2706f8c2004-09-19 23:53:36 +000022540 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022541 export_dynamic_flag_spec_F77=-rdynamic
22542 ;;
22543
22544 cygwin* | mingw* | pw32*)
22545 # When not using gcc, we currently assume that we are using
22546 # Microsoft Visual C++.
22547 # hardcode_libdir_flag_spec is actually meaningless, as there is
22548 # no search path for DLLs.
22549 hardcode_libdir_flag_spec_F77=' '
22550 allow_undefined_flag_F77=unsupported
22551 # Tell ltmain to make .lib files, not .a files.
22552 libext=lib
22553 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022554 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022555 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022556 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 +000022557 # The linker will automatically build a .lib file if we build a DLL.
22558 old_archive_From_new_cmds_F77='true'
22559 # FIXME: Should let the user specify the lib program.
22560 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022561 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022562 enable_shared_with_static_runtimes_F77=yes
22563 ;;
22564
22565 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022566 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022567 rhapsody* | darwin1.[012])
22568 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22569 ;;
22570 *) # Darwin 1.3 on
22571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22572 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22573 else
22574 case ${MACOSX_DEPLOYMENT_TARGET} in
22575 10.[012])
22576 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22577 ;;
22578 10.*)
22579 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22580 ;;
22581 esac
22582 fi
22583 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022584 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022585 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022586 hardcode_direct_F77=no
22587 hardcode_automatic_F77=yes
22588 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022590 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022591 if test "$GCC" = yes ; then
22592 output_verbose_link_cmd='echo'
22593 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22594 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022595 # 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 +000022596 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}'
22597 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 +000022598 else
Reid Spencera773bd52006-08-04 18:18:08 +000022599 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 xlc*)
22601 output_verbose_link_cmd='echo'
22602 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22603 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022604 # 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 +000022605 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}'
22606 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 +000022607 ;;
22608 *)
22609 ld_shlibs_F77=no
22610 ;;
22611 esac
John Criswell47fdd832003-07-14 16:52:07 +000022612 fi
22613 ;;
22614
22615 dgux*)
22616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22617 hardcode_libdir_flag_spec_F77='-L$libdir'
22618 hardcode_shlibpath_var_F77=no
22619 ;;
22620
22621 freebsd1*)
22622 ld_shlibs_F77=no
22623 ;;
22624
22625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22626 # support. Future versions do this automatically, but an explicit c++rt0.o
22627 # does not break anything, and helps significantly (at the cost of a little
22628 # extra space).
22629 freebsd2.2*)
22630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22634 ;;
22635
22636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22637 freebsd2*)
22638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22639 hardcode_direct_F77=yes
22640 hardcode_minus_L_F77=yes
22641 hardcode_shlibpath_var_F77=no
22642 ;;
22643
22644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022645 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22647 hardcode_libdir_flag_spec_F77='-R$libdir'
22648 hardcode_direct_F77=yes
22649 hardcode_shlibpath_var_F77=no
22650 ;;
22651
22652 hpux9*)
22653 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022654 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 +000022655 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022656 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 +000022657 fi
22658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22659 hardcode_libdir_separator_F77=:
22660 hardcode_direct_F77=yes
22661
22662 # hardcode_minus_L: Not really in the search PATH,
22663 # but as the default location of the library.
22664 hardcode_minus_L_F77=yes
22665 export_dynamic_flag_spec_F77='${wl}-E'
22666 ;;
22667
Reid Spencera773bd52006-08-04 18:18:08 +000022668 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022670 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22671 else
22672 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22673 fi
22674 if test "$with_gnu_ld" = no; then
22675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22676 hardcode_libdir_separator_F77=:
22677
22678 hardcode_direct_F77=yes
22679 export_dynamic_flag_spec_F77='${wl}-E'
22680
22681 # hardcode_minus_L: Not really in the search PATH,
22682 # but as the default location of the library.
22683 hardcode_minus_L_F77=yes
22684 fi
22685 ;;
22686
22687 hpux11*)
22688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22689 case $host_cpu in
22690 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022691 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022693 ia64*)
22694 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022696 *)
22697 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22698 ;;
22699 esac
22700 else
Reid Spencera773bd52006-08-04 18:18:08 +000022701 case $host_cpu in
22702 hppa*64*)
22703 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22704 ;;
22705 ia64*)
22706 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022707 ;;
22708 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022709 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 +000022710 ;;
22711 esac
22712 fi
22713 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22715 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022716
Reid Spencera773bd52006-08-04 18:18:08 +000022717 case $host_cpu in
22718 hppa*64*|ia64*)
22719 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22720 hardcode_direct_F77=no
22721 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022722 ;;
22723 *)
John Criswell47fdd832003-07-14 16:52:07 +000022724 hardcode_direct_F77=yes
22725 export_dynamic_flag_spec_F77='${wl}-E'
22726
22727 # hardcode_minus_L: Not really in the search PATH,
22728 # but as the default location of the library.
22729 hardcode_minus_L_F77=yes
22730 ;;
22731 esac
22732 fi
22733 ;;
22734
22735 irix5* | irix6* | nonstopux*)
22736 if test "$GCC" = yes; then
22737 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'
22738 else
22739 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'
22740 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22741 fi
22742 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22743 hardcode_libdir_separator_F77=:
22744 link_all_deplibs_F77=yes
22745 ;;
22746
22747 netbsd*)
22748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22749 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22750 else
22751 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22752 fi
22753 hardcode_libdir_flag_spec_F77='-R$libdir'
22754 hardcode_direct_F77=yes
22755 hardcode_shlibpath_var_F77=no
22756 ;;
22757
22758 newsos6)
22759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22760 hardcode_direct_F77=yes
22761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22762 hardcode_libdir_separator_F77=:
22763 hardcode_shlibpath_var_F77=no
22764 ;;
22765
22766 openbsd*)
22767 hardcode_direct_F77=yes
22768 hardcode_shlibpath_var_F77=no
22769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022771 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 +000022772 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22773 export_dynamic_flag_spec_F77='${wl}-E'
22774 else
22775 case $host_os in
22776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22777 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22778 hardcode_libdir_flag_spec_F77='-R$libdir'
22779 ;;
22780 *)
22781 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22783 ;;
22784 esac
22785 fi
22786 ;;
22787
22788 os2*)
22789 hardcode_libdir_flag_spec_F77='-L$libdir'
22790 hardcode_minus_L_F77=yes
22791 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022792 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 +000022793 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22794 ;;
22795
22796 osf3*)
22797 if test "$GCC" = yes; then
22798 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22799 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'
22800 else
22801 allow_undefined_flag_F77=' -expect_unresolved \*'
22802 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'
22803 fi
22804 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22805 hardcode_libdir_separator_F77=:
22806 ;;
22807
22808 osf4* | osf5*) # as osf3* with the addition of -msym flag
22809 if test "$GCC" = yes; then
22810 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22811 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'
22812 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22813 else
22814 allow_undefined_flag_F77=' -expect_unresolved \*'
22815 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 +000022816 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 +000022817 $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 +000022818
John Criswell47fdd832003-07-14 16:52:07 +000022819 # Both c and cxx compiler support -rpath directly
22820 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22821 fi
22822 hardcode_libdir_separator_F77=:
22823 ;;
22824
John Criswell47fdd832003-07-14 16:52:07 +000022825 solaris*)
22826 no_undefined_flag_F77=' -z text'
22827 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022828 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022829 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022830 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22831 $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 +000022832 else
Reid Spencera773bd52006-08-04 18:18:08 +000022833 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022834 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022835 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22836 $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 +000022837 fi
22838 hardcode_libdir_flag_spec_F77='-R$libdir'
22839 hardcode_shlibpath_var_F77=no
22840 case $host_os in
22841 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022842 *)
22843 # The compiler driver will combine linker options so we
22844 # cannot just pass the convience library names through
22845 # without $wl, iff we do not link with $LD.
22846 # Luckily, gcc supports the same syntax we need for Sun Studio.
22847 # Supported since Solaris 2.6 (maybe 2.5.1?)
22848 case $wlarc in
22849 '')
22850 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22851 *)
22852 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' ;;
22853 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022854 esac
22855 link_all_deplibs_F77=yes
22856 ;;
22857
22858 sunos4*)
22859 if test "x$host_vendor" = xsequent; then
22860 # Use $CC to link under sequent, because it throws in some extra .o
22861 # files that make .init and .fini sections work.
22862 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22863 else
22864 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22865 fi
22866 hardcode_libdir_flag_spec_F77='-L$libdir'
22867 hardcode_direct_F77=yes
22868 hardcode_minus_L_F77=yes
22869 hardcode_shlibpath_var_F77=no
22870 ;;
22871
22872 sysv4)
22873 case $host_vendor in
22874 sni)
22875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22876 hardcode_direct_F77=yes # is this really true???
22877 ;;
22878 siemens)
22879 ## LD is ld it makes a PLAMLIB
22880 ## CC just makes a GrossModule.
22881 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22882 reload_cmds_F77='$CC -r -o $output$reload_objs'
22883 hardcode_direct_F77=no
22884 ;;
22885 motorola)
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22888 ;;
22889 esac
22890 runpath_var='LD_RUN_PATH'
22891 hardcode_shlibpath_var_F77=no
22892 ;;
22893
22894 sysv4.3*)
22895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22896 hardcode_shlibpath_var_F77=no
22897 export_dynamic_flag_spec_F77='-Bexport'
22898 ;;
22899
22900 sysv4*MP*)
22901 if test -d /usr/nec; then
22902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22903 hardcode_shlibpath_var_F77=no
22904 runpath_var=LD_RUN_PATH
22905 hardcode_runpath_var=yes
22906 ld_shlibs_F77=yes
22907 fi
22908 ;;
22909
Reid Spencera773bd52006-08-04 18:18:08 +000022910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22911 no_undefined_flag_F77='${wl}-z,text'
22912 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022913 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022914 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022915
John Criswell47fdd832003-07-14 16:52:07 +000022916 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022917 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22918 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 +000022919 else
Reid Spencera773bd52006-08-04 18:18:08 +000022920 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22921 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 +000022922 fi
John Criswell47fdd832003-07-14 16:52:07 +000022923 ;;
22924
Reid Spencera773bd52006-08-04 18:18:08 +000022925 sysv5* | sco3.2v5* | sco5v6*)
22926 # Note: We can NOT use -z defs as we might desire, because we do not
22927 # link with -lc, and that would cause any symbols used from libc to
22928 # always be unresolved, which means just about no library would
22929 # ever link correctly. If we're not using GNU ld we use -z text
22930 # though, which does catch some bad symbols but isn't as heavy-handed
22931 # as -z defs.
22932 no_undefined_flag_F77='${wl}-z,text'
22933 allow_undefined_flag_F77='${wl}-z,nodefs'
22934 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022935 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022936 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22937 hardcode_libdir_separator_F77=':'
22938 link_all_deplibs_F77=yes
22939 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022940 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022941
22942 if test "$GCC" = yes; then
22943 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22944 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22945 else
22946 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22947 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22948 fi
John Criswell47fdd832003-07-14 16:52:07 +000022949 ;;
22950
22951 uts4*)
22952 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22953 hardcode_libdir_flag_spec_F77='-L$libdir'
22954 hardcode_shlibpath_var_F77=no
22955 ;;
22956
22957 *)
22958 ld_shlibs_F77=no
22959 ;;
22960 esac
22961 fi
22962
Reid Spencera773bd52006-08-04 18:18:08 +000022963{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22964echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022965test "$ld_shlibs_F77" = no && can_build_shared=no
22966
John Criswell47fdd832003-07-14 16:52:07 +000022967#
22968# Do we need to explicitly link libc?
22969#
22970case "x$archive_cmds_need_lc_F77" in
22971x|xyes)
22972 # Assume -lc should be added
22973 archive_cmds_need_lc_F77=yes
22974
22975 if test "$enable_shared" = yes && test "$GCC" = yes; then
22976 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022977 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022978 # FIXME: we may have to deal with multi-command sequences.
22979 ;;
22980 '$CC '*)
22981 # Test whether the compiler implicitly links with -lc since on some
22982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22983 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022984 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22985echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022986 $rm conftest*
22987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22988
22989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990 (eval $ac_compile) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } 2>conftest.err; then
22994 soname=conftest
22995 lib=conftest
22996 libobjs=conftest.$ac_objext
22997 deplibs=
22998 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022999 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000023000 compiler_flags=-v
23001 linker_flags=-v
23002 verstring=
23003 output_objdir=.
23004 libname=conftest
23005 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23006 allow_undefined_flag_F77=
23007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23008 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }
23012 then
23013 archive_cmds_need_lc_F77=no
23014 else
23015 archive_cmds_need_lc_F77=yes
23016 fi
23017 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23018 else
23019 cat conftest.err 1>&5
23020 fi
23021 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023022 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23023echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023024 ;;
23025 esac
23026 fi
23027 ;;
23028esac
23029
Reid Spencera773bd52006-08-04 18:18:08 +000023030{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23031echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023032library_names_spec=
23033libname_spec='lib$name'
23034soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023036postinstall_cmds=
23037postuninstall_cmds=
23038finish_cmds=
23039finish_eval=
23040shlibpath_var=
23041shlibpath_overrides_runpath=unknown
23042version_type=none
23043dynamic_linker="$host_os ld.so"
23044sys_lib_dlsearch_path_spec="/lib /usr/lib"
23045if test "$GCC" = yes; then
23046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23048 # if the path contains ";" then we assume it to be the separator
23049 # otherwise default to the standard path separator (i.e. ":") - it is
23050 # assumed that no part of a normal pathname contains ";" but that should
23051 # okay in the real world where ";" in dirpaths is itself problematic.
23052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23053 else
23054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23055 fi
23056else
23057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23058fi
23059need_lib_prefix=unknown
23060hardcode_into_libs=no
23061
23062# when you set need_version to no, make sure it does not cause -set_version
23063# flags to be left without arguments
23064need_version=unknown
23065
23066case $host_os in
23067aix3*)
23068 version_type=linux
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23070 shlibpath_var=LIBPATH
23071
23072 # AIX 3 has no versioning support, so we append a major version to the name.
23073 soname_spec='${libname}${release}${shared_ext}$major'
23074 ;;
23075
23076aix4* | aix5*)
23077 version_type=linux
23078 need_lib_prefix=no
23079 need_version=no
23080 hardcode_into_libs=yes
23081 if test "$host_cpu" = ia64; then
23082 # AIX 5 supports IA64
23083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23084 shlibpath_var=LD_LIBRARY_PATH
23085 else
23086 # With GCC up to 2.95.x, collect2 would create an import file
23087 # for dependence libraries. The import file would start with
23088 # the line `#! .'. This would cause the generated library to
23089 # depend on `.', always an invalid library. This was fixed in
23090 # development snapshots of GCC prior to 3.0.
23091 case $host_os in
23092 aix4 | aix4.[01] | aix4.[01].*)
23093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23094 echo ' yes '
23095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23096 :
23097 else
23098 can_build_shared=no
23099 fi
23100 ;;
23101 esac
23102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23103 # soname into executable. Probably we can add versioning support to
23104 # collect2, so additional links can be useful in future.
23105 if test "$aix_use_runtimelinking" = yes; then
23106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23107 # instead of lib<name>.a to let people know that these are not
23108 # typical AIX shared libraries.
23109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23110 else
23111 # We preserve .a as extension for shared libraries through AIX4.2
23112 # and later when we are not doing run time linking.
23113 library_names_spec='${libname}${release}.a $libname.a'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23115 fi
23116 shlibpath_var=LIBPATH
23117 fi
23118 ;;
23119
23120amigaos*)
23121 library_names_spec='$libname.ixlibrary $libname.a'
23122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123 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 +000023124 ;;
23125
23126beos*)
23127 library_names_spec='${libname}${shared_ext}'
23128 dynamic_linker="$host_os ld.so"
23129 shlibpath_var=LIBRARY_PATH
23130 ;;
23131
Reid Spencer2706f8c2004-09-19 23:53:36 +000023132bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023133 version_type=linux
23134 need_version=no
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 soname_spec='${libname}${release}${shared_ext}$major'
23137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23138 shlibpath_var=LD_LIBRARY_PATH
23139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23141 # the default ld.so.conf also contains /usr/contrib/lib and
23142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23143 # libtool to hard-code these into programs
23144 ;;
23145
23146cygwin* | mingw* | pw32*)
23147 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023149 need_version=no
23150 need_lib_prefix=no
23151
23152 case $GCC,$host_os in
23153 yes,cygwin* | yes,mingw* | yes,pw32*)
23154 library_names_spec='$libname.dll.a'
23155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023156 postinstall_cmds='base_file=`basename \${file}`~
23157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23158 dldir=$destdir/`dirname \$dlpath`~
23159 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023160 $install_prog $dir/$dlname \$dldir/$dlname~
23161 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23163 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023164 $rm \$dlpath'
23165 shlibpath_overrides_runpath=yes
23166
23167 case $host_os in
23168 cygwin*)
23169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23170 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 +000023171 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023172 ;;
23173 mingw*)
23174 # MinGW DLLs use traditional 'lib' prefix
23175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23177 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23178 # It is most probably a Windows format PATH printed by
23179 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23180 # path with ; separators, and with drive letters. We can handle the
23181 # drive letters (cygwin fileutils understands them), so leave them,
23182 # especially as we might pass files found there to a mingw objdump,
23183 # which wouldn't understand a cygwinified path. Ahh.
23184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23185 else
23186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23187 fi
23188 ;;
23189 pw32*)
23190 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023191 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 +000023192 ;;
23193 esac
23194 ;;
23195
23196 *)
23197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23198 ;;
23199 esac
23200 dynamic_linker='Win32 ld.exe'
23201 # FIXME: first we should search . and the directory the executable is in
23202 shlibpath_var=PATH
23203 ;;
23204
23205darwin* | rhapsody*)
23206 dynamic_linker="$host_os dyld"
23207 version_type=darwin
23208 need_lib_prefix=no
23209 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023211 soname_spec='${libname}${release}${major}$shared_ext'
23212 shlibpath_overrides_runpath=yes
23213 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023214 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023216 if test "$GCC" = yes; then
23217 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"`
23218 else
23219 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023220 fi
23221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23222 ;;
23223
23224dgux*)
23225 version_type=linux
23226 need_lib_prefix=no
23227 need_version=no
23228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23229 soname_spec='${libname}${release}${shared_ext}$major'
23230 shlibpath_var=LD_LIBRARY_PATH
23231 ;;
23232
23233freebsd1*)
23234 dynamic_linker=no
23235 ;;
23236
Reid Spencer2706f8c2004-09-19 23:53:36 +000023237kfreebsd*-gnu)
23238 version_type=linux
23239 need_lib_prefix=no
23240 need_version=no
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23242 soname_spec='${libname}${release}${shared_ext}$major'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=no
23245 hardcode_into_libs=yes
23246 dynamic_linker='GNU ld.so'
23247 ;;
23248
Reid Spencera773bd52006-08-04 18:18:08 +000023249freebsd* | dragonfly*)
23250 # DragonFly does not have aout. When/if they implement a new
23251 # versioning mechanism, adjust this.
23252 if test -x /usr/bin/objformat; then
23253 objformat=`/usr/bin/objformat`
23254 else
23255 case $host_os in
23256 freebsd[123]*) objformat=aout ;;
23257 *) objformat=elf ;;
23258 esac
23259 fi
John Criswell47fdd832003-07-14 16:52:07 +000023260 version_type=freebsd-$objformat
23261 case $version_type in
23262 freebsd-elf*)
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23264 need_version=no
23265 need_lib_prefix=no
23266 ;;
23267 freebsd-*)
23268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23269 need_version=yes
23270 ;;
23271 esac
23272 shlibpath_var=LD_LIBRARY_PATH
23273 case $host_os in
23274 freebsd2*)
23275 shlibpath_overrides_runpath=yes
23276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023277 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023278 shlibpath_overrides_runpath=yes
23279 hardcode_into_libs=yes
23280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023283 shlibpath_overrides_runpath=no
23284 hardcode_into_libs=yes
23285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023286 freebsd*) # from 4.6 on
23287 shlibpath_overrides_runpath=yes
23288 hardcode_into_libs=yes
23289 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023290 esac
23291 ;;
23292
23293gnu*)
23294 version_type=linux
23295 need_lib_prefix=no
23296 need_version=no
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 shlibpath_var=LD_LIBRARY_PATH
23300 hardcode_into_libs=yes
23301 ;;
23302
23303hpux9* | hpux10* | hpux11*)
23304 # Give a soname corresponding to the major version so that dld.sl refuses to
23305 # link against other versions.
23306 version_type=sunos
23307 need_lib_prefix=no
23308 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023309 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023310 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023311 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023312 hardcode_into_libs=yes
23313 dynamic_linker="$host_os dld.so"
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23317 soname_spec='${libname}${release}${shared_ext}$major'
23318 if test "X$HPUX_IA64_MODE" = X32; then
23319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23320 else
23321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23322 fi
23323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23324 ;;
23325 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023326 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023327 hardcode_into_libs=yes
23328 dynamic_linker="$host_os dld.sl"
23329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23332 soname_spec='${libname}${release}${shared_ext}$major'
23333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23335 ;;
23336 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023338 dynamic_linker="$host_os dld.sl"
23339 shlibpath_var=SHLIB_PATH
23340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23342 soname_spec='${libname}${release}${shared_ext}$major'
23343 ;;
23344 esac
23345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23346 postinstall_cmds='chmod 555 $lib'
23347 ;;
23348
Reid Spencera773bd52006-08-04 18:18:08 +000023349interix3*)
23350 version_type=linux
23351 need_lib_prefix=no
23352 need_version=no
23353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23354 soname_spec='${libname}${release}${shared_ext}$major'
23355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=no
23358 hardcode_into_libs=yes
23359 ;;
23360
John Criswell47fdd832003-07-14 16:52:07 +000023361irix5* | irix6* | nonstopux*)
23362 case $host_os in
23363 nonstopux*) version_type=nonstopux ;;
23364 *)
23365 if test "$lt_cv_prog_gnu_ld" = yes; then
23366 version_type=linux
23367 else
23368 version_type=irix
23369 fi ;;
23370 esac
23371 need_lib_prefix=no
23372 need_version=no
23373 soname_spec='${libname}${release}${shared_ext}$major'
23374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23375 case $host_os in
23376 irix5* | nonstopux*)
23377 libsuff= shlibsuff=
23378 ;;
23379 *)
23380 case $LD in # libtool.m4 will add one of these switches to LD
23381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23382 libsuff= shlibsuff= libmagic=32-bit;;
23383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23384 libsuff=32 shlibsuff=N32 libmagic=N32;;
23385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23387 *) libsuff= shlibsuff= libmagic=never-match;;
23388 esac
23389 ;;
23390 esac
23391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23392 shlibpath_overrides_runpath=no
23393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23395 hardcode_into_libs=yes
23396 ;;
23397
23398# No shared lib support for Linux oldld, aout, or coff.
23399linux*oldld* | linux*aout* | linux*coff*)
23400 dynamic_linker=no
23401 ;;
23402
23403# This must be Linux ELF.
23404linux*)
23405 version_type=linux
23406 need_lib_prefix=no
23407 need_version=no
23408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23409 soname_spec='${libname}${release}${shared_ext}$major'
23410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23411 shlibpath_var=LD_LIBRARY_PATH
23412 shlibpath_overrides_runpath=no
23413 # This implies no fast_install, which is unacceptable.
23414 # Some rework will be needed to allow for fast_install
23415 # before this can be enabled.
23416 hardcode_into_libs=yes
23417
Reid Spencer2706f8c2004-09-19 23:53:36 +000023418 # Append ld.so.conf contents to the search path
23419 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023420 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 +000023421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23422 fi
23423
John Criswell47fdd832003-07-14 16:52:07 +000023424 # We used to test for /lib/ld.so.1 and disable shared libraries on
23425 # powerpc, because MkLinux only supported shared libraries with the
23426 # GNU dynamic linker. Since this was broken with cross compilers,
23427 # most powerpc-linux boxes support dynamic linking these days and
23428 # people can always --disable-shared, the test was removed, and we
23429 # assume the GNU/Linux dynamic linker is in use.
23430 dynamic_linker='GNU/Linux ld.so'
23431 ;;
23432
Reid Spencer2706f8c2004-09-19 23:53:36 +000023433knetbsd*-gnu)
23434 version_type=linux
23435 need_lib_prefix=no
23436 need_version=no
23437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23438 soname_spec='${libname}${release}${shared_ext}$major'
23439 shlibpath_var=LD_LIBRARY_PATH
23440 shlibpath_overrides_runpath=no
23441 hardcode_into_libs=yes
23442 dynamic_linker='GNU ld.so'
23443 ;;
23444
John Criswell47fdd832003-07-14 16:52:07 +000023445netbsd*)
23446 version_type=sunos
23447 need_lib_prefix=no
23448 need_version=no
23449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23452 dynamic_linker='NetBSD (a.out) ld.so'
23453 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023455 soname_spec='${libname}${release}${shared_ext}$major'
23456 dynamic_linker='NetBSD ld.elf_so'
23457 fi
23458 shlibpath_var=LD_LIBRARY_PATH
23459 shlibpath_overrides_runpath=yes
23460 hardcode_into_libs=yes
23461 ;;
23462
23463newsos6)
23464 version_type=linux
23465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 shlibpath_overrides_runpath=yes
23468 ;;
23469
Reid Spencer2706f8c2004-09-19 23:53:36 +000023470nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023471 version_type=linux
23472 need_lib_prefix=no
23473 need_version=no
23474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23475 soname_spec='${libname}${release}${shared_ext}$major'
23476 shlibpath_var=LD_LIBRARY_PATH
23477 shlibpath_overrides_runpath=yes
23478 ;;
23479
23480openbsd*)
23481 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023482 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023483 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23485 case $host_os in
23486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23487 *) need_version=no ;;
23488 esac
John Criswell47fdd832003-07-14 16:52:07 +000023489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23491 shlibpath_var=LD_LIBRARY_PATH
23492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23493 case $host_os in
23494 openbsd2.[89] | openbsd2.[89].*)
23495 shlibpath_overrides_runpath=no
23496 ;;
23497 *)
23498 shlibpath_overrides_runpath=yes
23499 ;;
23500 esac
23501 else
23502 shlibpath_overrides_runpath=yes
23503 fi
23504 ;;
23505
23506os2*)
23507 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023508 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023509 need_lib_prefix=no
23510 library_names_spec='$libname${shared_ext} $libname.a'
23511 dynamic_linker='OS/2 ld.exe'
23512 shlibpath_var=LIBPATH
23513 ;;
23514
23515osf3* | osf4* | osf5*)
23516 version_type=osf
23517 need_lib_prefix=no
23518 need_version=no
23519 soname_spec='${libname}${release}${shared_ext}$major'
23520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23524 ;;
23525
John Criswell47fdd832003-07-14 16:52:07 +000023526solaris*)
23527 version_type=linux
23528 need_lib_prefix=no
23529 need_version=no
23530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23531 soname_spec='${libname}${release}${shared_ext}$major'
23532 shlibpath_var=LD_LIBRARY_PATH
23533 shlibpath_overrides_runpath=yes
23534 hardcode_into_libs=yes
23535 # ldd complains unless libraries are executable
23536 postinstall_cmds='chmod +x $lib'
23537 ;;
23538
23539sunos4*)
23540 version_type=sunos
23541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23543 shlibpath_var=LD_LIBRARY_PATH
23544 shlibpath_overrides_runpath=yes
23545 if test "$with_gnu_ld" = yes; then
23546 need_lib_prefix=no
23547 fi
23548 need_version=yes
23549 ;;
23550
Reid Spencera773bd52006-08-04 18:18:08 +000023551sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023552 version_type=linux
23553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23554 soname_spec='${libname}${release}${shared_ext}$major'
23555 shlibpath_var=LD_LIBRARY_PATH
23556 case $host_vendor in
23557 sni)
23558 shlibpath_overrides_runpath=no
23559 need_lib_prefix=no
23560 export_dynamic_flag_spec='${wl}-Blargedynsym'
23561 runpath_var=LD_RUN_PATH
23562 ;;
23563 siemens)
23564 need_lib_prefix=no
23565 ;;
23566 motorola)
23567 need_lib_prefix=no
23568 need_version=no
23569 shlibpath_overrides_runpath=no
23570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23571 ;;
23572 esac
23573 ;;
23574
23575sysv4*MP*)
23576 if test -d /usr/nec ;then
23577 version_type=linux
23578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23579 soname_spec='$libname${shared_ext}.$major'
23580 shlibpath_var=LD_LIBRARY_PATH
23581 fi
23582 ;;
23583
Reid Spencera773bd52006-08-04 18:18:08 +000023584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23585 version_type=freebsd-elf
23586 need_lib_prefix=no
23587 need_version=no
23588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23589 soname_spec='${libname}${release}${shared_ext}$major'
23590 shlibpath_var=LD_LIBRARY_PATH
23591 hardcode_into_libs=yes
23592 if test "$with_gnu_ld" = yes; then
23593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23594 shlibpath_overrides_runpath=no
23595 else
23596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23597 shlibpath_overrides_runpath=yes
23598 case $host_os in
23599 sco3.2v5*)
23600 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23601 ;;
23602 esac
23603 fi
23604 sys_lib_dlsearch_path_spec='/usr/lib'
23605 ;;
23606
John Criswell47fdd832003-07-14 16:52:07 +000023607uts4*)
23608 version_type=linux
23609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23610 soname_spec='${libname}${release}${shared_ext}$major'
23611 shlibpath_var=LD_LIBRARY_PATH
23612 ;;
23613
23614*)
23615 dynamic_linker=no
23616 ;;
23617esac
Reid Spencera773bd52006-08-04 18:18:08 +000023618{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23619echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023620test "$dynamic_linker" = no && can_build_shared=no
23621
Reid Spencera773bd52006-08-04 18:18:08 +000023622variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23623if test "$GCC" = yes; then
23624 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23625fi
23626
23627{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23628echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023629hardcode_action_F77=
23630if test -n "$hardcode_libdir_flag_spec_F77" || \
23631 test -n "$runpath_var_F77" || \
23632 test "X$hardcode_automatic_F77" = "Xyes" ; then
23633
23634 # We can hardcode non-existant directories.
23635 if test "$hardcode_direct_F77" != no &&
23636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23637 # have to relink, otherwise we might link with an installed library
23638 # when we should be linking with a yet-to-be-installed one
23639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23640 test "$hardcode_minus_L_F77" != no; then
23641 # Linking always hardcodes the temporary library directory.
23642 hardcode_action_F77=relink
23643 else
23644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23645 hardcode_action_F77=immediate
23646 fi
23647else
23648 # We cannot hardcode anything, or else we can only hardcode existing
23649 # directories.
23650 hardcode_action_F77=unsupported
23651fi
Reid Spencera773bd52006-08-04 18:18:08 +000023652{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23653echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023654
23655if test "$hardcode_action_F77" = relink; then
23656 # Fast installation is not supported
23657 enable_fast_install=no
23658elif test "$shlibpath_overrides_runpath" = yes ||
23659 test "$enable_shared" = no; then
23660 # Fast installation is not necessary
23661 enable_fast_install=needless
23662fi
23663
John Criswell47fdd832003-07-14 16:52:07 +000023664
23665# The else clause should only fire when bootstrapping the
23666# libtool distribution, otherwise you forgot to ship ltmain.sh
23667# with your package, and you will get complaints that there are
23668# no rules to generate ltmain.sh.
23669if test -f "$ltmain"; then
23670 # See if we are running on zsh, and set the options which allow our commands through
23671 # without removal of \ escapes.
23672 if test -n "${ZSH_VERSION+set}" ; then
23673 setopt NO_GLOB_SUBST
23674 fi
23675 # Now quote all the things that may contain metacharacters while being
23676 # careful not to overquote the AC_SUBSTed values. We take copies of the
23677 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023678 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 +000023679 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23682 deplibs_check_method reload_flag reload_cmds need_locks \
23683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23684 lt_cv_sys_global_symbol_to_c_name_address \
23685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23686 old_postinstall_cmds old_postuninstall_cmds \
23687 compiler_F77 \
23688 CC_F77 \
23689 LD_F77 \
23690 lt_prog_compiler_wl_F77 \
23691 lt_prog_compiler_pic_F77 \
23692 lt_prog_compiler_static_F77 \
23693 lt_prog_compiler_no_builtin_flag_F77 \
23694 export_dynamic_flag_spec_F77 \
23695 thread_safe_flag_spec_F77 \
23696 whole_archive_flag_spec_F77 \
23697 enable_shared_with_static_runtimes_F77 \
23698 old_archive_cmds_F77 \
23699 old_archive_from_new_cmds_F77 \
23700 predep_objects_F77 \
23701 postdep_objects_F77 \
23702 predeps_F77 \
23703 postdeps_F77 \
23704 compiler_lib_search_path_F77 \
23705 archive_cmds_F77 \
23706 archive_expsym_cmds_F77 \
23707 postinstall_cmds_F77 \
23708 postuninstall_cmds_F77 \
23709 old_archive_from_expsyms_cmds_F77 \
23710 allow_undefined_flag_F77 \
23711 no_undefined_flag_F77 \
23712 export_symbols_cmds_F77 \
23713 hardcode_libdir_flag_spec_F77 \
23714 hardcode_libdir_flag_spec_ld_F77 \
23715 hardcode_libdir_separator_F77 \
23716 hardcode_automatic_F77 \
23717 module_cmds_F77 \
23718 module_expsym_cmds_F77 \
23719 lt_cv_prog_compiler_c_o_F77 \
23720 exclude_expsyms_F77 \
23721 include_expsyms_F77; do
23722
23723 case $var in
23724 old_archive_cmds_F77 | \
23725 old_archive_from_new_cmds_F77 | \
23726 archive_cmds_F77 | \
23727 archive_expsym_cmds_F77 | \
23728 module_cmds_F77 | \
23729 module_expsym_cmds_F77 | \
23730 old_archive_from_expsyms_cmds_F77 | \
23731 export_symbols_cmds_F77 | \
23732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23733 postinstall_cmds | postuninstall_cmds | \
23734 old_postinstall_cmds | old_postuninstall_cmds | \
23735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23736 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023737 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 +000023738 ;;
23739 *)
23740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23741 ;;
23742 esac
23743 done
23744
23745 case $lt_echo in
23746 *'\$0 --fallback-echo"')
23747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23748 ;;
23749 esac
23750
23751cfgfile="$ofile"
23752
23753 cat <<__EOF__ >> "$cfgfile"
23754# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23755
23756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23757
23758# Shell to use when invoking shell scripts.
23759SHELL=$lt_SHELL
23760
23761# Whether or not to build shared libraries.
23762build_libtool_libs=$enable_shared
23763
23764# Whether or not to build static libraries.
23765build_old_libs=$enable_static
23766
23767# Whether or not to add -lc for building shared libraries.
23768build_libtool_need_lc=$archive_cmds_need_lc_F77
23769
23770# Whether or not to disallow shared libs when runtime libs are static
23771allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23772
23773# Whether or not to optimize for fast installation.
23774fast_install=$enable_fast_install
23775
23776# The host system.
23777host_alias=$host_alias
23778host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023779host_os=$host_os
23780
23781# The build system.
23782build_alias=$build_alias
23783build=$build
23784build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023785
23786# An echo program that does not interpret backslashes.
23787echo=$lt_echo
23788
23789# The archiver.
23790AR=$lt_AR
23791AR_FLAGS=$lt_AR_FLAGS
23792
23793# A C compiler.
23794LTCC=$lt_LTCC
23795
Reid Spencera773bd52006-08-04 18:18:08 +000023796# LTCC compiler flags.
23797LTCFLAGS=$lt_LTCFLAGS
23798
John Criswell47fdd832003-07-14 16:52:07 +000023799# A language-specific compiler.
23800CC=$lt_compiler_F77
23801
23802# Is the compiler the GNU C compiler?
23803with_gcc=$GCC_F77
23804
23805# An ERE matcher.
23806EGREP=$lt_EGREP
23807
23808# The linker used to build libraries.
23809LD=$lt_LD_F77
23810
23811# Whether we need hard or soft links.
23812LN_S=$lt_LN_S
23813
23814# A BSD-compatible nm program.
23815NM=$lt_NM
23816
23817# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023818STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023819
23820# Used to examine libraries when file_magic_cmd begins "file"
23821MAGIC_CMD=$MAGIC_CMD
23822
23823# Used on cygwin: DLL creation program.
23824DLLTOOL="$DLLTOOL"
23825
23826# Used on cygwin: object dumper.
23827OBJDUMP="$OBJDUMP"
23828
23829# Used on cygwin: assembler.
23830AS="$AS"
23831
23832# The name of the directory that contains temporary libtool files.
23833objdir=$objdir
23834
23835# How to create reloadable object files.
23836reload_flag=$lt_reload_flag
23837reload_cmds=$lt_reload_cmds
23838
23839# How to pass a linker flag through the compiler.
23840wl=$lt_lt_prog_compiler_wl_F77
23841
23842# Object file suffix (normally "o").
23843objext="$ac_objext"
23844
23845# Old archive suffix (normally "a").
23846libext="$libext"
23847
23848# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023849shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023850
23851# Executable file suffix (normally "").
23852exeext="$exeext"
23853
23854# Additional compiler flags for building library objects.
23855pic_flag=$lt_lt_prog_compiler_pic_F77
23856pic_mode=$pic_mode
23857
23858# What is the maximum length of a command?
23859max_cmd_len=$lt_cv_sys_max_cmd_len
23860
23861# Does compiler simultaneously support -c and -o options?
23862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23863
Reid Spencera773bd52006-08-04 18:18:08 +000023864# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023865need_locks=$lt_need_locks
23866
23867# Do we need the lib prefix for modules?
23868need_lib_prefix=$need_lib_prefix
23869
23870# Do we need a version for libraries?
23871need_version=$need_version
23872
23873# Whether dlopen is supported.
23874dlopen_support=$enable_dlopen
23875
23876# Whether dlopen of programs is supported.
23877dlopen_self=$enable_dlopen_self
23878
23879# Whether dlopen of statically linked programs is supported.
23880dlopen_self_static=$enable_dlopen_self_static
23881
23882# Compiler flag to prevent dynamic linking.
23883link_static_flag=$lt_lt_prog_compiler_static_F77
23884
23885# Compiler flag to turn off builtin functions.
23886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23887
23888# Compiler flag to allow reflexive dlopens.
23889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23890
23891# Compiler flag to generate shared objects directly from archives.
23892whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23893
23894# Compiler flag to generate thread-safe objects.
23895thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23896
23897# Library versioning type.
23898version_type=$version_type
23899
23900# Format of library name prefix.
23901libname_spec=$lt_libname_spec
23902
23903# List of archive names. First name is the real one, the rest are links.
23904# The last name is the one that the linker finds with -lNAME.
23905library_names_spec=$lt_library_names_spec
23906
23907# The coded name of the library, if different from the real name.
23908soname_spec=$lt_soname_spec
23909
23910# Commands used to build and install an old-style archive.
23911RANLIB=$lt_RANLIB
23912old_archive_cmds=$lt_old_archive_cmds_F77
23913old_postinstall_cmds=$lt_old_postinstall_cmds
23914old_postuninstall_cmds=$lt_old_postuninstall_cmds
23915
23916# Create an old-style archive from a shared archive.
23917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23918
23919# Create a temporary old-style archive to link instead of a shared archive.
23920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23921
23922# Commands used to build and install a shared archive.
23923archive_cmds=$lt_archive_cmds_F77
23924archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23925postinstall_cmds=$lt_postinstall_cmds
23926postuninstall_cmds=$lt_postuninstall_cmds
23927
23928# Commands used to build a loadable module (assumed same as above if empty)
23929module_cmds=$lt_module_cmds_F77
23930module_expsym_cmds=$lt_module_expsym_cmds_F77
23931
23932# Commands to strip libraries.
23933old_striplib=$lt_old_striplib
23934striplib=$lt_striplib
23935
23936# Dependencies to place before the objects being linked to create a
23937# shared library.
23938predep_objects=$lt_predep_objects_F77
23939
23940# Dependencies to place after the objects being linked to create a
23941# shared library.
23942postdep_objects=$lt_postdep_objects_F77
23943
23944# Dependencies to place before the objects being linked to create a
23945# shared library.
23946predeps=$lt_predeps_F77
23947
23948# Dependencies to place after the objects being linked to create a
23949# shared library.
23950postdeps=$lt_postdeps_F77
23951
23952# The library search path used internally by the compiler when linking
23953# a shared library.
23954compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23955
23956# Method to check whether dependent libraries are shared objects.
23957deplibs_check_method=$lt_deplibs_check_method
23958
23959# Command to use when deplibs_check_method == file_magic.
23960file_magic_cmd=$lt_file_magic_cmd
23961
23962# Flag that allows shared libraries with undefined symbols to be built.
23963allow_undefined_flag=$lt_allow_undefined_flag_F77
23964
23965# Flag that forces no undefined symbols.
23966no_undefined_flag=$lt_no_undefined_flag_F77
23967
23968# Commands used to finish a libtool library installation in a directory.
23969finish_cmds=$lt_finish_cmds
23970
23971# Same as above, but a single script fragment to be evaled but not shown.
23972finish_eval=$lt_finish_eval
23973
23974# Take the output of nm and produce a listing of raw symbols and C names.
23975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23976
23977# Transform the output of nm in a proper C declaration
23978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23979
23980# Transform the output of nm in a C name address pair
23981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23982
23983# This is the shared library runtime path variable.
23984runpath_var=$runpath_var
23985
23986# This is the shared library path variable.
23987shlibpath_var=$shlibpath_var
23988
23989# Is shlibpath searched before the hard-coded library search path?
23990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23991
23992# How to hardcode a shared library path into an executable.
23993hardcode_action=$hardcode_action_F77
23994
23995# Whether we should hardcode library paths into libraries.
23996hardcode_into_libs=$hardcode_into_libs
23997
23998# Flag to hardcode \$libdir into a binary during linking.
23999# This must work even if \$libdir does not exist.
24000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24001
24002# If ld is used when linking, flag to hardcode \$libdir into
24003# a binary during linking. This must work even if \$libdir does
24004# not exist.
24005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24006
24007# Whether we need a single -rpath flag with a separated argument.
24008hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24009
24010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24011# resulting binary.
24012hardcode_direct=$hardcode_direct_F77
24013
24014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24015# resulting binary.
24016hardcode_minus_L=$hardcode_minus_L_F77
24017
24018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24019# the resulting binary.
24020hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24021
24022# Set to yes if building a shared library automatically hardcodes DIR into the library
24023# and all subsequent libraries and executables linked against it.
24024hardcode_automatic=$hardcode_automatic_F77
24025
24026# Variables whose values should be saved in libtool wrapper scripts and
24027# restored at relink time.
24028variables_saved_for_relink="$variables_saved_for_relink"
24029
24030# Whether libtool must link a program against all its dependency libraries.
24031link_all_deplibs=$link_all_deplibs_F77
24032
24033# Compile-time system search path for libraries
24034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24035
24036# Run-time system search path for libraries
24037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24038
24039# Fix the shell variable \$srcfile for the compiler.
24040fix_srcfile_path="$fix_srcfile_path_F77"
24041
24042# Set to yes if exported symbols are required.
24043always_export_symbols=$always_export_symbols_F77
24044
24045# The commands to list exported symbols.
24046export_symbols_cmds=$lt_export_symbols_cmds_F77
24047
24048# The commands to extract the exported symbol list from a shared archive.
24049extract_expsyms_cmds=$lt_extract_expsyms_cmds
24050
24051# Symbols that should not be listed in the preloaded symbols.
24052exclude_expsyms=$lt_exclude_expsyms_F77
24053
24054# Symbols that must always be exported.
24055include_expsyms=$lt_include_expsyms_F77
24056
24057# ### END LIBTOOL TAG CONFIG: $tagname
24058
24059__EOF__
24060
24061
24062else
24063 # If there is no Makefile yet, we rely on a make rule to execute
24064 # `config.status --recheck' to rerun these tests and create the
24065 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24067 if test -f "$ltmain_in"; then
24068 test -f Makefile && make "$ltmain"
24069 fi
John Criswell47fdd832003-07-14 16:52:07 +000024070fi
24071
24072
24073ac_ext=c
24074ac_cpp='$CPP $CPPFLAGS'
24075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078
24079CC="$lt_save_CC"
24080
24081 else
24082 tagname=""
24083 fi
24084 ;;
24085
24086 GCJ)
24087 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024088 ac_ext=c
24089ac_cpp='$CPP $CPPFLAGS'
24090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024093
24094
24095# Source file extension for Java test sources.
24096ac_ext=java
24097
24098# Object file extension for compiled Java test sources.
24099objext=o
24100objext_GCJ=$objext
24101
24102# Code to be used in simple compile tests
24103lt_simple_compile_test_code="class foo {}\n"
24104
24105# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024106lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024107
24108# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24109
24110# If no C compiler was specified, use CC.
24111LTCC=${LTCC-"$CC"}
24112
Reid Spencera773bd52006-08-04 18:18:08 +000024113# If no C compiler flags were specified, use CFLAGS.
24114LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24115
John Criswell47fdd832003-07-14 16:52:07 +000024116# Allow CC to be a program name with arguments.
24117compiler=$CC
24118
24119
Reid Spencera773bd52006-08-04 18:18:08 +000024120# save warnings/boilerplate of simple test code
24121ac_outfile=conftest.$ac_objext
24122printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24123eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24124_lt_compiler_boilerplate=`cat conftest.err`
24125$rm conftest*
24126
24127ac_outfile=conftest.$ac_objext
24128printf "$lt_simple_link_test_code" >conftest.$ac_ext
24129eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24130_lt_linker_boilerplate=`cat conftest.err`
24131$rm conftest*
24132
24133
John Criswell47fdd832003-07-14 16:52:07 +000024134# Allow CC to be a program name with arguments.
24135lt_save_CC="$CC"
24136CC=${GCJ-"gcj"}
24137compiler=$CC
24138compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024139for cc_temp in $compiler""; do
24140 case $cc_temp in
24141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24143 \-*) ;;
24144 *) break;;
24145 esac
24146done
24147cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24148
John Criswell47fdd832003-07-14 16:52:07 +000024149
24150# GCJ did not exist at the time GCC didn't implicitly link libc in.
24151archive_cmds_need_lc_GCJ=no
24152
Reid Spencera773bd52006-08-04 18:18:08 +000024153old_archive_cmds_GCJ=$old_archive_cmds
24154
John Criswell47fdd832003-07-14 16:52:07 +000024155
24156lt_prog_compiler_no_builtin_flag_GCJ=
24157
24158if test "$GCC" = yes; then
24159 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24160
Reid Spencer2706f8c2004-09-19 23:53:36 +000024161
Reid Spencera773bd52006-08-04 18:18:08 +000024162{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24163echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024164if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166else
24167 lt_cv_prog_compiler_rtti_exceptions=no
24168 ac_outfile=conftest.$ac_objext
24169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24170 lt_compiler_flag="-fno-rtti -fno-exceptions"
24171 # Insert the option either (1) after the last *FLAGS variable, or
24172 # (2) before a word containing "conftest.", or (3) at the end.
24173 # Note that $ac_compile itself does not contain backslashes and begins
24174 # with a dollar sign (not a hyphen), so the echo should work correctly.
24175 # The option is referenced via a variable to avoid confusing sed.
24176 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24179 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024180 (eval echo "\"\$as_me:24180: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024181 (eval "$lt_compile" 2>conftest.err)
24182 ac_status=$?
24183 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024184 echo "$as_me:24184: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024185 if (exit $ac_status) && test -s "$ac_outfile"; then
24186 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024187 # So say no if there are warnings other than the usual output.
24188 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024191 lt_cv_prog_compiler_rtti_exceptions=yes
24192 fi
24193 fi
24194 $rm conftest*
24195
24196fi
Reid Spencera773bd52006-08-04 18:18:08 +000024197{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24198echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024199
24200if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24201 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24202else
24203 :
24204fi
24205
24206fi
24207
24208lt_prog_compiler_wl_GCJ=
24209lt_prog_compiler_pic_GCJ=
24210lt_prog_compiler_static_GCJ=
24211
Reid Spencera773bd52006-08-04 18:18:08 +000024212{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24213echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024214
24215 if test "$GCC" = yes; then
24216 lt_prog_compiler_wl_GCJ='-Wl,'
24217 lt_prog_compiler_static_GCJ='-static'
24218
24219 case $host_os in
24220 aix*)
24221 # All AIX code is PIC.
24222 if test "$host_cpu" = ia64; then
24223 # AIX 5 now supports IA64 processor
24224 lt_prog_compiler_static_GCJ='-Bstatic'
24225 fi
24226 ;;
24227
24228 amigaos*)
24229 # FIXME: we need at least 68020 code to build shared libraries, but
24230 # adding the `-m68020' flag to GCC prevents building anything better,
24231 # like `-m68040'.
24232 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24233 ;;
24234
24235 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24236 # PIC is the default for these OSes.
24237 ;;
24238
24239 mingw* | pw32* | os2*)
24240 # This hack is so that the source file can tell whether it is being
24241 # built for inclusion in a dll (and should export symbols for example).
24242 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24243 ;;
24244
24245 darwin* | rhapsody*)
24246 # PIC is the default on this platform
24247 # Common symbols not allowed in MH_DYLIB files
24248 lt_prog_compiler_pic_GCJ='-fno-common'
24249 ;;
24250
Reid Spencera773bd52006-08-04 18:18:08 +000024251 interix3*)
24252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24253 # Instead, we relocate shared libraries at runtime.
24254 ;;
24255
John Criswell47fdd832003-07-14 16:52:07 +000024256 msdosdjgpp*)
24257 # Just because we use GCC doesn't mean we suddenly get shared libraries
24258 # on systems that don't support them.
24259 lt_prog_compiler_can_build_shared_GCJ=no
24260 enable_shared=no
24261 ;;
24262
24263 sysv4*MP*)
24264 if test -d /usr/nec; then
24265 lt_prog_compiler_pic_GCJ=-Kconform_pic
24266 fi
24267 ;;
24268
24269 hpux*)
24270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24271 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024272 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024273 hppa*64*|ia64*)
24274 # +Z the default
24275 ;;
24276 *)
24277 lt_prog_compiler_pic_GCJ='-fPIC'
24278 ;;
24279 esac
24280 ;;
24281
24282 *)
24283 lt_prog_compiler_pic_GCJ='-fPIC'
24284 ;;
24285 esac
24286 else
24287 # PORTME Check for flag to pass linker flags through the system compiler.
24288 case $host_os in
24289 aix*)
24290 lt_prog_compiler_wl_GCJ='-Wl,'
24291 if test "$host_cpu" = ia64; then
24292 # AIX 5 now supports IA64 processor
24293 lt_prog_compiler_static_GCJ='-Bstatic'
24294 else
24295 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24296 fi
24297 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298 darwin*)
24299 # PIC is the default on this platform
24300 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024301 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024302 xlc*)
24303 lt_prog_compiler_pic_GCJ='-qnocommon'
24304 lt_prog_compiler_wl_GCJ='-Wl,'
24305 ;;
24306 esac
24307 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024308
24309 mingw* | pw32* | os2*)
24310 # This hack is so that the source file can tell whether it is being
24311 # built for inclusion in a dll (and should export symbols for example).
24312 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24313 ;;
24314
24315 hpux9* | hpux10* | hpux11*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24318 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024319 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024320 hppa*64*|ia64*)
24321 # +Z the default
24322 ;;
24323 *)
24324 lt_prog_compiler_pic_GCJ='+Z'
24325 ;;
24326 esac
24327 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24328 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24329 ;;
24330
24331 irix5* | irix6* | nonstopux*)
24332 lt_prog_compiler_wl_GCJ='-Wl,'
24333 # PIC (with -KPIC) is the default.
24334 lt_prog_compiler_static_GCJ='-non_shared'
24335 ;;
24336
24337 newsos6)
24338 lt_prog_compiler_pic_GCJ='-KPIC'
24339 lt_prog_compiler_static_GCJ='-Bstatic'
24340 ;;
24341
24342 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024343 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024344 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024345 lt_prog_compiler_wl_GCJ='-Wl,'
24346 lt_prog_compiler_pic_GCJ='-KPIC'
24347 lt_prog_compiler_static_GCJ='-static'
24348 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024349 pgcc* | pgf77* | pgf90* | pgf95*)
24350 # Portland Group compilers (*not* the Pentium gcc compiler,
24351 # which looks to be a dead project)
24352 lt_prog_compiler_wl_GCJ='-Wl,'
24353 lt_prog_compiler_pic_GCJ='-fpic'
24354 lt_prog_compiler_static_GCJ='-Bstatic'
24355 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024356 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024357 lt_prog_compiler_wl_GCJ='-Wl,'
24358 # All Alpha code is PIC.
24359 lt_prog_compiler_static_GCJ='-non_shared'
24360 ;;
24361 esac
24362 ;;
24363
24364 osf3* | osf4* | osf5*)
24365 lt_prog_compiler_wl_GCJ='-Wl,'
24366 # All OSF/1 code is PIC.
24367 lt_prog_compiler_static_GCJ='-non_shared'
24368 ;;
24369
John Criswell47fdd832003-07-14 16:52:07 +000024370 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024371 lt_prog_compiler_pic_GCJ='-KPIC'
24372 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024373 case $cc_basename in
24374 f77* | f90* | f95*)
24375 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24376 *)
24377 lt_prog_compiler_wl_GCJ='-Wl,';;
24378 esac
John Criswell47fdd832003-07-14 16:52:07 +000024379 ;;
24380
24381 sunos4*)
24382 lt_prog_compiler_wl_GCJ='-Qoption ld '
24383 lt_prog_compiler_pic_GCJ='-PIC'
24384 lt_prog_compiler_static_GCJ='-Bstatic'
24385 ;;
24386
Reid Spencera773bd52006-08-04 18:18:08 +000024387 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024388 lt_prog_compiler_wl_GCJ='-Wl,'
24389 lt_prog_compiler_pic_GCJ='-KPIC'
24390 lt_prog_compiler_static_GCJ='-Bstatic'
24391 ;;
24392
24393 sysv4*MP*)
24394 if test -d /usr/nec ;then
24395 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24396 lt_prog_compiler_static_GCJ='-Bstatic'
24397 fi
24398 ;;
24399
Reid Spencera773bd52006-08-04 18:18:08 +000024400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24401 lt_prog_compiler_wl_GCJ='-Wl,'
24402 lt_prog_compiler_pic_GCJ='-KPIC'
24403 lt_prog_compiler_static_GCJ='-Bstatic'
24404 ;;
24405
24406 unicos*)
24407 lt_prog_compiler_wl_GCJ='-Wl,'
24408 lt_prog_compiler_can_build_shared_GCJ=no
24409 ;;
24410
John Criswell47fdd832003-07-14 16:52:07 +000024411 uts4*)
24412 lt_prog_compiler_pic_GCJ='-pic'
24413 lt_prog_compiler_static_GCJ='-Bstatic'
24414 ;;
24415
24416 *)
24417 lt_prog_compiler_can_build_shared_GCJ=no
24418 ;;
24419 esac
24420 fi
24421
Reid Spencera773bd52006-08-04 18:18:08 +000024422{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24423echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024424
24425#
24426# Check to make sure the PIC flag actually works.
24427#
24428if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024429
Reid Spencera773bd52006-08-04 18:18:08 +000024430{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24431echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024432if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434else
24435 lt_prog_compiler_pic_works_GCJ=no
24436 ac_outfile=conftest.$ac_objext
24437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24438 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24439 # Insert the option either (1) after the last *FLAGS variable, or
24440 # (2) before a word containing "conftest.", or (3) at the end.
24441 # Note that $ac_compile itself does not contain backslashes and begins
24442 # with a dollar sign (not a hyphen), so the echo should work correctly.
24443 # The option is referenced via a variable to avoid confusing sed.
24444 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24447 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024448 (eval echo "\"\$as_me:24448: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024449 (eval "$lt_compile" 2>conftest.err)
24450 ac_status=$?
24451 cat conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024452 echo "$as_me:24452: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024453 if (exit $ac_status) && test -s "$ac_outfile"; then
24454 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024455 # So say no if there are warnings other than the usual output.
24456 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024459 lt_prog_compiler_pic_works_GCJ=yes
24460 fi
24461 fi
24462 $rm conftest*
24463
24464fi
Reid Spencera773bd52006-08-04 18:18:08 +000024465{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24466echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024467
24468if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24469 case $lt_prog_compiler_pic_GCJ in
24470 "" | " "*) ;;
24471 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24472 esac
24473else
24474 lt_prog_compiler_pic_GCJ=
24475 lt_prog_compiler_can_build_shared_GCJ=no
24476fi
24477
24478fi
Reid Spencera773bd52006-08-04 18:18:08 +000024479case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024480 # For platforms which do not support PIC, -DPIC is meaningless:
24481 *djgpp*)
24482 lt_prog_compiler_pic_GCJ=
24483 ;;
24484 *)
24485 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24486 ;;
24487esac
24488
Reid Spencera773bd52006-08-04 18:18:08 +000024489#
24490# Check to make sure the static flag actually works.
24491#
24492wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24493{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24494echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24495if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24497else
24498 lt_prog_compiler_static_works_GCJ=no
24499 save_LDFLAGS="$LDFLAGS"
24500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24501 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24503 # The linker can only warn and ignore the option if not recognized
24504 # So say no if there are warnings
24505 if test -s conftest.err; then
24506 # Append any errors to the config.log.
24507 cat conftest.err 1>&5
24508 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24510 if diff conftest.exp conftest.er2 >/dev/null; then
24511 lt_prog_compiler_static_works_GCJ=yes
24512 fi
24513 else
24514 lt_prog_compiler_static_works_GCJ=yes
24515 fi
24516 fi
24517 $rm conftest*
24518 LDFLAGS="$save_LDFLAGS"
24519
24520fi
24521{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24522echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24523
24524if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24525 :
24526else
24527 lt_prog_compiler_static_GCJ=
24528fi
24529
24530
24531{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24532echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024533if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
24535else
24536 lt_cv_prog_compiler_c_o_GCJ=no
24537 $rm -r conftest 2>/dev/null
24538 mkdir conftest
24539 cd conftest
24540 mkdir out
24541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24542
John Criswell47fdd832003-07-14 16:52:07 +000024543 lt_compiler_flag="-o out/conftest2.$ac_objext"
24544 # Insert the option either (1) after the last *FLAGS variable, or
24545 # (2) before a word containing "conftest.", or (3) at the end.
24546 # Note that $ac_compile itself does not contain backslashes and begins
24547 # with a dollar sign (not a hyphen), so the echo should work correctly.
24548 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24551 -e 's:$: $lt_compiler_flag:'`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024552 (eval echo "\"\$as_me:24552: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024553 (eval "$lt_compile" 2>out/conftest.err)
24554 ac_status=$?
24555 cat out/conftest.err >&5
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000024556 echo "$as_me:24556: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24558 then
24559 # The compiler can only warn and ignore the option if not recognized
24560 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024561 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024564 lt_cv_prog_compiler_c_o_GCJ=yes
24565 fi
24566 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024567 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024568 $rm conftest*
24569 # SGI C++ compiler will create directory out/ii_files/ for
24570 # template instantiation
24571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24572 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024573 cd ..
24574 rmdir conftest
24575 $rm conftest*
24576
24577fi
Reid Spencera773bd52006-08-04 18:18:08 +000024578{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24579echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024580
24581
24582hard_links="nottested"
24583if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24584 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024585 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24586echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024587 hard_links=yes
24588 $rm conftest*
24589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24590 touch conftest.a
24591 ln conftest.a conftest.b 2>&5 || hard_links=no
24592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024593 { echo "$as_me:$LINENO: result: $hard_links" >&5
24594echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024595 if test "$hard_links" = no; then
24596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24597echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24598 need_locks=warn
24599 fi
24600else
24601 need_locks=no
24602fi
24603
Reid Spencera773bd52006-08-04 18:18:08 +000024604{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24605echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024606
24607 runpath_var=
24608 allow_undefined_flag_GCJ=
24609 enable_shared_with_static_runtimes_GCJ=no
24610 archive_cmds_GCJ=
24611 archive_expsym_cmds_GCJ=
24612 old_archive_From_new_cmds_GCJ=
24613 old_archive_from_expsyms_cmds_GCJ=
24614 export_dynamic_flag_spec_GCJ=
24615 whole_archive_flag_spec_GCJ=
24616 thread_safe_flag_spec_GCJ=
24617 hardcode_libdir_flag_spec_GCJ=
24618 hardcode_libdir_flag_spec_ld_GCJ=
24619 hardcode_libdir_separator_GCJ=
24620 hardcode_direct_GCJ=no
24621 hardcode_minus_L_GCJ=no
24622 hardcode_shlibpath_var_GCJ=unsupported
24623 link_all_deplibs_GCJ=unknown
24624 hardcode_automatic_GCJ=no
24625 module_cmds_GCJ=
24626 module_expsym_cmds_GCJ=
24627 always_export_symbols_GCJ=no
24628 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24629 # include_expsyms should be a list of space-separated symbols to be *always*
24630 # included in the symbol list
24631 include_expsyms_GCJ=
24632 # exclude_expsyms can be an extended regexp of symbols to exclude
24633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24635 # as well as any symbol that contains `d'.
24636 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24638 # platforms (ab)use it in PIC code, but their linkers get confused if
24639 # the symbol is explicitly referenced. Since portable code cannot
24640 # rely on this symbol name, it's probably fine to never include it in
24641 # preloaded symbol tables.
24642 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024643 # Just being paranoid about ensuring that cc_basename is set.
24644 for cc_temp in $compiler""; do
24645 case $cc_temp in
24646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24648 \-*) ;;
24649 *) break;;
24650 esac
24651done
24652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024653
24654 case $host_os in
24655 cygwin* | mingw* | pw32*)
24656 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24657 # When not using gcc, we currently assume that we are using
24658 # Microsoft Visual C++.
24659 if test "$GCC" != yes; then
24660 with_gnu_ld=no
24661 fi
24662 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024663 interix*)
24664 # we just hope/assume this is gcc and not c89 (= MSVC++)
24665 with_gnu_ld=yes
24666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024667 openbsd*)
24668 with_gnu_ld=no
24669 ;;
24670 esac
24671
24672 ld_shlibs_GCJ=yes
24673 if test "$with_gnu_ld" = yes; then
24674 # If archive_cmds runs LD, not CC, wlarc should be empty
24675 wlarc='${wl}'
24676
Reid Spencera773bd52006-08-04 18:18:08 +000024677 # Set some defaults for GNU ld with shared library support. These
24678 # are reset later if shared libraries are not supported. Putting them
24679 # here allows them to be overridden if necessary.
24680 runpath_var=LD_RUN_PATH
24681 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24682 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24683 # ancient GNU ld didn't support --whole-archive et. al.
24684 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24685 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24686 else
24687 whole_archive_flag_spec_GCJ=
24688 fi
24689 supports_anon_versioning=no
24690 case `$LD -v 2>/dev/null` in
24691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24694 *\ 2.11.*) ;; # other 2.11 versions
24695 *) supports_anon_versioning=yes ;;
24696 esac
24697
John Criswell47fdd832003-07-14 16:52:07 +000024698 # See if GNU ld supports shared libraries.
24699 case $host_os in
24700 aix3* | aix4* | aix5*)
24701 # On AIX/PPC, the GNU linker is very broken
24702 if test "$host_cpu" != ia64; then
24703 ld_shlibs_GCJ=no
24704 cat <<EOF 1>&2
24705
24706*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24707*** to be unable to reliably create shared libraries on AIX.
24708*** Therefore, libtool is disabling shared libraries support. If you
24709*** really care for shared libraries, you may want to modify your PATH
24710*** so that a non-GNU linker is found, and then restart.
24711
24712EOF
24713 fi
24714 ;;
24715
24716 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024717 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 +000024718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24719 hardcode_minus_L_GCJ=yes
24720
24721 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24722 # that the semantics of dynamic libraries on AmigaOS, at least up
24723 # to version 4, is to share data among multiple programs linked
24724 # with the same dynamic library. Since this doesn't match the
24725 # behavior of shared libraries on other platforms, we can't use
24726 # them.
24727 ld_shlibs_GCJ=no
24728 ;;
24729
24730 beos*)
24731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24732 allow_undefined_flag_GCJ=unsupported
24733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24734 # support --undefined. This deserves some investigation. FIXME
24735 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24736 else
24737 ld_shlibs_GCJ=no
24738 fi
24739 ;;
24740
24741 cygwin* | mingw* | pw32*)
24742 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24743 # as there is no search path for DLLs.
24744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24745 allow_undefined_flag_GCJ=unsupported
24746 always_export_symbols_GCJ=no
24747 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024748 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 +000024749
24750 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024751 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 +000024752 # If the export-symbols file already is a .def file (1st line
24753 # is EXPORTS), use it as is; otherwise, prepend...
24754 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24755 cp $export_symbols $output_objdir/$soname.def;
24756 else
24757 echo EXPORTS > $output_objdir/$soname.def;
24758 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024759 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024760 $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 +000024761 else
Reid Spencera773bd52006-08-04 18:18:08 +000024762 ld_shlibs_GCJ=no
24763 fi
24764 ;;
24765
24766 interix3*)
24767 hardcode_direct_GCJ=no
24768 hardcode_shlibpath_var_GCJ=no
24769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24770 export_dynamic_flag_spec_GCJ='${wl}-E'
24771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24772 # Instead, shared libraries are loaded at an image base (0x10000000 by
24773 # default) and relocated if they conflict, which is a slow very memory
24774 # consuming and fragmenting process. To avoid this, we pick a random,
24775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24776 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24777 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'
24778 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'
24779 ;;
24780
24781 linux*)
24782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24783 tmp_addflag=
24784 case $cc_basename,$host_cpu in
24785 pgcc*) # Portland Group C compiler
24786 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'
24787 tmp_addflag=' $pic_flag'
24788 ;;
24789 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24790 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'
24791 tmp_addflag=' $pic_flag -Mnomain' ;;
24792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24793 tmp_addflag=' -i_dynamic' ;;
24794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24795 tmp_addflag=' -i_dynamic -nofor_main' ;;
24796 ifc* | ifort*) # Intel Fortran compiler
24797 tmp_addflag=' -nofor_main' ;;
24798 esac
24799 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24800
24801 if test $supports_anon_versioning = yes; then
24802 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24804 $echo "local: *; };" >> $output_objdir/$libname.ver~
24805 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24806 fi
24807 else
24808 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024809 fi
24810 ;;
24811
24812 netbsd*)
24813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24814 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24815 wlarc=
24816 else
24817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24818 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24819 fi
24820 ;;
24821
Reid Spencera773bd52006-08-04 18:18:08 +000024822 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024823 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24824 ld_shlibs_GCJ=no
24825 cat <<EOF 1>&2
24826
24827*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24828*** create shared libraries on Solaris systems. Therefore, libtool
24829*** is disabling shared libraries support. We urge you to upgrade GNU
24830*** binutils to release 2.9.1 or newer. Another option is to modify
24831*** your PATH or compiler configuration so that the native linker is
24832*** used, and then restart.
24833
24834EOF
24835 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24838 else
24839 ld_shlibs_GCJ=no
24840 fi
24841 ;;
24842
Reid Spencera773bd52006-08-04 18:18:08 +000024843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24844 case `$LD -v 2>&1` in
24845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24846 ld_shlibs_GCJ=no
24847 cat <<_LT_EOF 1>&2
24848
24849*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24850*** reliably create shared libraries on SCO systems. Therefore, libtool
24851*** is disabling shared libraries support. We urge you to upgrade GNU
24852*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24853*** your PATH or compiler configuration so that the native linker is
24854*** used, and then restart.
24855
24856_LT_EOF
24857 ;;
24858 *)
24859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24860 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24862 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24863 else
24864 ld_shlibs_GCJ=no
24865 fi
24866 ;;
24867 esac
24868 ;;
24869
John Criswell47fdd832003-07-14 16:52:07 +000024870 sunos4*)
24871 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24872 wlarc=
24873 hardcode_direct_GCJ=yes
24874 hardcode_shlibpath_var_GCJ=no
24875 ;;
24876
24877 *)
24878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24879 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24880 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24881 else
24882 ld_shlibs_GCJ=no
24883 fi
24884 ;;
24885 esac
24886
Reid Spencera773bd52006-08-04 18:18:08 +000024887 if test "$ld_shlibs_GCJ" = no; then
24888 runpath_var=
24889 hardcode_libdir_flag_spec_GCJ=
24890 export_dynamic_flag_spec_GCJ=
24891 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024892 fi
24893 else
24894 # PORTME fill in a description of your system's linker (not GNU ld)
24895 case $host_os in
24896 aix3*)
24897 allow_undefined_flag_GCJ=unsupported
24898 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024899 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 +000024900 # Note: this linker hardcodes the directories in LIBPATH if there
24901 # are no directories specified by -L.
24902 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024904 # Neither direct hardcoding nor static linking is supported with a
24905 # broken collect2.
24906 hardcode_direct_GCJ=unsupported
24907 fi
24908 ;;
24909
24910 aix4* | aix5*)
24911 if test "$host_cpu" = ia64; then
24912 # On IA64, the linker does run time linking by default, so we don't
24913 # have to do anything special.
24914 aix_use_runtimelinking=no
24915 exp_sym_flag='-Bexport'
24916 no_entry_flag=""
24917 else
24918 # If we're using GNU nm, then we don't want the "-C" option.
24919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24921 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'
24922 else
24923 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'
24924 fi
24925 aix_use_runtimelinking=no
24926
24927 # Test if we are trying to use run time linking or normal
24928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24929 # need to do runtime linking.
24930 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24931 for ld_flag in $LDFLAGS; do
24932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24933 aix_use_runtimelinking=yes
24934 break
24935 fi
24936 done
Reid Spencera773bd52006-08-04 18:18:08 +000024937 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024938 esac
24939
24940 exp_sym_flag='-bexport'
24941 no_entry_flag='-bnoentry'
24942 fi
24943
24944 # When large executables or shared objects are built, AIX ld can
24945 # have problems creating the table of contents. If linking a library
24946 # or program results in "error TOC overflow" add -mminimal-toc to
24947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24949
24950 archive_cmds_GCJ=''
24951 hardcode_direct_GCJ=yes
24952 hardcode_libdir_separator_GCJ=':'
24953 link_all_deplibs_GCJ=yes
24954
24955 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024956 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024957 # We only want to do this on AIX 4.2 and lower, the check
24958 # below for broken collect2 doesn't work under 4.3+
24959 collect2name=`${CC} -print-prog-name=collect2`
24960 if test -f "$collect2name" && \
24961 strings "$collect2name" | grep resolve_lib_name >/dev/null
24962 then
24963 # We have reworked collect2
24964 hardcode_direct_GCJ=yes
24965 else
24966 # We have old collect2
24967 hardcode_direct_GCJ=unsupported
24968 # It fails to find uninstalled libraries when the uninstalled
24969 # path is not listed in the libpath. Setting hardcode_minus_L
24970 # to unsupported forces relinking
24971 hardcode_minus_L_GCJ=yes
24972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24973 hardcode_libdir_separator_GCJ=
24974 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024975 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024976 esac
24977 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024978 if test "$aix_use_runtimelinking" = yes; then
24979 shared_flag="$shared_flag "'${wl}-G'
24980 fi
John Criswell47fdd832003-07-14 16:52:07 +000024981 else
24982 # not using gcc
24983 if test "$host_cpu" = ia64; then
24984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24985 # chokes on -Wl,-G. The following line is correct:
24986 shared_flag='-G'
24987 else
Reid Spencera773bd52006-08-04 18:18:08 +000024988 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024989 shared_flag='${wl}-G'
24990 else
24991 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024992 fi
John Criswell47fdd832003-07-14 16:52:07 +000024993 fi
24994 fi
24995
24996 # It seems that -bexpall does not export symbols beginning with
24997 # underscore (_), so it is better to generate a list of symbols to export.
24998 always_export_symbols_GCJ=yes
24999 if test "$aix_use_runtimelinking" = yes; then
25000 # Warning - without using the other runtime loading flags (-brtl),
25001 # -berok will link without error, but may produce a broken library.
25002 allow_undefined_flag_GCJ='-berok'
25003 # Determine the default libpath from the value encoded in an empty executable.
25004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025005/* confdefs.h. */
25006_ACEOF
25007cat confdefs.h >>conftest.$ac_ext
25008cat >>conftest.$ac_ext <<_ACEOF
25009/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025010
John Criswell47fdd832003-07-14 16:52:07 +000025011int
25012main ()
25013{
25014
25015 ;
25016 return 0;
25017}
25018_ACEOF
25019rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025020if { (ac_try="$ac_link"
25021case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25024esac
25025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025027 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025028 grep -v '^ *+' conftest.er1 >conftest.err
25029 rm -f conftest.er1
25030 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025032 (exit $ac_status); } &&
25033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25034 { (case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25037esac
25038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039 (eval "$ac_try") 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; } &&
25043 { ac_try='test -s conftest$ac_exeext'
25044 { (case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047esac
25048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_try") 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025053
25054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25055}'`
25056# Check for a 64-bit object if we didn't find anything.
25057if 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; }
25058}'`; fi
25059else
25060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025061sed 's/^/| /' conftest.$ac_ext >&5
25062
Reid Spencera773bd52006-08-04 18:18:08 +000025063
John Criswell47fdd832003-07-14 16:52:07 +000025064fi
Reid Spencera773bd52006-08-04 18:18:08 +000025065
Bill Wendlingebcceee2009-04-18 11:20:33 +000025066rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025067 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25069
25070 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025071 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 +000025072 else
25073 if test "$host_cpu" = ia64; then
25074 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25075 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025076 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 +000025077 else
25078 # Determine the default libpath from the value encoded in an empty executable.
25079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025080/* confdefs.h. */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025085
John Criswell47fdd832003-07-14 16:52:07 +000025086int
25087main ()
25088{
25089
25090 ;
25091 return 0;
25092}
25093_ACEOF
25094rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025095if { (ac_try="$ac_link"
25096case "(($ac_try" in
25097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098 *) ac_try_echo=$ac_try;;
25099esac
25100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025107 (exit $ac_status); } &&
25108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25109 { (case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112esac
25113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_try") 2>&5
25115 ac_status=$?
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; } &&
25118 { ac_try='test -s conftest$ac_exeext'
25119 { (case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122esac
25123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124 (eval "$ac_try") 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025128
25129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25130}'`
25131# Check for a 64-bit object if we didn't find anything.
25132if 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; }
25133}'`; fi
25134else
25135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025136sed 's/^/| /' conftest.$ac_ext >&5
25137
Reid Spencera773bd52006-08-04 18:18:08 +000025138
John Criswell47fdd832003-07-14 16:52:07 +000025139fi
Reid Spencera773bd52006-08-04 18:18:08 +000025140
Bill Wendlingebcceee2009-04-18 11:20:33 +000025141rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025142 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25144
25145 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25146 # Warning - without using the other run time loading flags,
25147 # -berok will link without error, but may produce a broken library.
25148 no_undefined_flag_GCJ=' ${wl}-bernotok'
25149 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025150 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025151 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025152 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025153 # This is similar to how AIX traditionally builds its shared libraries.
25154 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 +000025155 fi
25156 fi
25157 ;;
25158
25159 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025160 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 +000025161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25162 hardcode_minus_L_GCJ=yes
25163 # see comment about different semantics on the GNU ld section
25164 ld_shlibs_GCJ=no
25165 ;;
25166
Reid Spencer2706f8c2004-09-19 23:53:36 +000025167 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025168 export_dynamic_flag_spec_GCJ=-rdynamic
25169 ;;
25170
25171 cygwin* | mingw* | pw32*)
25172 # When not using gcc, we currently assume that we are using
25173 # Microsoft Visual C++.
25174 # hardcode_libdir_flag_spec is actually meaningless, as there is
25175 # no search path for DLLs.
25176 hardcode_libdir_flag_spec_GCJ=' '
25177 allow_undefined_flag_GCJ=unsupported
25178 # Tell ltmain to make .lib files, not .a files.
25179 libext=lib
25180 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025181 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025182 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025183 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 +000025184 # The linker will automatically build a .lib file if we build a DLL.
25185 old_archive_From_new_cmds_GCJ='true'
25186 # FIXME: Should let the user specify the lib program.
25187 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025188 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025189 enable_shared_with_static_runtimes_GCJ=yes
25190 ;;
25191
25192 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025193 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025194 rhapsody* | darwin1.[012])
25195 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25196 ;;
25197 *) # Darwin 1.3 on
25198 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25199 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25200 else
25201 case ${MACOSX_DEPLOYMENT_TARGET} in
25202 10.[012])
25203 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25204 ;;
25205 10.*)
25206 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25207 ;;
25208 esac
25209 fi
25210 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025211 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025212 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025213 hardcode_direct_GCJ=no
25214 hardcode_automatic_GCJ=yes
25215 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025216 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025217 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025218 if test "$GCC" = yes ; then
25219 output_verbose_link_cmd='echo'
25220 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025222 # 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 +000025223 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}'
25224 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 +000025225 else
Reid Spencera773bd52006-08-04 18:18:08 +000025226 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227 xlc*)
25228 output_verbose_link_cmd='echo'
25229 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25230 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025231 # 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 +000025232 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}'
25233 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 +000025234 ;;
25235 *)
25236 ld_shlibs_GCJ=no
25237 ;;
25238 esac
John Criswell47fdd832003-07-14 16:52:07 +000025239 fi
25240 ;;
25241
25242 dgux*)
25243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25245 hardcode_shlibpath_var_GCJ=no
25246 ;;
25247
25248 freebsd1*)
25249 ld_shlibs_GCJ=no
25250 ;;
25251
25252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25253 # support. Future versions do this automatically, but an explicit c++rt0.o
25254 # does not break anything, and helps significantly (at the cost of a little
25255 # extra space).
25256 freebsd2.2*)
25257 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25261 ;;
25262
25263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25264 freebsd2*)
25265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25266 hardcode_direct_GCJ=yes
25267 hardcode_minus_L_GCJ=yes
25268 hardcode_shlibpath_var_GCJ=no
25269 ;;
25270
25271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025272 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025273 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25274 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25275 hardcode_direct_GCJ=yes
25276 hardcode_shlibpath_var_GCJ=no
25277 ;;
25278
25279 hpux9*)
25280 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025281 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 +000025282 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025283 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 +000025284 fi
25285 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25286 hardcode_libdir_separator_GCJ=:
25287 hardcode_direct_GCJ=yes
25288
25289 # hardcode_minus_L: Not really in the search PATH,
25290 # but as the default location of the library.
25291 hardcode_minus_L_GCJ=yes
25292 export_dynamic_flag_spec_GCJ='${wl}-E'
25293 ;;
25294
Reid Spencera773bd52006-08-04 18:18:08 +000025295 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025297 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25298 else
25299 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25300 fi
25301 if test "$with_gnu_ld" = no; then
25302 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25303 hardcode_libdir_separator_GCJ=:
25304
25305 hardcode_direct_GCJ=yes
25306 export_dynamic_flag_spec_GCJ='${wl}-E'
25307
25308 # hardcode_minus_L: Not really in the search PATH,
25309 # but as the default location of the library.
25310 hardcode_minus_L_GCJ=yes
25311 fi
25312 ;;
25313
25314 hpux11*)
25315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25316 case $host_cpu in
25317 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025318 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25319 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025320 ia64*)
25321 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25322 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025323 *)
25324 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25325 ;;
25326 esac
25327 else
Reid Spencera773bd52006-08-04 18:18:08 +000025328 case $host_cpu in
25329 hppa*64*)
25330 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25331 ;;
25332 ia64*)
25333 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025334 ;;
25335 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025336 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 +000025337 ;;
25338 esac
25339 fi
25340 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025341 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25342 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025343
Reid Spencera773bd52006-08-04 18:18:08 +000025344 case $host_cpu in
25345 hppa*64*|ia64*)
25346 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25347 hardcode_direct_GCJ=no
25348 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025349 ;;
25350 *)
John Criswell47fdd832003-07-14 16:52:07 +000025351 hardcode_direct_GCJ=yes
25352 export_dynamic_flag_spec_GCJ='${wl}-E'
25353
25354 # hardcode_minus_L: Not really in the search PATH,
25355 # but as the default location of the library.
25356 hardcode_minus_L_GCJ=yes
25357 ;;
25358 esac
25359 fi
25360 ;;
25361
25362 irix5* | irix6* | nonstopux*)
25363 if test "$GCC" = yes; then
25364 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'
25365 else
25366 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'
25367 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25368 fi
25369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25370 hardcode_libdir_separator_GCJ=:
25371 link_all_deplibs_GCJ=yes
25372 ;;
25373
25374 netbsd*)
25375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25376 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25377 else
25378 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25379 fi
25380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25381 hardcode_direct_GCJ=yes
25382 hardcode_shlibpath_var_GCJ=no
25383 ;;
25384
25385 newsos6)
25386 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25387 hardcode_direct_GCJ=yes
25388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25389 hardcode_libdir_separator_GCJ=:
25390 hardcode_shlibpath_var_GCJ=no
25391 ;;
25392
25393 openbsd*)
25394 hardcode_direct_GCJ=yes
25395 hardcode_shlibpath_var_GCJ=no
25396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25397 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398 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 +000025399 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25400 export_dynamic_flag_spec_GCJ='${wl}-E'
25401 else
25402 case $host_os in
25403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25404 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25405 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25406 ;;
25407 *)
25408 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25410 ;;
25411 esac
25412 fi
25413 ;;
25414
25415 os2*)
25416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25417 hardcode_minus_L_GCJ=yes
25418 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025419 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 +000025420 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25421 ;;
25422
25423 osf3*)
25424 if test "$GCC" = yes; then
25425 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25426 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'
25427 else
25428 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25429 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'
25430 fi
25431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25432 hardcode_libdir_separator_GCJ=:
25433 ;;
25434
25435 osf4* | osf5*) # as osf3* with the addition of -msym flag
25436 if test "$GCC" = yes; then
25437 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25438 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'
25439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25440 else
25441 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25442 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 +000025443 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 +000025444 $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 +000025445
John Criswell47fdd832003-07-14 16:52:07 +000025446 # Both c and cxx compiler support -rpath directly
25447 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25448 fi
25449 hardcode_libdir_separator_GCJ=:
25450 ;;
25451
John Criswell47fdd832003-07-14 16:52:07 +000025452 solaris*)
25453 no_undefined_flag_GCJ=' -z text'
25454 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025455 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025456 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025457 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25458 $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 +000025459 else
Reid Spencera773bd52006-08-04 18:18:08 +000025460 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025461 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025462 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25463 $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 +000025464 fi
25465 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25466 hardcode_shlibpath_var_GCJ=no
25467 case $host_os in
25468 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025469 *)
25470 # The compiler driver will combine linker options so we
25471 # cannot just pass the convience library names through
25472 # without $wl, iff we do not link with $LD.
25473 # Luckily, gcc supports the same syntax we need for Sun Studio.
25474 # Supported since Solaris 2.6 (maybe 2.5.1?)
25475 case $wlarc in
25476 '')
25477 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25478 *)
25479 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' ;;
25480 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025481 esac
25482 link_all_deplibs_GCJ=yes
25483 ;;
25484
25485 sunos4*)
25486 if test "x$host_vendor" = xsequent; then
25487 # Use $CC to link under sequent, because it throws in some extra .o
25488 # files that make .init and .fini sections work.
25489 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25490 else
25491 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25492 fi
25493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25494 hardcode_direct_GCJ=yes
25495 hardcode_minus_L_GCJ=yes
25496 hardcode_shlibpath_var_GCJ=no
25497 ;;
25498
25499 sysv4)
25500 case $host_vendor in
25501 sni)
25502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25503 hardcode_direct_GCJ=yes # is this really true???
25504 ;;
25505 siemens)
25506 ## LD is ld it makes a PLAMLIB
25507 ## CC just makes a GrossModule.
25508 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25509 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25510 hardcode_direct_GCJ=no
25511 ;;
25512 motorola)
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25515 ;;
25516 esac
25517 runpath_var='LD_RUN_PATH'
25518 hardcode_shlibpath_var_GCJ=no
25519 ;;
25520
25521 sysv4.3*)
25522 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25523 hardcode_shlibpath_var_GCJ=no
25524 export_dynamic_flag_spec_GCJ='-Bexport'
25525 ;;
25526
25527 sysv4*MP*)
25528 if test -d /usr/nec; then
25529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25530 hardcode_shlibpath_var_GCJ=no
25531 runpath_var=LD_RUN_PATH
25532 hardcode_runpath_var=yes
25533 ld_shlibs_GCJ=yes
25534 fi
25535 ;;
25536
Reid Spencera773bd52006-08-04 18:18:08 +000025537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25538 no_undefined_flag_GCJ='${wl}-z,text'
25539 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025540 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025541 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025542
John Criswell47fdd832003-07-14 16:52:07 +000025543 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025544 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25545 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 +000025546 else
Reid Spencera773bd52006-08-04 18:18:08 +000025547 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25548 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 +000025549 fi
John Criswell47fdd832003-07-14 16:52:07 +000025550 ;;
25551
Reid Spencera773bd52006-08-04 18:18:08 +000025552 sysv5* | sco3.2v5* | sco5v6*)
25553 # Note: We can NOT use -z defs as we might desire, because we do not
25554 # link with -lc, and that would cause any symbols used from libc to
25555 # always be unresolved, which means just about no library would
25556 # ever link correctly. If we're not using GNU ld we use -z text
25557 # though, which does catch some bad symbols but isn't as heavy-handed
25558 # as -z defs.
25559 no_undefined_flag_GCJ='${wl}-z,text'
25560 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25561 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025562 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025563 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25564 hardcode_libdir_separator_GCJ=':'
25565 link_all_deplibs_GCJ=yes
25566 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025567 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025568
25569 if test "$GCC" = yes; then
25570 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25571 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25572 else
25573 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25574 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25575 fi
John Criswell47fdd832003-07-14 16:52:07 +000025576 ;;
25577
25578 uts4*)
25579 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25581 hardcode_shlibpath_var_GCJ=no
25582 ;;
25583
25584 *)
25585 ld_shlibs_GCJ=no
25586 ;;
25587 esac
25588 fi
25589
Reid Spencera773bd52006-08-04 18:18:08 +000025590{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25591echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025592test "$ld_shlibs_GCJ" = no && can_build_shared=no
25593
John Criswell47fdd832003-07-14 16:52:07 +000025594#
25595# Do we need to explicitly link libc?
25596#
25597case "x$archive_cmds_need_lc_GCJ" in
25598x|xyes)
25599 # Assume -lc should be added
25600 archive_cmds_need_lc_GCJ=yes
25601
25602 if test "$enable_shared" = yes && test "$GCC" = yes; then
25603 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025604 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025605 # FIXME: we may have to deal with multi-command sequences.
25606 ;;
25607 '$CC '*)
25608 # Test whether the compiler implicitly links with -lc since on some
25609 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25610 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025611 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25612echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025613 $rm conftest*
25614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25615
25616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25617 (eval $ac_compile) 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } 2>conftest.err; then
25621 soname=conftest
25622 lib=conftest
25623 libobjs=conftest.$ac_objext
25624 deplibs=
25625 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025626 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025627 compiler_flags=-v
25628 linker_flags=-v
25629 verstring=
25630 output_objdir=.
25631 libname=conftest
25632 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25633 allow_undefined_flag_GCJ=
25634 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25635 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }
25639 then
25640 archive_cmds_need_lc_GCJ=no
25641 else
25642 archive_cmds_need_lc_GCJ=yes
25643 fi
25644 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25645 else
25646 cat conftest.err 1>&5
25647 fi
25648 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025649 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25650echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025651 ;;
25652 esac
25653 fi
25654 ;;
25655esac
25656
Reid Spencera773bd52006-08-04 18:18:08 +000025657{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25658echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025659library_names_spec=
25660libname_spec='lib$name'
25661soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025662shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025663postinstall_cmds=
25664postuninstall_cmds=
25665finish_cmds=
25666finish_eval=
25667shlibpath_var=
25668shlibpath_overrides_runpath=unknown
25669version_type=none
25670dynamic_linker="$host_os ld.so"
25671sys_lib_dlsearch_path_spec="/lib /usr/lib"
25672if test "$GCC" = yes; then
25673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25674 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25675 # if the path contains ";" then we assume it to be the separator
25676 # otherwise default to the standard path separator (i.e. ":") - it is
25677 # assumed that no part of a normal pathname contains ";" but that should
25678 # okay in the real world where ";" in dirpaths is itself problematic.
25679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25680 else
25681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25682 fi
25683else
25684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25685fi
25686need_lib_prefix=unknown
25687hardcode_into_libs=no
25688
25689# when you set need_version to no, make sure it does not cause -set_version
25690# flags to be left without arguments
25691need_version=unknown
25692
25693case $host_os in
25694aix3*)
25695 version_type=linux
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25697 shlibpath_var=LIBPATH
25698
25699 # AIX 3 has no versioning support, so we append a major version to the name.
25700 soname_spec='${libname}${release}${shared_ext}$major'
25701 ;;
25702
25703aix4* | aix5*)
25704 version_type=linux
25705 need_lib_prefix=no
25706 need_version=no
25707 hardcode_into_libs=yes
25708 if test "$host_cpu" = ia64; then
25709 # AIX 5 supports IA64
25710 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25711 shlibpath_var=LD_LIBRARY_PATH
25712 else
25713 # With GCC up to 2.95.x, collect2 would create an import file
25714 # for dependence libraries. The import file would start with
25715 # the line `#! .'. This would cause the generated library to
25716 # depend on `.', always an invalid library. This was fixed in
25717 # development snapshots of GCC prior to 3.0.
25718 case $host_os in
25719 aix4 | aix4.[01] | aix4.[01].*)
25720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25721 echo ' yes '
25722 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25723 :
25724 else
25725 can_build_shared=no
25726 fi
25727 ;;
25728 esac
25729 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25730 # soname into executable. Probably we can add versioning support to
25731 # collect2, so additional links can be useful in future.
25732 if test "$aix_use_runtimelinking" = yes; then
25733 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25734 # instead of lib<name>.a to let people know that these are not
25735 # typical AIX shared libraries.
25736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25737 else
25738 # We preserve .a as extension for shared libraries through AIX4.2
25739 # and later when we are not doing run time linking.
25740 library_names_spec='${libname}${release}.a $libname.a'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 fi
25743 shlibpath_var=LIBPATH
25744 fi
25745 ;;
25746
25747amigaos*)
25748 library_names_spec='$libname.ixlibrary $libname.a'
25749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025750 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 +000025751 ;;
25752
25753beos*)
25754 library_names_spec='${libname}${shared_ext}'
25755 dynamic_linker="$host_os ld.so"
25756 shlibpath_var=LIBRARY_PATH
25757 ;;
25758
Reid Spencer2706f8c2004-09-19 23:53:36 +000025759bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025760 version_type=linux
25761 need_version=no
25762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763 soname_spec='${libname}${release}${shared_ext}$major'
25764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25765 shlibpath_var=LD_LIBRARY_PATH
25766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25768 # the default ld.so.conf also contains /usr/contrib/lib and
25769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25770 # libtool to hard-code these into programs
25771 ;;
25772
25773cygwin* | mingw* | pw32*)
25774 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025775 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025776 need_version=no
25777 need_lib_prefix=no
25778
25779 case $GCC,$host_os in
25780 yes,cygwin* | yes,mingw* | yes,pw32*)
25781 library_names_spec='$libname.dll.a'
25782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025783 postinstall_cmds='base_file=`basename \${file}`~
25784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25785 dldir=$destdir/`dirname \$dlpath`~
25786 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025787 $install_prog $dir/$dlname \$dldir/$dlname~
25788 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25790 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025791 $rm \$dlpath'
25792 shlibpath_overrides_runpath=yes
25793
25794 case $host_os in
25795 cygwin*)
25796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25797 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 +000025798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025799 ;;
25800 mingw*)
25801 # MinGW DLLs use traditional 'lib' prefix
25802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25804 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25805 # It is most probably a Windows format PATH printed by
25806 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25807 # path with ; separators, and with drive letters. We can handle the
25808 # drive letters (cygwin fileutils understands them), so leave them,
25809 # especially as we might pass files found there to a mingw objdump,
25810 # which wouldn't understand a cygwinified path. Ahh.
25811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25812 else
25813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25814 fi
25815 ;;
25816 pw32*)
25817 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025818 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 +000025819 ;;
25820 esac
25821 ;;
25822
25823 *)
25824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25825 ;;
25826 esac
25827 dynamic_linker='Win32 ld.exe'
25828 # FIXME: first we should search . and the directory the executable is in
25829 shlibpath_var=PATH
25830 ;;
25831
25832darwin* | rhapsody*)
25833 dynamic_linker="$host_os dyld"
25834 version_type=darwin
25835 need_lib_prefix=no
25836 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025837 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025838 soname_spec='${libname}${release}${major}$shared_ext'
25839 shlibpath_overrides_runpath=yes
25840 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025841 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025842 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025843 if test "$GCC" = yes; then
25844 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"`
25845 else
25846 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025847 fi
25848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25849 ;;
25850
25851dgux*)
25852 version_type=linux
25853 need_lib_prefix=no
25854 need_version=no
25855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25856 soname_spec='${libname}${release}${shared_ext}$major'
25857 shlibpath_var=LD_LIBRARY_PATH
25858 ;;
25859
25860freebsd1*)
25861 dynamic_linker=no
25862 ;;
25863
Reid Spencer2706f8c2004-09-19 23:53:36 +000025864kfreebsd*-gnu)
25865 version_type=linux
25866 need_lib_prefix=no
25867 need_version=no
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25869 soname_spec='${libname}${release}${shared_ext}$major'
25870 shlibpath_var=LD_LIBRARY_PATH
25871 shlibpath_overrides_runpath=no
25872 hardcode_into_libs=yes
25873 dynamic_linker='GNU ld.so'
25874 ;;
25875
Reid Spencera773bd52006-08-04 18:18:08 +000025876freebsd* | dragonfly*)
25877 # DragonFly does not have aout. When/if they implement a new
25878 # versioning mechanism, adjust this.
25879 if test -x /usr/bin/objformat; then
25880 objformat=`/usr/bin/objformat`
25881 else
25882 case $host_os in
25883 freebsd[123]*) objformat=aout ;;
25884 *) objformat=elf ;;
25885 esac
25886 fi
John Criswell47fdd832003-07-14 16:52:07 +000025887 version_type=freebsd-$objformat
25888 case $version_type in
25889 freebsd-elf*)
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25891 need_version=no
25892 need_lib_prefix=no
25893 ;;
25894 freebsd-*)
25895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25896 need_version=yes
25897 ;;
25898 esac
25899 shlibpath_var=LD_LIBRARY_PATH
25900 case $host_os in
25901 freebsd2*)
25902 shlibpath_overrides_runpath=yes
25903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025904 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025905 shlibpath_overrides_runpath=yes
25906 hardcode_into_libs=yes
25907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025910 shlibpath_overrides_runpath=no
25911 hardcode_into_libs=yes
25912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025913 freebsd*) # from 4.6 on
25914 shlibpath_overrides_runpath=yes
25915 hardcode_into_libs=yes
25916 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025917 esac
25918 ;;
25919
25920gnu*)
25921 version_type=linux
25922 need_lib_prefix=no
25923 need_version=no
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 shlibpath_var=LD_LIBRARY_PATH
25927 hardcode_into_libs=yes
25928 ;;
25929
25930hpux9* | hpux10* | hpux11*)
25931 # Give a soname corresponding to the major version so that dld.sl refuses to
25932 # link against other versions.
25933 version_type=sunos
25934 need_lib_prefix=no
25935 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025936 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025937 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025938 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025939 hardcode_into_libs=yes
25940 dynamic_linker="$host_os dld.so"
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25944 soname_spec='${libname}${release}${shared_ext}$major'
25945 if test "X$HPUX_IA64_MODE" = X32; then
25946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25947 else
25948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25949 fi
25950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25951 ;;
25952 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025953 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025954 hardcode_into_libs=yes
25955 dynamic_linker="$host_os dld.sl"
25956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25959 soname_spec='${libname}${release}${shared_ext}$major'
25960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25962 ;;
25963 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025964 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025965 dynamic_linker="$host_os dld.sl"
25966 shlibpath_var=SHLIB_PATH
25967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25969 soname_spec='${libname}${release}${shared_ext}$major'
25970 ;;
25971 esac
25972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25973 postinstall_cmds='chmod 555 $lib'
25974 ;;
25975
Reid Spencera773bd52006-08-04 18:18:08 +000025976interix3*)
25977 version_type=linux
25978 need_lib_prefix=no
25979 need_version=no
25980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25981 soname_spec='${libname}${release}${shared_ext}$major'
25982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=no
25985 hardcode_into_libs=yes
25986 ;;
25987
John Criswell47fdd832003-07-14 16:52:07 +000025988irix5* | irix6* | nonstopux*)
25989 case $host_os in
25990 nonstopux*) version_type=nonstopux ;;
25991 *)
25992 if test "$lt_cv_prog_gnu_ld" = yes; then
25993 version_type=linux
25994 else
25995 version_type=irix
25996 fi ;;
25997 esac
25998 need_lib_prefix=no
25999 need_version=no
26000 soname_spec='${libname}${release}${shared_ext}$major'
26001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26002 case $host_os in
26003 irix5* | nonstopux*)
26004 libsuff= shlibsuff=
26005 ;;
26006 *)
26007 case $LD in # libtool.m4 will add one of these switches to LD
26008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26009 libsuff= shlibsuff= libmagic=32-bit;;
26010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26011 libsuff=32 shlibsuff=N32 libmagic=N32;;
26012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26014 *) libsuff= shlibsuff= libmagic=never-match;;
26015 esac
26016 ;;
26017 esac
26018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26019 shlibpath_overrides_runpath=no
26020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26022 hardcode_into_libs=yes
26023 ;;
26024
26025# No shared lib support for Linux oldld, aout, or coff.
26026linux*oldld* | linux*aout* | linux*coff*)
26027 dynamic_linker=no
26028 ;;
26029
26030# This must be Linux ELF.
26031linux*)
26032 version_type=linux
26033 need_lib_prefix=no
26034 need_version=no
26035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26036 soname_spec='${libname}${release}${shared_ext}$major'
26037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26038 shlibpath_var=LD_LIBRARY_PATH
26039 shlibpath_overrides_runpath=no
26040 # This implies no fast_install, which is unacceptable.
26041 # Some rework will be needed to allow for fast_install
26042 # before this can be enabled.
26043 hardcode_into_libs=yes
26044
Reid Spencer2706f8c2004-09-19 23:53:36 +000026045 # Append ld.so.conf contents to the search path
26046 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026047 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 +000026048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26049 fi
26050
John Criswell47fdd832003-07-14 16:52:07 +000026051 # We used to test for /lib/ld.so.1 and disable shared libraries on
26052 # powerpc, because MkLinux only supported shared libraries with the
26053 # GNU dynamic linker. Since this was broken with cross compilers,
26054 # most powerpc-linux boxes support dynamic linking these days and
26055 # people can always --disable-shared, the test was removed, and we
26056 # assume the GNU/Linux dynamic linker is in use.
26057 dynamic_linker='GNU/Linux ld.so'
26058 ;;
26059
Reid Spencer2706f8c2004-09-19 23:53:36 +000026060knetbsd*-gnu)
26061 version_type=linux
26062 need_lib_prefix=no
26063 need_version=no
26064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26065 soname_spec='${libname}${release}${shared_ext}$major'
26066 shlibpath_var=LD_LIBRARY_PATH
26067 shlibpath_overrides_runpath=no
26068 hardcode_into_libs=yes
26069 dynamic_linker='GNU ld.so'
26070 ;;
26071
John Criswell47fdd832003-07-14 16:52:07 +000026072netbsd*)
26073 version_type=sunos
26074 need_lib_prefix=no
26075 need_version=no
26076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26079 dynamic_linker='NetBSD (a.out) ld.so'
26080 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026082 soname_spec='${libname}${release}${shared_ext}$major'
26083 dynamic_linker='NetBSD ld.elf_so'
26084 fi
26085 shlibpath_var=LD_LIBRARY_PATH
26086 shlibpath_overrides_runpath=yes
26087 hardcode_into_libs=yes
26088 ;;
26089
26090newsos6)
26091 version_type=linux
26092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26093 shlibpath_var=LD_LIBRARY_PATH
26094 shlibpath_overrides_runpath=yes
26095 ;;
26096
Reid Spencer2706f8c2004-09-19 23:53:36 +000026097nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026098 version_type=linux
26099 need_lib_prefix=no
26100 need_version=no
26101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26102 soname_spec='${libname}${release}${shared_ext}$major'
26103 shlibpath_var=LD_LIBRARY_PATH
26104 shlibpath_overrides_runpath=yes
26105 ;;
26106
26107openbsd*)
26108 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026109 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026110 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26112 case $host_os in
26113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26114 *) need_version=no ;;
26115 esac
John Criswell47fdd832003-07-14 16:52:07 +000026116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26118 shlibpath_var=LD_LIBRARY_PATH
26119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26120 case $host_os in
26121 openbsd2.[89] | openbsd2.[89].*)
26122 shlibpath_overrides_runpath=no
26123 ;;
26124 *)
26125 shlibpath_overrides_runpath=yes
26126 ;;
26127 esac
26128 else
26129 shlibpath_overrides_runpath=yes
26130 fi
26131 ;;
26132
26133os2*)
26134 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026135 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026136 need_lib_prefix=no
26137 library_names_spec='$libname${shared_ext} $libname.a'
26138 dynamic_linker='OS/2 ld.exe'
26139 shlibpath_var=LIBPATH
26140 ;;
26141
26142osf3* | osf4* | osf5*)
26143 version_type=osf
26144 need_lib_prefix=no
26145 need_version=no
26146 soname_spec='${libname}${release}${shared_ext}$major'
26147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26151 ;;
26152
John Criswell47fdd832003-07-14 16:52:07 +000026153solaris*)
26154 version_type=linux
26155 need_lib_prefix=no
26156 need_version=no
26157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26158 soname_spec='${libname}${release}${shared_ext}$major'
26159 shlibpath_var=LD_LIBRARY_PATH
26160 shlibpath_overrides_runpath=yes
26161 hardcode_into_libs=yes
26162 # ldd complains unless libraries are executable
26163 postinstall_cmds='chmod +x $lib'
26164 ;;
26165
26166sunos4*)
26167 version_type=sunos
26168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26170 shlibpath_var=LD_LIBRARY_PATH
26171 shlibpath_overrides_runpath=yes
26172 if test "$with_gnu_ld" = yes; then
26173 need_lib_prefix=no
26174 fi
26175 need_version=yes
26176 ;;
26177
Reid Spencera773bd52006-08-04 18:18:08 +000026178sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026179 version_type=linux
26180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26181 soname_spec='${libname}${release}${shared_ext}$major'
26182 shlibpath_var=LD_LIBRARY_PATH
26183 case $host_vendor in
26184 sni)
26185 shlibpath_overrides_runpath=no
26186 need_lib_prefix=no
26187 export_dynamic_flag_spec='${wl}-Blargedynsym'
26188 runpath_var=LD_RUN_PATH
26189 ;;
26190 siemens)
26191 need_lib_prefix=no
26192 ;;
26193 motorola)
26194 need_lib_prefix=no
26195 need_version=no
26196 shlibpath_overrides_runpath=no
26197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26198 ;;
26199 esac
26200 ;;
26201
26202sysv4*MP*)
26203 if test -d /usr/nec ;then
26204 version_type=linux
26205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26206 soname_spec='$libname${shared_ext}.$major'
26207 shlibpath_var=LD_LIBRARY_PATH
26208 fi
26209 ;;
26210
Reid Spencera773bd52006-08-04 18:18:08 +000026211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26212 version_type=freebsd-elf
26213 need_lib_prefix=no
26214 need_version=no
26215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26216 soname_spec='${libname}${release}${shared_ext}$major'
26217 shlibpath_var=LD_LIBRARY_PATH
26218 hardcode_into_libs=yes
26219 if test "$with_gnu_ld" = yes; then
26220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26221 shlibpath_overrides_runpath=no
26222 else
26223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26224 shlibpath_overrides_runpath=yes
26225 case $host_os in
26226 sco3.2v5*)
26227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26228 ;;
26229 esac
26230 fi
26231 sys_lib_dlsearch_path_spec='/usr/lib'
26232 ;;
26233
John Criswell47fdd832003-07-14 16:52:07 +000026234uts4*)
26235 version_type=linux
26236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26237 soname_spec='${libname}${release}${shared_ext}$major'
26238 shlibpath_var=LD_LIBRARY_PATH
26239 ;;
26240
26241*)
26242 dynamic_linker=no
26243 ;;
26244esac
Reid Spencera773bd52006-08-04 18:18:08 +000026245{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26246echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026247test "$dynamic_linker" = no && can_build_shared=no
26248
Reid Spencera773bd52006-08-04 18:18:08 +000026249variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26250if test "$GCC" = yes; then
26251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26252fi
26253
26254{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026256hardcode_action_GCJ=
26257if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26258 test -n "$runpath_var_GCJ" || \
26259 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26260
26261 # We can hardcode non-existant directories.
26262 if test "$hardcode_direct_GCJ" != no &&
26263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26264 # have to relink, otherwise we might link with an installed library
26265 # when we should be linking with a yet-to-be-installed one
26266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26267 test "$hardcode_minus_L_GCJ" != no; then
26268 # Linking always hardcodes the temporary library directory.
26269 hardcode_action_GCJ=relink
26270 else
26271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26272 hardcode_action_GCJ=immediate
26273 fi
26274else
26275 # We cannot hardcode anything, or else we can only hardcode existing
26276 # directories.
26277 hardcode_action_GCJ=unsupported
26278fi
Reid Spencera773bd52006-08-04 18:18:08 +000026279{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26280echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026281
26282if test "$hardcode_action_GCJ" = relink; then
26283 # Fast installation is not supported
26284 enable_fast_install=no
26285elif test "$shlibpath_overrides_runpath" = yes ||
26286 test "$enable_shared" = no; then
26287 # Fast installation is not necessary
26288 enable_fast_install=needless
26289fi
26290
John Criswell47fdd832003-07-14 16:52:07 +000026291
26292# The else clause should only fire when bootstrapping the
26293# libtool distribution, otherwise you forgot to ship ltmain.sh
26294# with your package, and you will get complaints that there are
26295# no rules to generate ltmain.sh.
26296if test -f "$ltmain"; then
26297 # See if we are running on zsh, and set the options which allow our commands through
26298 # without removal of \ escapes.
26299 if test -n "${ZSH_VERSION+set}" ; then
26300 setopt NO_GLOB_SUBST
26301 fi
26302 # Now quote all the things that may contain metacharacters while being
26303 # careful not to overquote the AC_SUBSTed values. We take copies of the
26304 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026305 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 +000026306 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26309 deplibs_check_method reload_flag reload_cmds need_locks \
26310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26311 lt_cv_sys_global_symbol_to_c_name_address \
26312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26313 old_postinstall_cmds old_postuninstall_cmds \
26314 compiler_GCJ \
26315 CC_GCJ \
26316 LD_GCJ \
26317 lt_prog_compiler_wl_GCJ \
26318 lt_prog_compiler_pic_GCJ \
26319 lt_prog_compiler_static_GCJ \
26320 lt_prog_compiler_no_builtin_flag_GCJ \
26321 export_dynamic_flag_spec_GCJ \
26322 thread_safe_flag_spec_GCJ \
26323 whole_archive_flag_spec_GCJ \
26324 enable_shared_with_static_runtimes_GCJ \
26325 old_archive_cmds_GCJ \
26326 old_archive_from_new_cmds_GCJ \
26327 predep_objects_GCJ \
26328 postdep_objects_GCJ \
26329 predeps_GCJ \
26330 postdeps_GCJ \
26331 compiler_lib_search_path_GCJ \
26332 archive_cmds_GCJ \
26333 archive_expsym_cmds_GCJ \
26334 postinstall_cmds_GCJ \
26335 postuninstall_cmds_GCJ \
26336 old_archive_from_expsyms_cmds_GCJ \
26337 allow_undefined_flag_GCJ \
26338 no_undefined_flag_GCJ \
26339 export_symbols_cmds_GCJ \
26340 hardcode_libdir_flag_spec_GCJ \
26341 hardcode_libdir_flag_spec_ld_GCJ \
26342 hardcode_libdir_separator_GCJ \
26343 hardcode_automatic_GCJ \
26344 module_cmds_GCJ \
26345 module_expsym_cmds_GCJ \
26346 lt_cv_prog_compiler_c_o_GCJ \
26347 exclude_expsyms_GCJ \
26348 include_expsyms_GCJ; do
26349
26350 case $var in
26351 old_archive_cmds_GCJ | \
26352 old_archive_from_new_cmds_GCJ | \
26353 archive_cmds_GCJ | \
26354 archive_expsym_cmds_GCJ | \
26355 module_cmds_GCJ | \
26356 module_expsym_cmds_GCJ | \
26357 old_archive_from_expsyms_cmds_GCJ | \
26358 export_symbols_cmds_GCJ | \
26359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26360 postinstall_cmds | postuninstall_cmds | \
26361 old_postinstall_cmds | old_postuninstall_cmds | \
26362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26363 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026364 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 +000026365 ;;
26366 *)
26367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26368 ;;
26369 esac
26370 done
26371
26372 case $lt_echo in
26373 *'\$0 --fallback-echo"')
26374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26375 ;;
26376 esac
26377
26378cfgfile="$ofile"
26379
26380 cat <<__EOF__ >> "$cfgfile"
26381# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26382
26383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26384
26385# Shell to use when invoking shell scripts.
26386SHELL=$lt_SHELL
26387
26388# Whether or not to build shared libraries.
26389build_libtool_libs=$enable_shared
26390
26391# Whether or not to build static libraries.
26392build_old_libs=$enable_static
26393
26394# Whether or not to add -lc for building shared libraries.
26395build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26396
26397# Whether or not to disallow shared libs when runtime libs are static
26398allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26399
26400# Whether or not to optimize for fast installation.
26401fast_install=$enable_fast_install
26402
26403# The host system.
26404host_alias=$host_alias
26405host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026406host_os=$host_os
26407
26408# The build system.
26409build_alias=$build_alias
26410build=$build
26411build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026412
26413# An echo program that does not interpret backslashes.
26414echo=$lt_echo
26415
26416# The archiver.
26417AR=$lt_AR
26418AR_FLAGS=$lt_AR_FLAGS
26419
26420# A C compiler.
26421LTCC=$lt_LTCC
26422
Reid Spencera773bd52006-08-04 18:18:08 +000026423# LTCC compiler flags.
26424LTCFLAGS=$lt_LTCFLAGS
26425
John Criswell47fdd832003-07-14 16:52:07 +000026426# A language-specific compiler.
26427CC=$lt_compiler_GCJ
26428
26429# Is the compiler the GNU C compiler?
26430with_gcc=$GCC_GCJ
26431
26432# An ERE matcher.
26433EGREP=$lt_EGREP
26434
26435# The linker used to build libraries.
26436LD=$lt_LD_GCJ
26437
26438# Whether we need hard or soft links.
26439LN_S=$lt_LN_S
26440
26441# A BSD-compatible nm program.
26442NM=$lt_NM
26443
26444# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026445STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026446
26447# Used to examine libraries when file_magic_cmd begins "file"
26448MAGIC_CMD=$MAGIC_CMD
26449
26450# Used on cygwin: DLL creation program.
26451DLLTOOL="$DLLTOOL"
26452
26453# Used on cygwin: object dumper.
26454OBJDUMP="$OBJDUMP"
26455
26456# Used on cygwin: assembler.
26457AS="$AS"
26458
26459# The name of the directory that contains temporary libtool files.
26460objdir=$objdir
26461
26462# How to create reloadable object files.
26463reload_flag=$lt_reload_flag
26464reload_cmds=$lt_reload_cmds
26465
26466# How to pass a linker flag through the compiler.
26467wl=$lt_lt_prog_compiler_wl_GCJ
26468
26469# Object file suffix (normally "o").
26470objext="$ac_objext"
26471
26472# Old archive suffix (normally "a").
26473libext="$libext"
26474
26475# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026476shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026477
26478# Executable file suffix (normally "").
26479exeext="$exeext"
26480
26481# Additional compiler flags for building library objects.
26482pic_flag=$lt_lt_prog_compiler_pic_GCJ
26483pic_mode=$pic_mode
26484
26485# What is the maximum length of a command?
26486max_cmd_len=$lt_cv_sys_max_cmd_len
26487
26488# Does compiler simultaneously support -c and -o options?
26489compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26490
Reid Spencera773bd52006-08-04 18:18:08 +000026491# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026492need_locks=$lt_need_locks
26493
26494# Do we need the lib prefix for modules?
26495need_lib_prefix=$need_lib_prefix
26496
26497# Do we need a version for libraries?
26498need_version=$need_version
26499
26500# Whether dlopen is supported.
26501dlopen_support=$enable_dlopen
26502
26503# Whether dlopen of programs is supported.
26504dlopen_self=$enable_dlopen_self
26505
26506# Whether dlopen of statically linked programs is supported.
26507dlopen_self_static=$enable_dlopen_self_static
26508
26509# Compiler flag to prevent dynamic linking.
26510link_static_flag=$lt_lt_prog_compiler_static_GCJ
26511
26512# Compiler flag to turn off builtin functions.
26513no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26514
26515# Compiler flag to allow reflexive dlopens.
26516export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26517
26518# Compiler flag to generate shared objects directly from archives.
26519whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26520
26521# Compiler flag to generate thread-safe objects.
26522thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26523
26524# Library versioning type.
26525version_type=$version_type
26526
26527# Format of library name prefix.
26528libname_spec=$lt_libname_spec
26529
26530# List of archive names. First name is the real one, the rest are links.
26531# The last name is the one that the linker finds with -lNAME.
26532library_names_spec=$lt_library_names_spec
26533
26534# The coded name of the library, if different from the real name.
26535soname_spec=$lt_soname_spec
26536
26537# Commands used to build and install an old-style archive.
26538RANLIB=$lt_RANLIB
26539old_archive_cmds=$lt_old_archive_cmds_GCJ
26540old_postinstall_cmds=$lt_old_postinstall_cmds
26541old_postuninstall_cmds=$lt_old_postuninstall_cmds
26542
26543# Create an old-style archive from a shared archive.
26544old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26545
26546# Create a temporary old-style archive to link instead of a shared archive.
26547old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26548
26549# Commands used to build and install a shared archive.
26550archive_cmds=$lt_archive_cmds_GCJ
26551archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26552postinstall_cmds=$lt_postinstall_cmds
26553postuninstall_cmds=$lt_postuninstall_cmds
26554
26555# Commands used to build a loadable module (assumed same as above if empty)
26556module_cmds=$lt_module_cmds_GCJ
26557module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26558
26559# Commands to strip libraries.
26560old_striplib=$lt_old_striplib
26561striplib=$lt_striplib
26562
26563# Dependencies to place before the objects being linked to create a
26564# shared library.
26565predep_objects=$lt_predep_objects_GCJ
26566
26567# Dependencies to place after the objects being linked to create a
26568# shared library.
26569postdep_objects=$lt_postdep_objects_GCJ
26570
26571# Dependencies to place before the objects being linked to create a
26572# shared library.
26573predeps=$lt_predeps_GCJ
26574
26575# Dependencies to place after the objects being linked to create a
26576# shared library.
26577postdeps=$lt_postdeps_GCJ
26578
26579# The library search path used internally by the compiler when linking
26580# a shared library.
26581compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26582
26583# Method to check whether dependent libraries are shared objects.
26584deplibs_check_method=$lt_deplibs_check_method
26585
26586# Command to use when deplibs_check_method == file_magic.
26587file_magic_cmd=$lt_file_magic_cmd
26588
26589# Flag that allows shared libraries with undefined symbols to be built.
26590allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26591
26592# Flag that forces no undefined symbols.
26593no_undefined_flag=$lt_no_undefined_flag_GCJ
26594
26595# Commands used to finish a libtool library installation in a directory.
26596finish_cmds=$lt_finish_cmds
26597
26598# Same as above, but a single script fragment to be evaled but not shown.
26599finish_eval=$lt_finish_eval
26600
26601# Take the output of nm and produce a listing of raw symbols and C names.
26602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26603
26604# Transform the output of nm in a proper C declaration
26605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26606
26607# Transform the output of nm in a C name address pair
26608global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26609
26610# This is the shared library runtime path variable.
26611runpath_var=$runpath_var
26612
26613# This is the shared library path variable.
26614shlibpath_var=$shlibpath_var
26615
26616# Is shlibpath searched before the hard-coded library search path?
26617shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26618
26619# How to hardcode a shared library path into an executable.
26620hardcode_action=$hardcode_action_GCJ
26621
26622# Whether we should hardcode library paths into libraries.
26623hardcode_into_libs=$hardcode_into_libs
26624
26625# Flag to hardcode \$libdir into a binary during linking.
26626# This must work even if \$libdir does not exist.
26627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26628
26629# If ld is used when linking, flag to hardcode \$libdir into
26630# a binary during linking. This must work even if \$libdir does
26631# not exist.
26632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26633
26634# Whether we need a single -rpath flag with a separated argument.
26635hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26636
26637# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26638# resulting binary.
26639hardcode_direct=$hardcode_direct_GCJ
26640
26641# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26642# resulting binary.
26643hardcode_minus_L=$hardcode_minus_L_GCJ
26644
26645# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26646# the resulting binary.
26647hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26648
26649# Set to yes if building a shared library automatically hardcodes DIR into the library
26650# and all subsequent libraries and executables linked against it.
26651hardcode_automatic=$hardcode_automatic_GCJ
26652
26653# Variables whose values should be saved in libtool wrapper scripts and
26654# restored at relink time.
26655variables_saved_for_relink="$variables_saved_for_relink"
26656
26657# Whether libtool must link a program against all its dependency libraries.
26658link_all_deplibs=$link_all_deplibs_GCJ
26659
26660# Compile-time system search path for libraries
26661sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26662
26663# Run-time system search path for libraries
26664sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26665
26666# Fix the shell variable \$srcfile for the compiler.
26667fix_srcfile_path="$fix_srcfile_path_GCJ"
26668
26669# Set to yes if exported symbols are required.
26670always_export_symbols=$always_export_symbols_GCJ
26671
26672# The commands to list exported symbols.
26673export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26674
26675# The commands to extract the exported symbol list from a shared archive.
26676extract_expsyms_cmds=$lt_extract_expsyms_cmds
26677
26678# Symbols that should not be listed in the preloaded symbols.
26679exclude_expsyms=$lt_exclude_expsyms_GCJ
26680
26681# Symbols that must always be exported.
26682include_expsyms=$lt_include_expsyms_GCJ
26683
26684# ### END LIBTOOL TAG CONFIG: $tagname
26685
26686__EOF__
26687
26688
26689else
26690 # If there is no Makefile yet, we rely on a make rule to execute
26691 # `config.status --recheck' to rerun these tests and create the
26692 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026693 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26694 if test -f "$ltmain_in"; then
26695 test -f Makefile && make "$ltmain"
26696 fi
John Criswell47fdd832003-07-14 16:52:07 +000026697fi
26698
26699
26700ac_ext=c
26701ac_cpp='$CPP $CPPFLAGS'
26702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26704ac_compiler_gnu=$ac_cv_c_compiler_gnu
26705
26706CC="$lt_save_CC"
26707
26708 else
26709 tagname=""
26710 fi
26711 ;;
26712
26713 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026714 ac_ext=c
26715ac_cpp='$CPP $CPPFLAGS'
26716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26718ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026719
26720
26721# Source file extension for RC test sources.
26722ac_ext=rc
26723
26724# Object file extension for compiled RC test sources.
26725objext=o
26726objext_RC=$objext
26727
26728# Code to be used in simple compile tests
26729lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26730
26731# Code to be used in simple link tests
26732lt_simple_link_test_code="$lt_simple_compile_test_code"
26733
26734# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26735
26736# If no C compiler was specified, use CC.
26737LTCC=${LTCC-"$CC"}
26738
Reid Spencera773bd52006-08-04 18:18:08 +000026739# If no C compiler flags were specified, use CFLAGS.
26740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26741
John Criswell47fdd832003-07-14 16:52:07 +000026742# Allow CC to be a program name with arguments.
26743compiler=$CC
26744
26745
Reid Spencera773bd52006-08-04 18:18:08 +000026746# save warnings/boilerplate of simple test code
26747ac_outfile=conftest.$ac_objext
26748printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26750_lt_compiler_boilerplate=`cat conftest.err`
26751$rm conftest*
26752
26753ac_outfile=conftest.$ac_objext
26754printf "$lt_simple_link_test_code" >conftest.$ac_ext
26755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26756_lt_linker_boilerplate=`cat conftest.err`
26757$rm conftest*
26758
26759
John Criswell47fdd832003-07-14 16:52:07 +000026760# Allow CC to be a program name with arguments.
26761lt_save_CC="$CC"
26762CC=${RC-"windres"}
26763compiler=$CC
26764compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026765for cc_temp in $compiler""; do
26766 case $cc_temp in
26767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26769 \-*) ;;
26770 *) break;;
26771 esac
26772done
26773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26774
John Criswell47fdd832003-07-14 16:52:07 +000026775lt_cv_prog_compiler_c_o_RC=yes
26776
26777# The else clause should only fire when bootstrapping the
26778# libtool distribution, otherwise you forgot to ship ltmain.sh
26779# with your package, and you will get complaints that there are
26780# no rules to generate ltmain.sh.
26781if test -f "$ltmain"; then
26782 # See if we are running on zsh, and set the options which allow our commands through
26783 # without removal of \ escapes.
26784 if test -n "${ZSH_VERSION+set}" ; then
26785 setopt NO_GLOB_SUBST
26786 fi
26787 # Now quote all the things that may contain metacharacters while being
26788 # careful not to overquote the AC_SUBSTed values. We take copies of the
26789 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026790 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 +000026791 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026792 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26793 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26794 deplibs_check_method reload_flag reload_cmds need_locks \
26795 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26796 lt_cv_sys_global_symbol_to_c_name_address \
26797 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26798 old_postinstall_cmds old_postuninstall_cmds \
26799 compiler_RC \
26800 CC_RC \
26801 LD_RC \
26802 lt_prog_compiler_wl_RC \
26803 lt_prog_compiler_pic_RC \
26804 lt_prog_compiler_static_RC \
26805 lt_prog_compiler_no_builtin_flag_RC \
26806 export_dynamic_flag_spec_RC \
26807 thread_safe_flag_spec_RC \
26808 whole_archive_flag_spec_RC \
26809 enable_shared_with_static_runtimes_RC \
26810 old_archive_cmds_RC \
26811 old_archive_from_new_cmds_RC \
26812 predep_objects_RC \
26813 postdep_objects_RC \
26814 predeps_RC \
26815 postdeps_RC \
26816 compiler_lib_search_path_RC \
26817 archive_cmds_RC \
26818 archive_expsym_cmds_RC \
26819 postinstall_cmds_RC \
26820 postuninstall_cmds_RC \
26821 old_archive_from_expsyms_cmds_RC \
26822 allow_undefined_flag_RC \
26823 no_undefined_flag_RC \
26824 export_symbols_cmds_RC \
26825 hardcode_libdir_flag_spec_RC \
26826 hardcode_libdir_flag_spec_ld_RC \
26827 hardcode_libdir_separator_RC \
26828 hardcode_automatic_RC \
26829 module_cmds_RC \
26830 module_expsym_cmds_RC \
26831 lt_cv_prog_compiler_c_o_RC \
26832 exclude_expsyms_RC \
26833 include_expsyms_RC; do
26834
26835 case $var in
26836 old_archive_cmds_RC | \
26837 old_archive_from_new_cmds_RC | \
26838 archive_cmds_RC | \
26839 archive_expsym_cmds_RC | \
26840 module_cmds_RC | \
26841 module_expsym_cmds_RC | \
26842 old_archive_from_expsyms_cmds_RC | \
26843 export_symbols_cmds_RC | \
26844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26845 postinstall_cmds | postuninstall_cmds | \
26846 old_postinstall_cmds | old_postuninstall_cmds | \
26847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26848 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026849 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 +000026850 ;;
26851 *)
26852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26853 ;;
26854 esac
26855 done
26856
26857 case $lt_echo in
26858 *'\$0 --fallback-echo"')
26859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26860 ;;
26861 esac
26862
26863cfgfile="$ofile"
26864
26865 cat <<__EOF__ >> "$cfgfile"
26866# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26867
26868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26869
26870# Shell to use when invoking shell scripts.
26871SHELL=$lt_SHELL
26872
26873# Whether or not to build shared libraries.
26874build_libtool_libs=$enable_shared
26875
26876# Whether or not to build static libraries.
26877build_old_libs=$enable_static
26878
26879# Whether or not to add -lc for building shared libraries.
26880build_libtool_need_lc=$archive_cmds_need_lc_RC
26881
26882# Whether or not to disallow shared libs when runtime libs are static
26883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26884
26885# Whether or not to optimize for fast installation.
26886fast_install=$enable_fast_install
26887
26888# The host system.
26889host_alias=$host_alias
26890host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026891host_os=$host_os
26892
26893# The build system.
26894build_alias=$build_alias
26895build=$build
26896build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026897
26898# An echo program that does not interpret backslashes.
26899echo=$lt_echo
26900
26901# The archiver.
26902AR=$lt_AR
26903AR_FLAGS=$lt_AR_FLAGS
26904
26905# A C compiler.
26906LTCC=$lt_LTCC
26907
Reid Spencera773bd52006-08-04 18:18:08 +000026908# LTCC compiler flags.
26909LTCFLAGS=$lt_LTCFLAGS
26910
John Criswell47fdd832003-07-14 16:52:07 +000026911# A language-specific compiler.
26912CC=$lt_compiler_RC
26913
26914# Is the compiler the GNU C compiler?
26915with_gcc=$GCC_RC
26916
26917# An ERE matcher.
26918EGREP=$lt_EGREP
26919
26920# The linker used to build libraries.
26921LD=$lt_LD_RC
26922
26923# Whether we need hard or soft links.
26924LN_S=$lt_LN_S
26925
26926# A BSD-compatible nm program.
26927NM=$lt_NM
26928
26929# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026930STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026931
26932# Used to examine libraries when file_magic_cmd begins "file"
26933MAGIC_CMD=$MAGIC_CMD
26934
26935# Used on cygwin: DLL creation program.
26936DLLTOOL="$DLLTOOL"
26937
26938# Used on cygwin: object dumper.
26939OBJDUMP="$OBJDUMP"
26940
26941# Used on cygwin: assembler.
26942AS="$AS"
26943
26944# The name of the directory that contains temporary libtool files.
26945objdir=$objdir
26946
26947# How to create reloadable object files.
26948reload_flag=$lt_reload_flag
26949reload_cmds=$lt_reload_cmds
26950
26951# How to pass a linker flag through the compiler.
26952wl=$lt_lt_prog_compiler_wl_RC
26953
26954# Object file suffix (normally "o").
26955objext="$ac_objext"
26956
26957# Old archive suffix (normally "a").
26958libext="$libext"
26959
26960# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026961shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026962
26963# Executable file suffix (normally "").
26964exeext="$exeext"
26965
26966# Additional compiler flags for building library objects.
26967pic_flag=$lt_lt_prog_compiler_pic_RC
26968pic_mode=$pic_mode
26969
26970# What is the maximum length of a command?
26971max_cmd_len=$lt_cv_sys_max_cmd_len
26972
26973# Does compiler simultaneously support -c and -o options?
26974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26975
Reid Spencera773bd52006-08-04 18:18:08 +000026976# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026977need_locks=$lt_need_locks
26978
26979# Do we need the lib prefix for modules?
26980need_lib_prefix=$need_lib_prefix
26981
26982# Do we need a version for libraries?
26983need_version=$need_version
26984
26985# Whether dlopen is supported.
26986dlopen_support=$enable_dlopen
26987
26988# Whether dlopen of programs is supported.
26989dlopen_self=$enable_dlopen_self
26990
26991# Whether dlopen of statically linked programs is supported.
26992dlopen_self_static=$enable_dlopen_self_static
26993
26994# Compiler flag to prevent dynamic linking.
26995link_static_flag=$lt_lt_prog_compiler_static_RC
26996
26997# Compiler flag to turn off builtin functions.
26998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26999
27000# Compiler flag to allow reflexive dlopens.
27001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27002
27003# Compiler flag to generate shared objects directly from archives.
27004whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27005
27006# Compiler flag to generate thread-safe objects.
27007thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27008
27009# Library versioning type.
27010version_type=$version_type
27011
27012# Format of library name prefix.
27013libname_spec=$lt_libname_spec
27014
27015# List of archive names. First name is the real one, the rest are links.
27016# The last name is the one that the linker finds with -lNAME.
27017library_names_spec=$lt_library_names_spec
27018
27019# The coded name of the library, if different from the real name.
27020soname_spec=$lt_soname_spec
27021
27022# Commands used to build and install an old-style archive.
27023RANLIB=$lt_RANLIB
27024old_archive_cmds=$lt_old_archive_cmds_RC
27025old_postinstall_cmds=$lt_old_postinstall_cmds
27026old_postuninstall_cmds=$lt_old_postuninstall_cmds
27027
27028# Create an old-style archive from a shared archive.
27029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27030
27031# Create a temporary old-style archive to link instead of a shared archive.
27032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27033
27034# Commands used to build and install a shared archive.
27035archive_cmds=$lt_archive_cmds_RC
27036archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27037postinstall_cmds=$lt_postinstall_cmds
27038postuninstall_cmds=$lt_postuninstall_cmds
27039
27040# Commands used to build a loadable module (assumed same as above if empty)
27041module_cmds=$lt_module_cmds_RC
27042module_expsym_cmds=$lt_module_expsym_cmds_RC
27043
27044# Commands to strip libraries.
27045old_striplib=$lt_old_striplib
27046striplib=$lt_striplib
27047
27048# Dependencies to place before the objects being linked to create a
27049# shared library.
27050predep_objects=$lt_predep_objects_RC
27051
27052# Dependencies to place after the objects being linked to create a
27053# shared library.
27054postdep_objects=$lt_postdep_objects_RC
27055
27056# Dependencies to place before the objects being linked to create a
27057# shared library.
27058predeps=$lt_predeps_RC
27059
27060# Dependencies to place after the objects being linked to create a
27061# shared library.
27062postdeps=$lt_postdeps_RC
27063
27064# The library search path used internally by the compiler when linking
27065# a shared library.
27066compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27067
27068# Method to check whether dependent libraries are shared objects.
27069deplibs_check_method=$lt_deplibs_check_method
27070
27071# Command to use when deplibs_check_method == file_magic.
27072file_magic_cmd=$lt_file_magic_cmd
27073
27074# Flag that allows shared libraries with undefined symbols to be built.
27075allow_undefined_flag=$lt_allow_undefined_flag_RC
27076
27077# Flag that forces no undefined symbols.
27078no_undefined_flag=$lt_no_undefined_flag_RC
27079
27080# Commands used to finish a libtool library installation in a directory.
27081finish_cmds=$lt_finish_cmds
27082
27083# Same as above, but a single script fragment to be evaled but not shown.
27084finish_eval=$lt_finish_eval
27085
27086# Take the output of nm and produce a listing of raw symbols and C names.
27087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27088
27089# Transform the output of nm in a proper C declaration
27090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27091
27092# Transform the output of nm in a C name address pair
27093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27094
27095# This is the shared library runtime path variable.
27096runpath_var=$runpath_var
27097
27098# This is the shared library path variable.
27099shlibpath_var=$shlibpath_var
27100
27101# Is shlibpath searched before the hard-coded library search path?
27102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27103
27104# How to hardcode a shared library path into an executable.
27105hardcode_action=$hardcode_action_RC
27106
27107# Whether we should hardcode library paths into libraries.
27108hardcode_into_libs=$hardcode_into_libs
27109
27110# Flag to hardcode \$libdir into a binary during linking.
27111# This must work even if \$libdir does not exist.
27112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27113
27114# If ld is used when linking, flag to hardcode \$libdir into
27115# a binary during linking. This must work even if \$libdir does
27116# not exist.
27117hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27118
27119# Whether we need a single -rpath flag with a separated argument.
27120hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27121
27122# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27123# resulting binary.
27124hardcode_direct=$hardcode_direct_RC
27125
27126# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27127# resulting binary.
27128hardcode_minus_L=$hardcode_minus_L_RC
27129
27130# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27131# the resulting binary.
27132hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27133
27134# Set to yes if building a shared library automatically hardcodes DIR into the library
27135# and all subsequent libraries and executables linked against it.
27136hardcode_automatic=$hardcode_automatic_RC
27137
27138# Variables whose values should be saved in libtool wrapper scripts and
27139# restored at relink time.
27140variables_saved_for_relink="$variables_saved_for_relink"
27141
27142# Whether libtool must link a program against all its dependency libraries.
27143link_all_deplibs=$link_all_deplibs_RC
27144
27145# Compile-time system search path for libraries
27146sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27147
27148# Run-time system search path for libraries
27149sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27150
27151# Fix the shell variable \$srcfile for the compiler.
27152fix_srcfile_path="$fix_srcfile_path_RC"
27153
27154# Set to yes if exported symbols are required.
27155always_export_symbols=$always_export_symbols_RC
27156
27157# The commands to list exported symbols.
27158export_symbols_cmds=$lt_export_symbols_cmds_RC
27159
27160# The commands to extract the exported symbol list from a shared archive.
27161extract_expsyms_cmds=$lt_extract_expsyms_cmds
27162
27163# Symbols that should not be listed in the preloaded symbols.
27164exclude_expsyms=$lt_exclude_expsyms_RC
27165
27166# Symbols that must always be exported.
27167include_expsyms=$lt_include_expsyms_RC
27168
27169# ### END LIBTOOL TAG CONFIG: $tagname
27170
27171__EOF__
27172
27173
27174else
27175 # If there is no Makefile yet, we rely on a make rule to execute
27176 # `config.status --recheck' to rerun these tests and create the
27177 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27179 if test -f "$ltmain_in"; then
27180 test -f Makefile && make "$ltmain"
27181 fi
John Criswell47fdd832003-07-14 16:52:07 +000027182fi
27183
27184
27185ac_ext=c
27186ac_cpp='$CPP $CPPFLAGS'
27187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27189ac_compiler_gnu=$ac_cv_c_compiler_gnu
27190
27191CC="$lt_save_CC"
27192
27193 ;;
27194
27195 *)
27196 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27197echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27198 { (exit 1); exit 1; }; }
27199 ;;
27200 esac
27201
27202 # Append the new tag name to the list of available tags.
27203 if test -n "$tagname" ; then
27204 available_tags="$available_tags $tagname"
27205 fi
27206 fi
27207 done
27208 IFS="$lt_save_ifs"
27209
27210 # Now substitute the updated list of available tags.
27211 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27212 mv "${ofile}T" "$ofile"
27213 chmod +x "$ofile"
27214 else
27215 rm -f "${ofile}T"
27216 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27217echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27218 { (exit 1); exit 1; }; }
27219 fi
27220fi
John Criswell7a73b802003-06-30 21:59:07 +000027221
27222
27223
27224# This can be used to rebuild libtool when needed
27225LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27226
27227# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027228LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027229
27230# Prevent multiple expansion
27231
27232
27233
John Criswell47fdd832003-07-14 16:52:07 +000027234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027251
Reid Spencer582a23c2004-12-29 07:07:57 +000027252if test "$lt_cv_dlopen_self" = "yes" ; then
27253
27254cat >>confdefs.h <<\_ACEOF
27255#define CAN_DLOPEN_SELF 1
27256_ACEOF
27257
27258fi
27259
Douglas Gregor01746742009-05-11 18:05:52 +000027260
Reid Spencer7931a782004-12-27 06:15:02 +000027261if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027262 LLVMGCC="llvm-gcc${EXEEXT}"
27263 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027264 LLVMGCCCOMMAND="$LLVMGCC"
27265 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027266 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27267
27268 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27269
Reid Spencerc84492c2005-06-02 22:34:49 +000027270 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27271set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027274if test "${ac_cv_path_LLVMGCC+set}" = set; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27276else
27277 case $LLVMGCC in
27278 [\\/]* | ?:[\\/]*)
27279 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27280 ;;
27281 *)
27282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27283for as_dir in $PATH
27284do
27285 IFS=$as_save_IFS
27286 test -z "$as_dir" && as_dir=.
27287 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027288 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 +000027289 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27291 break 2
27292 fi
27293done
27294done
Reid Spencera773bd52006-08-04 18:18:08 +000027295IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027296
Reid Spencer59473af2004-12-25 07:31:29 +000027297 ;;
27298esac
27299fi
27300LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027301if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027302 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27303echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027304else
Reid Spencera773bd52006-08-04 18:18:08 +000027305 { echo "$as_me:$LINENO: result: no" >&5
27306echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027307fi
27308
Reid Spencera773bd52006-08-04 18:18:08 +000027309
Reid Spencerc84492c2005-06-02 22:34:49 +000027310 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27311set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027314if test "${ac_cv_path_LLVMGXX+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316else
27317 case $LLVMGXX in
27318 [\\/]* | ?:[\\/]*)
27319 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27320 ;;
27321 *)
27322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27323for as_dir in $PATH
27324do
27325 IFS=$as_save_IFS
27326 test -z "$as_dir" && as_dir=.
27327 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027328 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 +000027329 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27331 break 2
27332 fi
27333done
27334done
Reid Spencera773bd52006-08-04 18:18:08 +000027335IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027336
Reid Spencer59473af2004-12-25 07:31:29 +000027337 ;;
27338esac
27339fi
27340LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027341if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027342 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27343echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027344else
Reid Spencera773bd52006-08-04 18:18:08 +000027345 { echo "$as_me:$LINENO: result: no" >&5
27346echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027347fi
27348
Reid Spencera773bd52006-08-04 18:18:08 +000027349
Reid Spencer59473af2004-12-25 07:31:29 +000027350else
Devang Patel5d28b882007-12-04 22:54:47 +000027351 if test -z "$LLVMGCC"; then
27352 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027353 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027354 fi
27355 if test -z "$LLVMGXX"; then
27356 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027357 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027358 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027359
Reid Spencer59473af2004-12-25 07:31:29 +000027360 LLVMGCC=$LLVMGCC
27361
27362 LLVMGXX=$LLVMGXX
27363
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027364 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27365
27366 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27367
Reid Spencer59473af2004-12-25 07:31:29 +000027368fi
27369
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027370
Reid Spencera773bd52006-08-04 18:18:08 +000027371{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27372echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027373
Reid Spencer86901802004-12-08 23:07:27 +000027374ICC=no
27375IXX=no
27376case $CC in
27377 icc*|icpc*)
27378 ICC=yes
27379 IXX=yes
27380 ;;
27381 *)
27382 ;;
27383esac
27384
Duraid Madina937c60a2006-02-15 07:57:42 +000027385if test "$GCC" != "yes" && test "$ICC" != "yes"
27386then
27387 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27388echo "$as_me: error: gcc|icc required but not found" >&2;}
27389 { (exit 1); exit 1; }; }
27390fi
27391
27392if test "$GXX" != "yes" && test "$IXX" != "yes"
27393then
27394 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27395echo "$as_me: error: g++|icc required but not found" >&2;}
27396 { (exit 1); exit 1; }; }
27397fi
27398
Reid Spencer86901802004-12-08 23:07:27 +000027399if test "$GCC" = "yes"
27400then
Chris Lattner399c7c72008-02-05 19:43:53 +000027401 cat >conftest.$ac_ext <<_ACEOF
27402#if !defined(__GNUC__) || __GNUC__ < 3
27403#error Unsupported GCC version
27404#endif
27405
27406_ACEOF
27407rm -f conftest.$ac_objext
27408if { (ac_try="$ac_compile"
27409case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27412esac
27413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414 (eval "$ac_compile") 2>conftest.er1
27415 ac_status=$?
27416 grep -v '^ *+' conftest.er1 >conftest.err
27417 rm -f conftest.er1
27418 cat conftest.err >&5
27419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027420 (exit $ac_status); } &&
27421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27422 { (case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_try") 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest.$ac_objext'
27432 { (case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27435esac
27436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_try") 2>&5
27438 ac_status=$?
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027441 :
27442else
27443 echo "$as_me: failed program was:" >&5
27444sed 's/^/| /' conftest.$ac_ext >&5
27445
27446 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027447echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27448 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027449fi
27450
27451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027452fi
27453
27454if test -z "$llvm_cv_gnu_make_command"
27455then
27456 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27457echo "$as_me: error: GNU Make required but not found" >&2;}
27458 { (exit 1); exit 1; }; }
27459fi
27460
Reid Spencera773bd52006-08-04 18:18:08 +000027461{ echo "$as_me:$LINENO: result: ok" >&5
27462echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027463
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000027464{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27465echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27466NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27467
27468NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27469
27470{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27471echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27472
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027473
27474
Reid Spencera773bd52006-08-04 18:18:08 +000027475{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27476echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027477if test "${ac_cv_lib_m_sin+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27479else
27480 ac_check_lib_save_LIBS=$LIBS
27481LIBS="-lm $LIBS"
27482cat >conftest.$ac_ext <<_ACEOF
27483/* confdefs.h. */
27484_ACEOF
27485cat confdefs.h >>conftest.$ac_ext
27486cat >>conftest.$ac_ext <<_ACEOF
27487/* end confdefs.h. */
27488
Reid Spencera773bd52006-08-04 18:18:08 +000027489/* Override any GCC internal prototype to avoid an error.
27490 Use char because int might match the return type of a GCC
27491 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027492#ifdef __cplusplus
27493extern "C"
27494#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027495char sin ();
27496int
27497main ()
27498{
Reid Spencera773bd52006-08-04 18:18:08 +000027499return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027500 ;
27501 return 0;
27502}
27503_ACEOF
27504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027505if { (ac_try="$ac_link"
27506case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509esac
27510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027512 ac_status=$?
27513 grep -v '^ *+' conftest.er1 >conftest.err
27514 rm -f conftest.er1
27515 cat conftest.err >&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027517 (exit $ac_status); } &&
27518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27519 { (case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522esac
27523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_try") 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest$ac_exeext'
27529 { (case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532esac
27533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27534 (eval "$ac_try") 2>&5
27535 ac_status=$?
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027538 ac_cv_lib_m_sin=yes
27539else
27540 echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
Reid Spencera773bd52006-08-04 18:18:08 +000027543 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027544fi
Reid Spencera773bd52006-08-04 18:18:08 +000027545
Bill Wendlingebcceee2009-04-18 11:20:33 +000027546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027547 conftest$ac_exeext conftest.$ac_ext
27548LIBS=$ac_check_lib_save_LIBS
27549fi
Reid Spencera773bd52006-08-04 18:18:08 +000027550{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27551echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027552if test $ac_cv_lib_m_sin = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554#define HAVE_LIBM 1
27555_ACEOF
27556
27557 LIBS="-lm $LIBS"
27558
27559fi
27560
Jeff Cohen28783c32007-01-12 18:22:38 +000027561if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027562
Reid Spencera773bd52006-08-04 18:18:08 +000027563{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27564echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027565if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027566 echo $ECHO_N "(cached) $ECHO_C" >&6
27567else
27568 ac_check_lib_save_LIBS=$LIBS
27569LIBS="-limagehlp $LIBS"
27570cat >conftest.$ac_ext <<_ACEOF
27571/* confdefs.h. */
27572_ACEOF
27573cat confdefs.h >>conftest.$ac_ext
27574cat >>conftest.$ac_ext <<_ACEOF
27575/* end confdefs.h. */
27576
Reid Spencer48fdf912006-06-01 19:03:21 +000027577
Reid Spencer484fc8e2006-06-01 16:55:59 +000027578int
27579main ()
27580{
Reid Spencera773bd52006-08-04 18:18:08 +000027581return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027582 ;
27583 return 0;
27584}
27585_ACEOF
27586rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027587if { (ac_try="$ac_link"
27588case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27591esac
27592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027594 ac_status=$?
27595 grep -v '^ *+' conftest.er1 >conftest.err
27596 rm -f conftest.er1
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027599 (exit $ac_status); } &&
27600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27601 { (case "(($ac_try" in
27602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603 *) ac_try_echo=$ac_try;;
27604esac
27605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27606 (eval "$ac_try") 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest$ac_exeext'
27611 { (case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27614esac
27615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616 (eval "$ac_try") 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027620 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027621else
27622 echo "$as_me: failed program was:" >&5
27623sed 's/^/| /' conftest.$ac_ext >&5
27624
Reid Spencera773bd52006-08-04 18:18:08 +000027625 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027626fi
Reid Spencera773bd52006-08-04 18:18:08 +000027627
Bill Wendlingebcceee2009-04-18 11:20:33 +000027628rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027629 conftest$ac_exeext conftest.$ac_ext
27630LIBS=$ac_check_lib_save_LIBS
27631fi
Reid Spencera773bd52006-08-04 18:18:08 +000027632{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27633echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027634if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027635 cat >>confdefs.h <<_ACEOF
27636#define HAVE_LIBIMAGEHLP 1
27637_ACEOF
27638
27639 LIBS="-limagehlp $LIBS"
27640
27641fi
27642
27643
Reid Spencera773bd52006-08-04 18:18:08 +000027644{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27645echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027646if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027647 echo $ECHO_N "(cached) $ECHO_C" >&6
27648else
27649 ac_check_lib_save_LIBS=$LIBS
27650LIBS="-lpsapi $LIBS"
27651cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657
Reid Spencer48fdf912006-06-01 19:03:21 +000027658
Reid Spencer484fc8e2006-06-01 16:55:59 +000027659int
27660main ()
27661{
Reid Spencera773bd52006-08-04 18:18:08 +000027662return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027663 ;
27664 return 0;
27665}
27666_ACEOF
27667rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027668if { (ac_try="$ac_link"
27669case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672esac
27673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027675 ac_status=$?
27676 grep -v '^ *+' conftest.er1 >conftest.err
27677 rm -f conftest.er1
27678 cat conftest.err >&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027680 (exit $ac_status); } &&
27681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27685esac
27686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027701 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027702else
27703 echo "$as_me: failed program was:" >&5
27704sed 's/^/| /' conftest.$ac_ext >&5
27705
Reid Spencera773bd52006-08-04 18:18:08 +000027706 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027707fi
Reid Spencera773bd52006-08-04 18:18:08 +000027708
Bill Wendlingebcceee2009-04-18 11:20:33 +000027709rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027710 conftest$ac_exeext conftest.$ac_ext
27711LIBS=$ac_check_lib_save_LIBS
27712fi
Reid Spencera773bd52006-08-04 18:18:08 +000027713{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27714echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027715if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027716 cat >>confdefs.h <<_ACEOF
27717#define HAVE_LIBPSAPI 1
27718_ACEOF
27719
27720 LIBS="-lpsapi $LIBS"
27721
27722fi
27723
27724fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027725
Reid Spencera773bd52006-08-04 18:18:08 +000027726{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27727echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027728if test "${ac_cv_search_dlopen+set}" = set; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27730else
27731 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027732cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027733/* confdefs.h. */
27734_ACEOF
27735cat confdefs.h >>conftest.$ac_ext
27736cat >>conftest.$ac_ext <<_ACEOF
27737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027738
Reid Spencera773bd52006-08-04 18:18:08 +000027739/* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027742#ifdef __cplusplus
27743extern "C"
27744#endif
John Criswell7a73b802003-06-30 21:59:07 +000027745char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027746int
27747main ()
27748{
Reid Spencera773bd52006-08-04 18:18:08 +000027749return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027750 ;
27751 return 0;
27752}
27753_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027754for ac_lib in '' dl; do
27755 if test -z "$ac_lib"; then
27756 ac_res="none required"
27757 else
27758 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027760 fi
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762if { (ac_try="$ac_link"
27763case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027774 (exit $ac_status); } &&
27775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27776 { (case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27779esac
27780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27781 (eval "$ac_try") 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; } &&
27785 { ac_try='test -s conftest$ac_exeext'
27786 { (case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27789esac
27790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27791 (eval "$ac_try") 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027795 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027796else
27797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027798sed 's/^/| /' conftest.$ac_ext >&5
27799
Reid Spencera773bd52006-08-04 18:18:08 +000027800
John Criswell7a73b802003-06-30 21:59:07 +000027801fi
Reid Spencera773bd52006-08-04 18:18:08 +000027802
Bill Wendlingebcceee2009-04-18 11:20:33 +000027803rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027804 conftest$ac_exeext
27805 if test "${ac_cv_search_dlopen+set}" = set; then
27806 break
John Criswell7a73b802003-06-30 21:59:07 +000027807fi
Reid Spencera773bd52006-08-04 18:18:08 +000027808done
27809if test "${ac_cv_search_dlopen+set}" = set; then
27810 :
27811else
27812 ac_cv_search_dlopen=no
27813fi
27814rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027815LIBS=$ac_func_search_save_LIBS
27816fi
Reid Spencera773bd52006-08-04 18:18:08 +000027817{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27818echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27819ac_res=$ac_cv_search_dlopen
27820if test "$ac_res" != no; then
27821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027822
27823cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027824#define HAVE_DLOPEN 1
27825_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027826
27827else
Brian Gaekec45be042003-10-07 06:01:34 +000027828 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27829echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027830fi
27831
27832
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027833if test "$llvm_cv_enable_libffi" = "yes" ; then
27834 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027835echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27836if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027837 echo $ECHO_N "(cached) $ECHO_C" >&6
27838else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027839 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027840cat >conftest.$ac_ext <<_ACEOF
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char ffi_call ();
27854int
27855main ()
27856{
27857return ffi_call ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027862for ac_lib in '' ffi; do
27863 if test -z "$ac_lib"; then
27864 ac_res="none required"
27865 else
27866 ac_res=-l$ac_lib
27867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27868 fi
27869 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027870if { (ac_try="$ac_link"
27871case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27874esac
27875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_link") 2>conftest.er1
27877 ac_status=$?
27878 grep -v '^ *+' conftest.er1 >conftest.err
27879 rm -f conftest.er1
27880 cat conftest.err >&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027882 (exit $ac_status); } &&
27883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27887esac
27888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_try") 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest$ac_exeext'
27894 { (case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27897esac
27898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_try") 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027903 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027904else
27905 echo "$as_me: failed program was:" >&5
27906sed 's/^/| /' conftest.$ac_ext >&5
27907
Nick Lewycky267fddb2009-04-13 04:26:27 +000027908
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027909fi
27910
Bill Wendlingebcceee2009-04-18 11:20:33 +000027911rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027912 conftest$ac_exeext
27913 if test "${ac_cv_search_ffi_call+set}" = set; then
27914 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027915fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027916done
27917if test "${ac_cv_search_ffi_call+set}" = set; then
27918 :
27919else
27920 ac_cv_search_ffi_call=no
27921fi
27922rm conftest.$ac_ext
27923LIBS=$ac_func_search_save_LIBS
27924fi
27925{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27926echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27927ac_res=$ac_cv_search_ffi_call
27928if test "$ac_res" != no; then
27929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27930
27931cat >>confdefs.h <<\_ACEOF
27932#define HAVE_FFI_CALL 1
27933_ACEOF
27934
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027935else
27936 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27937echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27938fi
27939
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027940fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027941
Reid Spencera773bd52006-08-04 18:18:08 +000027942{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27943echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027944if test "${ac_cv_search_mallinfo+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27946else
27947 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027948cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027949/* confdefs.h. */
27950_ACEOF
27951cat confdefs.h >>conftest.$ac_ext
27952cat >>conftest.$ac_ext <<_ACEOF
27953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027954
Reid Spencera773bd52006-08-04 18:18:08 +000027955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027958#ifdef __cplusplus
27959extern "C"
27960#endif
John Criswell7a73b802003-06-30 21:59:07 +000027961char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027962int
27963main ()
27964{
Reid Spencera773bd52006-08-04 18:18:08 +000027965return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027966 ;
27967 return 0;
27968}
27969_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027970for ac_lib in '' malloc; do
27971 if test -z "$ac_lib"; then
27972 ac_res="none required"
27973 else
27974 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027976 fi
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978if { (ac_try="$ac_link"
27979case "(($ac_try" in
27980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981 *) ac_try_echo=$ac_try;;
27982esac
27983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027990 (exit $ac_status); } &&
27991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27992 { (case "(($ac_try" in
27993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994 *) ac_try_echo=$ac_try;;
27995esac
27996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997 (eval "$ac_try") 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; } &&
28001 { ac_try='test -s conftest$ac_exeext'
28002 { (case "(($ac_try" in
28003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004 *) ac_try_echo=$ac_try;;
28005esac
28006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007 (eval "$ac_try") 2>&5
28008 ac_status=$?
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028011 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028012else
28013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028014sed 's/^/| /' conftest.$ac_ext >&5
28015
Reid Spencera773bd52006-08-04 18:18:08 +000028016
John Criswell7a73b802003-06-30 21:59:07 +000028017fi
Reid Spencera773bd52006-08-04 18:18:08 +000028018
Bill Wendlingebcceee2009-04-18 11:20:33 +000028019rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028020 conftest$ac_exeext
28021 if test "${ac_cv_search_mallinfo+set}" = set; then
28022 break
John Criswell7a73b802003-06-30 21:59:07 +000028023fi
Reid Spencera773bd52006-08-04 18:18:08 +000028024done
28025if test "${ac_cv_search_mallinfo+set}" = set; then
28026 :
28027else
28028 ac_cv_search_mallinfo=no
28029fi
28030rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028031LIBS=$ac_func_search_save_LIBS
28032fi
Reid Spencera773bd52006-08-04 18:18:08 +000028033{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28034echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28035ac_res=$ac_cv_search_mallinfo
28036if test "$ac_res" != no; then
28037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028038
28039cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028040#define HAVE_MALLINFO 1
28041_ACEOF
28042
28043fi
28044
28045
Reid Spencer0a262ba2005-08-24 10:07:20 +000028046if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028047
28048{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28049echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28050if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028051 echo $ECHO_N "(cached) $ECHO_C" >&6
28052else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028053 ac_check_lib_save_LIBS=$LIBS
28054LIBS="-lpthread $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028055cat >conftest.$ac_ext <<_ACEOF
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
28061
Reid Spencera773bd52006-08-04 18:18:08 +000028062/* Override any GCC internal prototype to avoid an error.
28063 Use char because int might match the return type of a GCC
28064 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028065#ifdef __cplusplus
28066extern "C"
28067#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028068char pthread_mutex_init ();
28069int
28070main ()
28071{
Reid Spencera773bd52006-08-04 18:18:08 +000028072return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028073 ;
28074 return 0;
28075}
28076_ACEOF
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028077rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028078if { (ac_try="$ac_link"
28079case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28082esac
28083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
28088 cat conftest.err >&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028090 (exit $ac_status); } &&
28091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28092 { (case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28095esac
28096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 (eval "$ac_try") 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; } &&
28101 { ac_try='test -s conftest$ac_exeext'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28105esac
28106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28108 ac_status=$?
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028111 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000028112else
28113 echo "$as_me: failed program was:" >&5
28114sed 's/^/| /' conftest.$ac_ext >&5
28115
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028116 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028117fi
Reid Spencera773bd52006-08-04 18:18:08 +000028118
Bill Wendlingebcceee2009-04-18 11:20:33 +000028119rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028120 conftest$ac_exeext conftest.$ac_ext
28121LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028122fi
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028123{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28124echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28125if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28126 cat >>confdefs.h <<_ACEOF
28127#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028128_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028129
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028130 LIBS="-lpthread $LIBS"
28131
Reid Spencer22177fe2005-07-12 15:24:20 +000028132fi
28133
Reid Spencera773bd52006-08-04 18:18:08 +000028134 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28135echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028136if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28138else
28139 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028140cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028141/* confdefs.h. */
28142_ACEOF
28143cat confdefs.h >>conftest.$ac_ext
28144cat >>conftest.$ac_ext <<_ACEOF
28145/* end confdefs.h. */
28146
Reid Spencera773bd52006-08-04 18:18:08 +000028147/* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028150#ifdef __cplusplus
28151extern "C"
28152#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028153char pthread_mutex_lock ();
28154int
28155main ()
28156{
Reid Spencera773bd52006-08-04 18:18:08 +000028157return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028158 ;
28159 return 0;
28160}
28161_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028162for ac_lib in '' pthread; do
28163 if test -z "$ac_lib"; then
28164 ac_res="none required"
28165 else
28166 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028168 fi
28169 rm -f conftest.$ac_objext conftest$ac_exeext
28170if { (ac_try="$ac_link"
28171case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197esac
28198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028203 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
Reid Spencera773bd52006-08-04 18:18:08 +000028208
Brian Gaeke5f268f72003-12-05 19:29:01 +000028209fi
Reid Spencera773bd52006-08-04 18:18:08 +000028210
Bill Wendlingebcceee2009-04-18 11:20:33 +000028211rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028212 conftest$ac_exeext
28213 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28214 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028215fi
Reid Spencera773bd52006-08-04 18:18:08 +000028216done
28217if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28218 :
28219else
28220 ac_cv_search_pthread_mutex_lock=no
28221fi
28222rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028223LIBS=$ac_func_search_save_LIBS
28224fi
Reid Spencera773bd52006-08-04 18:18:08 +000028225{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28226echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28227ac_res=$ac_cv_search_pthread_mutex_lock
28228if test "$ac_res" != no; then
28229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028230
John Criswell40468462004-09-24 21:19:06 +000028231cat >>confdefs.h <<\_ACEOF
28232#define HAVE_PTHREAD_MUTEX_LOCK 1
28233_ACEOF
28234
28235fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028236
Owen Andersonde8aed22009-06-16 18:20:20 +000028237 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28238echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28239if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 ac_func_search_save_LIBS=$LIBS
28243cat >conftest.$ac_ext <<_ACEOF
28244/* confdefs.h. */
28245_ACEOF
28246cat confdefs.h >>conftest.$ac_ext
28247cat >>conftest.$ac_ext <<_ACEOF
28248/* end confdefs.h. */
28249
28250/* Override any GCC internal prototype to avoid an error.
28251 Use char because int might match the return type of a GCC
28252 builtin and then its argument prototype would still apply. */
28253#ifdef __cplusplus
28254extern "C"
28255#endif
28256char pthread_rwlock_init ();
28257int
28258main ()
28259{
28260return pthread_rwlock_init ();
28261 ;
28262 return 0;
28263}
28264_ACEOF
28265for ac_lib in '' pthread; do
28266 if test -z "$ac_lib"; then
28267 ac_res="none required"
28268 else
28269 ac_res=-l$ac_lib
28270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28271 fi
28272 rm -f conftest.$ac_objext conftest$ac_exeext
28273if { (ac_try="$ac_link"
28274case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_link") 2>conftest.er1
28280 ac_status=$?
28281 grep -v '^ *+' conftest.er1 >conftest.err
28282 rm -f conftest.er1
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } &&
28286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28287 { (case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28290esac
28291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_try") 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest$ac_exeext'
28297 { (case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28300esac
28301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_try") 2>&5
28303 ac_status=$?
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; }; then
28306 ac_cv_search_pthread_rwlock_init=$ac_res
28307else
28308 echo "$as_me: failed program was:" >&5
28309sed 's/^/| /' conftest.$ac_ext >&5
28310
28311
28312fi
28313
28314rm -f core conftest.err conftest.$ac_objext \
28315 conftest$ac_exeext
28316 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28317 break
28318fi
28319done
28320if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28321 :
28322else
28323 ac_cv_search_pthread_rwlock_init=no
28324fi
28325rm conftest.$ac_ext
28326LIBS=$ac_func_search_save_LIBS
28327fi
28328{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28329echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28330ac_res=$ac_cv_search_pthread_rwlock_init
28331if test "$ac_res" != no; then
28332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28333
28334cat >>confdefs.h <<\_ACEOF
28335#define HAVE_PTHREAD_RWLOCK_INIT 1
28336_ACEOF
28337
28338fi
28339
Owen Anderson27fcfe12009-06-25 23:10:26 +000028340 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28341echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28342if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28344else
28345 ac_func_search_save_LIBS=$LIBS
28346cat >conftest.$ac_ext <<_ACEOF
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
28352
28353/* Override any GCC internal prototype to avoid an error.
28354 Use char because int might match the return type of a GCC
28355 builtin and then its argument prototype would still apply. */
28356#ifdef __cplusplus
28357extern "C"
28358#endif
28359char pthread_getspecific ();
28360int
28361main ()
28362{
28363return pthread_getspecific ();
28364 ;
28365 return 0;
28366}
28367_ACEOF
28368for ac_lib in '' pthread; do
28369 if test -z "$ac_lib"; then
28370 ac_res="none required"
28371 else
28372 ac_res=-l$ac_lib
28373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28374 fi
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (ac_try="$ac_link"
28377case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28380esac
28381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_link") 2>conftest.er1
28383 ac_status=$?
28384 grep -v '^ *+' conftest.er1 >conftest.err
28385 rm -f conftest.er1
28386 cat conftest.err >&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
28389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest$ac_exeext'
28400 { (case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28403esac
28404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_try") 2>&5
28406 ac_status=$?
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
28409 ac_cv_search_pthread_getspecific=$ac_res
28410else
28411 echo "$as_me: failed program was:" >&5
28412sed 's/^/| /' conftest.$ac_ext >&5
28413
28414
28415fi
28416
28417rm -f core conftest.err conftest.$ac_objext \
28418 conftest$ac_exeext
28419 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28420 break
28421fi
28422done
28423if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28424 :
28425else
28426 ac_cv_search_pthread_getspecific=no
28427fi
28428rm conftest.$ac_ext
28429LIBS=$ac_func_search_save_LIBS
28430fi
28431{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28432echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28433ac_res=$ac_cv_search_pthread_getspecific
28434if test "$ac_res" != no; then
28435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28436
28437cat >>confdefs.h <<\_ACEOF
28438#define HAVE_PTHREAD_GETSPECIFIC 1
28439_ACEOF
28440
28441fi
28442
Reid Spencer0a262ba2005-08-24 10:07:20 +000028443fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028445
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028446# Check whether --with-udis86 was given.
28447if test "${with_udis86+set}" = set; then
28448 withval=$with_udis86;
28449 USE_UDIS86=1
28450
28451 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028452 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028453 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28454 esac
28455
28456{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28457echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28458if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
28460else
28461 ac_check_lib_save_LIBS=$LIBS
28462LIBS="-ludis86 $LIBS"
28463cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469
28470/* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28473#ifdef __cplusplus
28474extern "C"
28475#endif
28476char ud_init ();
28477int
28478main ()
28479{
28480return ud_init ();
28481 ;
28482 return 0;
28483}
28484_ACEOF
28485rm -f conftest.$ac_objext conftest$ac_exeext
28486if { (ac_try="$ac_link"
28487case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28490esac
28491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_link") 2>conftest.er1
28493 ac_status=$?
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028498 (exit $ac_status); } &&
28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28503esac
28504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28513esac
28514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028519 ac_cv_lib_udis86_ud_init=yes
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524 ac_cv_lib_udis86_ud_init=no
28525fi
28526
Bill Wendlingebcceee2009-04-18 11:20:33 +000028527rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028528 conftest$ac_exeext conftest.$ac_ext
28529LIBS=$ac_check_lib_save_LIBS
28530fi
28531{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28532echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28533if test $ac_cv_lib_udis86_ud_init = yes; then
28534 cat >>confdefs.h <<_ACEOF
28535#define HAVE_LIBUDIS86 1
28536_ACEOF
28537
28538 LIBS="-ludis86 $LIBS"
28539
28540else
28541
28542 echo "Error! You need to have libudis86 around."
28543 exit -1
28544
28545fi
28546
28547
28548else
28549 USE_UDIS86=0
28550
28551fi
28552
28553
28554cat >>confdefs.h <<_ACEOF
28555#define USE_UDIS86 $USE_UDIS86
28556_ACEOF
28557
28558
28559
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028560# Check whether --with-oprofile was given.
28561if test "${with_oprofile+set}" = set; then
28562 withval=$with_oprofile;
28563 USE_OPROFILE=1
28564
28565 case "$withval" in
28566 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028567 no) llvm_cv_oppath=
28568 USE_OPROFILE=0
28569 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028570 *) llvm_cv_oppath="${withval}/lib/oprofile"
28571 CPPFLAGS="-I${withval}/include";;
28572 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028573 if test -n "$llvm_cv_oppath" ; then
28574 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28576echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28577if test "${ac_cv_search_bfd_init+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579else
28580 ac_func_search_save_LIBS=$LIBS
28581cat >conftest.$ac_ext <<_ACEOF
28582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
28587
28588/* Override any GCC internal prototype to avoid an error.
28589 Use char because int might match the return type of a GCC
28590 builtin and then its argument prototype would still apply. */
28591#ifdef __cplusplus
28592extern "C"
28593#endif
28594char bfd_init ();
28595int
28596main ()
28597{
28598return bfd_init ();
28599 ;
28600 return 0;
28601}
28602_ACEOF
28603for ac_lib in '' bfd; do
28604 if test -z "$ac_lib"; then
28605 ac_res="none required"
28606 else
28607 ac_res=-l$ac_lib
28608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28609 fi
28610 rm -f conftest.$ac_objext conftest$ac_exeext
28611if { (ac_try="$ac_link"
28612case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28615esac
28616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617 (eval "$ac_link") 2>conftest.er1
28618 ac_status=$?
28619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } &&
28624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28625 { (case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28628esac
28629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_try") 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; } &&
28634 { ac_try='test -s conftest$ac_exeext'
28635 { (case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28638esac
28639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_try") 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; }; then
28644 ac_cv_search_bfd_init=$ac_res
28645else
28646 echo "$as_me: failed program was:" >&5
28647sed 's/^/| /' conftest.$ac_ext >&5
28648
28649
28650fi
28651
28652rm -f core conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext
28654 if test "${ac_cv_search_bfd_init+set}" = set; then
28655 break
28656fi
28657done
28658if test "${ac_cv_search_bfd_init+set}" = set; then
28659 :
28660else
28661 ac_cv_search_bfd_init=no
28662fi
28663rm conftest.$ac_ext
28664LIBS=$ac_func_search_save_LIBS
28665fi
28666{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28667echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28668ac_res=$ac_cv_search_bfd_init
28669if test "$ac_res" != no; then
28670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28671
28672fi
28673
28674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028675echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28676if test "${ac_cv_search_op_open_agent+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 ac_func_search_save_LIBS=$LIBS
28680cat >conftest.$ac_ext <<_ACEOF
28681/* confdefs.h. */
28682_ACEOF
28683cat confdefs.h >>conftest.$ac_ext
28684cat >>conftest.$ac_ext <<_ACEOF
28685/* end confdefs.h. */
28686
28687/* Override any GCC internal prototype to avoid an error.
28688 Use char because int might match the return type of a GCC
28689 builtin and then its argument prototype would still apply. */
28690#ifdef __cplusplus
28691extern "C"
28692#endif
28693char op_open_agent ();
28694int
28695main ()
28696{
28697return op_open_agent ();
28698 ;
28699 return 0;
28700}
28701_ACEOF
28702for ac_lib in '' opagent; do
28703 if test -z "$ac_lib"; then
28704 ac_res="none required"
28705 else
28706 ac_res=-l$ac_lib
28707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28708 fi
28709 rm -f conftest.$ac_objext conftest$ac_exeext
28710if { (ac_try="$ac_link"
28711case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28714esac
28715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_link") 2>conftest.er1
28717 ac_status=$?
28718 grep -v '^ *+' conftest.er1 >conftest.err
28719 rm -f conftest.er1
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } &&
28723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28724 { (case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727esac
28728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_try") 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; } &&
28733 { ac_try='test -s conftest$ac_exeext'
28734 { (case "(($ac_try" in
28735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736 *) ac_try_echo=$ac_try;;
28737esac
28738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28739 (eval "$ac_try") 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
28743 ac_cv_search_op_open_agent=$ac_res
28744else
28745 echo "$as_me: failed program was:" >&5
28746sed 's/^/| /' conftest.$ac_ext >&5
28747
28748
28749fi
28750
28751rm -f core conftest.err conftest.$ac_objext \
28752 conftest$ac_exeext
28753 if test "${ac_cv_search_op_open_agent+set}" = set; then
28754 break
28755fi
28756done
28757if test "${ac_cv_search_op_open_agent+set}" = set; then
28758 :
28759else
28760 ac_cv_search_op_open_agent=no
28761fi
28762rm conftest.$ac_ext
28763LIBS=$ac_func_search_save_LIBS
28764fi
28765{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28766echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28767ac_res=$ac_cv_search_op_open_agent
28768if test "$ac_res" != no; then
28769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28770
28771else
28772
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028773 echo "Error! You need to have libopagent around."
28774 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028775
28776fi
28777
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028778 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28780echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28781if test "${ac_cv_header_opagent_h+set}" = set; then
28782 echo $ECHO_N "(cached) $ECHO_C" >&6
28783fi
28784{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28785echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28786else
28787 # Is the header compilable?
28788{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28789echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28790cat >conftest.$ac_ext <<_ACEOF
28791/* confdefs.h. */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h. */
28796$ac_includes_default
28797#include <opagent.h>
28798_ACEOF
28799rm -f conftest.$ac_objext
28800if { (ac_try="$ac_compile"
28801case "(($ac_try" in
28802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803 *) ac_try_echo=$ac_try;;
28804esac
28805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28806 (eval "$ac_compile") 2>conftest.er1
28807 ac_status=$?
28808 grep -v '^ *+' conftest.er1 >conftest.err
28809 rm -f conftest.er1
28810 cat conftest.err >&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); } &&
28813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28814 { (case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_try") 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest.$ac_objext'
28824 { (case "(($ac_try" in
28825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826 *) ac_try_echo=$ac_try;;
28827esac
28828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829 (eval "$ac_try") 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; }; then
28833 ac_header_compiler=yes
28834else
28835 echo "$as_me: failed program was:" >&5
28836sed 's/^/| /' conftest.$ac_ext >&5
28837
28838 ac_header_compiler=no
28839fi
28840
28841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28843echo "${ECHO_T}$ac_header_compiler" >&6; }
28844
28845# Is the header present?
28846{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28847echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28848cat >conftest.$ac_ext <<_ACEOF
28849/* confdefs.h. */
28850_ACEOF
28851cat confdefs.h >>conftest.$ac_ext
28852cat >>conftest.$ac_ext <<_ACEOF
28853/* end confdefs.h. */
28854#include <opagent.h>
28855_ACEOF
28856if { (ac_try="$ac_cpp conftest.$ac_ext"
28857case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28860esac
28861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28863 ac_status=$?
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } >/dev/null; then
28869 if test -s conftest.err; then
28870 ac_cpp_err=$ac_c_preproc_warn_flag
28871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28872 else
28873 ac_cpp_err=
28874 fi
28875else
28876 ac_cpp_err=yes
28877fi
28878if test -z "$ac_cpp_err"; then
28879 ac_header_preproc=yes
28880else
28881 echo "$as_me: failed program was:" >&5
28882sed 's/^/| /' conftest.$ac_ext >&5
28883
28884 ac_header_preproc=no
28885fi
28886
28887rm -f conftest.err conftest.$ac_ext
28888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28889echo "${ECHO_T}$ac_header_preproc" >&6; }
28890
28891# So? What about this header?
28892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28893 yes:no: )
28894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28895echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28897echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28898 ac_header_preproc=yes
28899 ;;
28900 no:yes:* )
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28902echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28904echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28906echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28908echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28910echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28912echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28913 ( cat <<\_ASBOX
28914## ----------------------------------- ##
28915## Report this to llvmbugs@cs.uiuc.edu ##
28916## ----------------------------------- ##
28917_ASBOX
28918 ) | sed "s/^/$as_me: WARNING: /" >&2
28919 ;;
28920esac
28921{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28922echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28923if test "${ac_cv_header_opagent_h+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28925else
28926 ac_cv_header_opagent_h=$ac_header_preproc
28927fi
28928{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28929echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28930
28931fi
28932if test $ac_cv_header_opagent_h = yes; then
28933 :
28934else
28935
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028936 echo "Error! You need to have opagent.h around."
28937 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028938
28939fi
28940
28941
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028942 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028943
28944else
28945
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028946 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028947
28948
28949fi
28950
28951
28952cat >>confdefs.h <<_ACEOF
28953#define USE_OPROFILE $USE_OPROFILE
28954_ACEOF
28955
28956
28957
Reid Spencer59473af2004-12-25 07:31:29 +000028958
28959
28960
28961
28962
28963ac_header_dirent=no
28964for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028966{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28967echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028969 echo $ECHO_N "(cached) $ECHO_C" >&6
28970else
28971 cat >conftest.$ac_ext <<_ACEOF
28972/* confdefs.h. */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h. */
28977#include <sys/types.h>
28978#include <$ac_hdr>
28979
28980int
28981main ()
28982{
28983if ((DIR *) 0)
28984return 0;
28985 ;
28986 return 0;
28987}
28988_ACEOF
28989rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028990if { (ac_try="$ac_compile"
28991case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994esac
28995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029002 (exit $ac_status); } &&
29003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29004 { (case "(($ac_try" in
29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006 *) ac_try_echo=$ac_try;;
29007esac
29008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009 (eval "$ac_try") 2>&5
29010 ac_status=$?
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; } &&
29013 { ac_try='test -s conftest.$ac_objext'
29014 { (case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017esac
29018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_try") 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029023 eval "$as_ac_Header=yes"
29024else
29025 echo "$as_me: failed program was:" >&5
29026sed 's/^/| /' conftest.$ac_ext >&5
29027
Reid Spencera773bd52006-08-04 18:18:08 +000029028 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029029fi
Reid Spencera773bd52006-08-04 18:18:08 +000029030
29031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029032fi
Reid Spencera773bd52006-08-04 18:18:08 +000029033ac_res=`eval echo '${'$as_ac_Header'}'`
29034 { echo "$as_me:$LINENO: result: $ac_res" >&5
29035echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029036if test `eval echo '${'$as_ac_Header'}'` = yes; then
29037 cat >>confdefs.h <<_ACEOF
29038#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29039_ACEOF
29040
29041ac_header_dirent=$ac_hdr; break
29042fi
29043
29044done
29045# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29046if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029049if test "${ac_cv_search_opendir+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029053cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059
Reid Spencera773bd52006-08-04 18:18:08 +000029060/* Override any GCC internal prototype to avoid an error.
29061 Use char because int might match the return type of a GCC
29062 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029063#ifdef __cplusplus
29064extern "C"
29065#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029066char opendir ();
29067int
29068main ()
29069{
Reid Spencera773bd52006-08-04 18:18:08 +000029070return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029071 ;
29072 return 0;
29073}
29074_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029075for ac_lib in '' dir; do
29076 if test -z "$ac_lib"; then
29077 ac_res="none required"
29078 else
29079 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029081 fi
29082 rm -f conftest.$ac_objext conftest$ac_exeext
29083if { (ac_try="$ac_link"
29084case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087esac
29088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029090 ac_status=$?
29091 grep -v '^ *+' conftest.er1 >conftest.err
29092 rm -f conftest.er1
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29097 { (case "(($ac_try" in
29098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099 *) ac_try_echo=$ac_try;;
29100esac
29101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102 (eval "$ac_try") 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110esac
29111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029116 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029117else
29118 echo "$as_me: failed program was:" >&5
29119sed 's/^/| /' conftest.$ac_ext >&5
29120
Reid Spencera773bd52006-08-04 18:18:08 +000029121
Reid Spencer59473af2004-12-25 07:31:29 +000029122fi
Reid Spencera773bd52006-08-04 18:18:08 +000029123
Bill Wendlingebcceee2009-04-18 11:20:33 +000029124rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029125 conftest$ac_exeext
29126 if test "${ac_cv_search_opendir+set}" = set; then
29127 break
Reid Spencer59473af2004-12-25 07:31:29 +000029128fi
Reid Spencera773bd52006-08-04 18:18:08 +000029129done
29130if test "${ac_cv_search_opendir+set}" = set; then
29131 :
29132else
29133 ac_cv_search_opendir=no
29134fi
29135rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029136LIBS=$ac_func_search_save_LIBS
29137fi
Reid Spencera773bd52006-08-04 18:18:08 +000029138{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29139echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29140ac_res=$ac_cv_search_opendir
29141if test "$ac_res" != no; then
29142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029143
29144fi
29145
29146else
Reid Spencera773bd52006-08-04 18:18:08 +000029147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29148echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029149if test "${ac_cv_search_opendir+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29151else
29152 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029153cat >conftest.$ac_ext <<_ACEOF
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
29159
Reid Spencera773bd52006-08-04 18:18:08 +000029160/* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029163#ifdef __cplusplus
29164extern "C"
29165#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029166char opendir ();
29167int
29168main ()
29169{
Reid Spencera773bd52006-08-04 18:18:08 +000029170return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029171 ;
29172 return 0;
29173}
29174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029175for ac_lib in '' x; do
29176 if test -z "$ac_lib"; then
29177 ac_res="none required"
29178 else
29179 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029181 fi
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (ac_try="$ac_link"
29184case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187esac
29188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029190 ac_status=$?
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029195 (exit $ac_status); } &&
29196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29197 { (case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29200esac
29201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_try") 2>&5
29203 ac_status=$?
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210esac
29211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_try") 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029216 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029217else
29218 echo "$as_me: failed program was:" >&5
29219sed 's/^/| /' conftest.$ac_ext >&5
29220
Reid Spencera773bd52006-08-04 18:18:08 +000029221
Reid Spencer59473af2004-12-25 07:31:29 +000029222fi
Reid Spencera773bd52006-08-04 18:18:08 +000029223
Bill Wendlingebcceee2009-04-18 11:20:33 +000029224rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029225 conftest$ac_exeext
29226 if test "${ac_cv_search_opendir+set}" = set; then
29227 break
Reid Spencer59473af2004-12-25 07:31:29 +000029228fi
Reid Spencera773bd52006-08-04 18:18:08 +000029229done
29230if test "${ac_cv_search_opendir+set}" = set; then
29231 :
29232else
29233 ac_cv_search_opendir=no
29234fi
29235rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029236LIBS=$ac_func_search_save_LIBS
29237fi
Reid Spencera773bd52006-08-04 18:18:08 +000029238{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29239echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29240ac_res=$ac_cv_search_opendir
29241if test "$ac_res" != no; then
29242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029243
29244fi
29245
29246fi
29247
Reid Spencera773bd52006-08-04 18:18:08 +000029248{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29249echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029250if test "${ac_cv_header_mmap_anon+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29252else
29253 ac_ext=c
29254ac_cpp='$CPP $CPPFLAGS'
29255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29257ac_compiler_gnu=$ac_cv_c_compiler_gnu
29258
29259 cat >conftest.$ac_ext <<_ACEOF
29260/* confdefs.h. */
29261_ACEOF
29262cat confdefs.h >>conftest.$ac_ext
29263cat >>conftest.$ac_ext <<_ACEOF
29264/* end confdefs.h. */
29265#include <sys/mman.h>
29266#include <unistd.h>
29267#include <fcntl.h>
29268int
29269main ()
29270{
29271mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29272 ;
29273 return 0;
29274}
29275_ACEOF
29276rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029277if { (ac_try="$ac_compile"
29278case "(($ac_try" in
29279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280 *) ac_try_echo=$ac_try;;
29281esac
29282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29283 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029284 ac_status=$?
29285 grep -v '^ *+' conftest.er1 >conftest.err
29286 rm -f conftest.er1
29287 cat conftest.err >&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029289 (exit $ac_status); } &&
29290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29291 { (case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294esac
29295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29296 (eval "$ac_try") 2>&5
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest.$ac_objext'
29301 { (case "(($ac_try" in
29302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303 *) ac_try_echo=$ac_try;;
29304esac
29305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306 (eval "$ac_try") 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029310 ac_cv_header_mmap_anon=yes
29311else
29312 echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
Reid Spencera773bd52006-08-04 18:18:08 +000029315 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029316fi
Reid Spencera773bd52006-08-04 18:18:08 +000029317
29318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029319 ac_ext=c
29320ac_cpp='$CPP $CPPFLAGS'
29321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323ac_compiler_gnu=$ac_cv_c_compiler_gnu
29324
29325
29326fi
Reid Spencera773bd52006-08-04 18:18:08 +000029327{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29328echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029329if test "$ac_cv_header_mmap_anon" = yes; then
29330
29331cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029332#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029333_ACEOF
29334
29335fi
29336
Reid Spencera773bd52006-08-04 18:18:08 +000029337{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29338echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029339if test "${ac_cv_header_stat_broken+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341else
29342 cat >conftest.$ac_ext <<_ACEOF
29343/* confdefs.h. */
29344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
29348#include <sys/types.h>
29349#include <sys/stat.h>
29350
Reid Spencera773bd52006-08-04 18:18:08 +000029351#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029352# if S_ISBLK (S_IFDIR)
29353You lose.
29354# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029355#endif
29356
Reid Spencera773bd52006-08-04 18:18:08 +000029357#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029358# if S_ISBLK (S_IFCHR)
29359You lose.
29360# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029361#endif
29362
Reid Spencera773bd52006-08-04 18:18:08 +000029363#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029364# if S_ISLNK (S_IFREG)
29365You lose.
29366# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029367#endif
29368
Reid Spencera773bd52006-08-04 18:18:08 +000029369#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029370# if S_ISSOCK (S_IFREG)
29371You lose.
29372# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029373#endif
29374
29375_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29377 $EGREP "You lose" >/dev/null 2>&1; then
29378 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029379else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029380 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029381fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029382rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029383
Reid Spencer59473af2004-12-25 07:31:29 +000029384fi
Reid Spencera773bd52006-08-04 18:18:08 +000029385{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29386echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029387if test $ac_cv_header_stat_broken = yes; then
29388
29389cat >>confdefs.h <<\_ACEOF
29390#define STAT_MACROS_BROKEN 1
29391_ACEOF
29392
29393fi
29394
Reid Spencera773bd52006-08-04 18:18:08 +000029395{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29396echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029397if test "${ac_cv_header_stdc+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029401/* confdefs.h. */
29402_ACEOF
29403cat confdefs.h >>conftest.$ac_ext
29404cat >>conftest.$ac_ext <<_ACEOF
29405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029406#include <stdlib.h>
29407#include <stdarg.h>
29408#include <string.h>
29409#include <float.h>
29410
John Criswell0c38eaf2003-09-10 15:17:25 +000029411int
29412main ()
29413{
29414
29415 ;
29416 return 0;
29417}
John Criswell7a73b802003-06-30 21:59:07 +000029418_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029420if { (ac_try="$ac_compile"
29421case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29424esac
29425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29434 { (case "(($ac_try" in
29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436 *) ac_try_echo=$ac_try;;
29437esac
29438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439 (eval "$ac_try") 2>&5
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; } &&
29443 { ac_try='test -s conftest.$ac_objext'
29444 { (case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447esac
29448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_try") 2>&5
29450 ac_status=$?
29451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029453 ac_cv_header_stdc=yes
29454else
29455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029456sed 's/^/| /' conftest.$ac_ext >&5
29457
Reid Spencera773bd52006-08-04 18:18:08 +000029458 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029459fi
Reid Spencera773bd52006-08-04 18:18:08 +000029460
29461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029462
29463if test $ac_cv_header_stdc = yes; then
29464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029466/* confdefs.h. */
29467_ACEOF
29468cat confdefs.h >>conftest.$ac_ext
29469cat >>conftest.$ac_ext <<_ACEOF
29470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029471#include <string.h>
29472
29473_ACEOF
29474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029475 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029476 :
29477else
29478 ac_cv_header_stdc=no
29479fi
29480rm -f conftest*
29481
29482fi
29483
29484if test $ac_cv_header_stdc = yes; then
29485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29486 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029487/* confdefs.h. */
29488_ACEOF
29489cat confdefs.h >>conftest.$ac_ext
29490cat >>conftest.$ac_ext <<_ACEOF
29491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029492#include <stdlib.h>
29493
29494_ACEOF
29495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029496 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029497 :
29498else
29499 ac_cv_header_stdc=no
29500fi
29501rm -f conftest*
29502
29503fi
29504
29505if test $ac_cv_header_stdc = yes; then
29506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29507 if test "$cross_compiling" = yes; then
29508 :
29509else
29510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029511/* confdefs.h. */
29512_ACEOF
29513cat confdefs.h >>conftest.$ac_ext
29514cat >>conftest.$ac_ext <<_ACEOF
29515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029516#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029517#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029518#if ((' ' & 0x0FF) == 0x020)
29519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29521#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029522# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029523 (('a' <= (c) && (c) <= 'i') \
29524 || ('j' <= (c) && (c) <= 'r') \
29525 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29527#endif
29528
29529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29530int
29531main ()
29532{
29533 int i;
29534 for (i = 0; i < 256; i++)
29535 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029536 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029537 return 2;
29538 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029539}
29540_ACEOF
29541rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029542if { (ac_try="$ac_link"
29543case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29546esac
29547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029549 ac_status=$?
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555esac
29556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29561 :
29562else
29563 echo "$as_me: program exited with status $ac_status" >&5
29564echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029565sed 's/^/| /' conftest.$ac_ext >&5
29566
John Criswell7a73b802003-06-30 21:59:07 +000029567( exit $ac_status )
29568ac_cv_header_stdc=no
29569fi
Reid Spencera773bd52006-08-04 18:18:08 +000029570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29571fi
29572
29573
John Criswell7a73b802003-06-30 21:59:07 +000029574fi
29575fi
Reid Spencera773bd52006-08-04 18:18:08 +000029576{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29577echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029578if test $ac_cv_header_stdc = yes; then
29579
29580cat >>confdefs.h <<\_ACEOF
29581#define STDC_HEADERS 1
29582_ACEOF
29583
29584fi
29585
Reid Spencera773bd52006-08-04 18:18:08 +000029586{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29587echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029588if test "${ac_cv_header_sys_wait_h+set}" = set; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29590else
29591 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029592/* confdefs.h. */
29593_ACEOF
29594cat confdefs.h >>conftest.$ac_ext
29595cat >>conftest.$ac_ext <<_ACEOF
29596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029597#include <sys/types.h>
29598#include <sys/wait.h>
29599#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029600# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029601#endif
29602#ifndef WIFEXITED
29603# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29604#endif
29605
John Criswell7a73b802003-06-30 21:59:07 +000029606int
29607main ()
29608{
29609 int s;
29610 wait (&s);
29611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29612 ;
29613 return 0;
29614}
29615_ACEOF
29616rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029617if { (ac_try="$ac_compile"
29618case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621esac
29622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029629 (exit $ac_status); } &&
29630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29631 { (case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29634esac
29635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_try") 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
29640 { ac_try='test -s conftest.$ac_objext'
29641 { (case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644esac
29645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_try") 2>&5
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029650 ac_cv_header_sys_wait_h=yes
29651else
29652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029653sed 's/^/| /' conftest.$ac_ext >&5
29654
Reid Spencera773bd52006-08-04 18:18:08 +000029655 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029656fi
Reid Spencera773bd52006-08-04 18:18:08 +000029657
29658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029659fi
Reid Spencera773bd52006-08-04 18:18:08 +000029660{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29661echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029662if test $ac_cv_header_sys_wait_h = yes; then
29663
29664cat >>confdefs.h <<\_ACEOF
29665#define HAVE_SYS_WAIT_H 1
29666_ACEOF
29667
29668fi
29669
Reid Spencera773bd52006-08-04 18:18:08 +000029670{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29671echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029672if test "${ac_cv_header_time+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674else
29675 cat >conftest.$ac_ext <<_ACEOF
29676/* confdefs.h. */
29677_ACEOF
29678cat confdefs.h >>conftest.$ac_ext
29679cat >>conftest.$ac_ext <<_ACEOF
29680/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029681#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029682#include <sys/time.h>
29683#include <time.h>
29684
29685int
29686main ()
29687{
29688if ((struct tm *) 0)
29689return 0;
29690 ;
29691 return 0;
29692}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029693_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029694rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029695if { (ac_try="$ac_compile"
29696case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699esac
29700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712esac
29713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29722esac
29723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029728 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029729else
29730 echo "$as_me: failed program was:" >&5
29731sed 's/^/| /' conftest.$ac_ext >&5
29732
Reid Spencera773bd52006-08-04 18:18:08 +000029733 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029734fi
Reid Spencera773bd52006-08-04 18:18:08 +000029735
29736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029737fi
Reid Spencera773bd52006-08-04 18:18:08 +000029738{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29739echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029740if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029742cat >>confdefs.h <<\_ACEOF
29743#define TIME_WITH_SYS_TIME 1
29744_ACEOF
29745
29746fi
29747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029748
Reid Spencer59473af2004-12-25 07:31:29 +000029749
29750
29751
29752
29753
29754
29755for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29756do
29757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029762 echo $ECHO_N "(cached) $ECHO_C" >&6
29763fi
Reid Spencera773bd52006-08-04 18:18:08 +000029764ac_res=`eval echo '${'$as_ac_Header'}'`
29765 { echo "$as_me:$LINENO: result: $ac_res" >&5
29766echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029767else
29768 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029771cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029772/* confdefs.h. */
29773_ACEOF
29774cat confdefs.h >>conftest.$ac_ext
29775cat >>conftest.$ac_ext <<_ACEOF
29776/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029777$ac_includes_default
29778#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779_ACEOF
29780rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029781if { (ac_try="$ac_compile"
29782case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785esac
29786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029788 ac_status=$?
29789 grep -v '^ *+' conftest.er1 >conftest.err
29790 rm -f conftest.er1
29791 cat conftest.err >&5
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029793 (exit $ac_status); } &&
29794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29795 { (case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29798esac
29799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29800 (eval "$ac_try") 2>&5
29801 ac_status=$?
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); }; } &&
29804 { ac_try='test -s conftest.$ac_objext'
29805 { (case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29808esac
29809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_try") 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029814 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029815else
29816 echo "$as_me: failed program was:" >&5
29817sed 's/^/| /' conftest.$ac_ext >&5
29818
Reid Spencera773bd52006-08-04 18:18:08 +000029819 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029820fi
Reid Spencera773bd52006-08-04 18:18:08 +000029821
29822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29824echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029825
Reid Spencer59473af2004-12-25 07:31:29 +000029826# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029829cat >conftest.$ac_ext <<_ACEOF
29830/* confdefs.h. */
29831_ACEOF
29832cat confdefs.h >>conftest.$ac_ext
29833cat >>conftest.$ac_ext <<_ACEOF
29834/* end confdefs.h. */
29835#include <$ac_header>
29836_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029837if { (ac_try="$ac_cpp conftest.$ac_ext"
29838case "(($ac_try" in
29839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29840 *) ac_try_echo=$ac_try;;
29841esac
29842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029844 ac_status=$?
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029849 (exit $ac_status); } >/dev/null; then
29850 if test -s conftest.err; then
29851 ac_cpp_err=$ac_c_preproc_warn_flag
29852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29853 else
29854 ac_cpp_err=
29855 fi
29856else
29857 ac_cpp_err=yes
29858fi
29859if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029860 ac_header_preproc=yes
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_header_preproc=no
29866fi
Reid Spencera773bd52006-08-04 18:18:08 +000029867
Reid Spencer59473af2004-12-25 07:31:29 +000029868rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29870echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029871
29872# So? What about this header?
29873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29874 yes:no: )
29875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29879 ac_header_preproc=yes
29880 ;;
29881 no:yes:* )
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029894 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029895## ----------------------------------- ##
29896## Report this to llvmbugs@cs.uiuc.edu ##
29897## ----------------------------------- ##
29898_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029899 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029900 ;;
29901esac
Reid Spencera773bd52006-08-04 18:18:08 +000029902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906else
29907 eval "$as_ac_Header=\$ac_header_preproc"
29908fi
Reid Spencera773bd52006-08-04 18:18:08 +000029909ac_res=`eval echo '${'$as_ac_Header'}'`
29910 { echo "$as_me:$LINENO: result: $ac_res" >&5
29911echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029912
29913fi
Reid Spencer59473af2004-12-25 07:31:29 +000029914if test `eval echo '${'$as_ac_Header'}'` = yes; then
29915 cat >>confdefs.h <<_ACEOF
29916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029917_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029918
29919fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029920
Reid Spencer59473af2004-12-25 07:31:29 +000029921done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029922
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029923
29924
Reid Spencer59473af2004-12-25 07:31:29 +000029925
29926
29927
29928
Douglas Gregor071d73d2009-05-18 17:21:34 +000029929for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029930do
29931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029936 echo $ECHO_N "(cached) $ECHO_C" >&6
29937fi
Reid Spencera773bd52006-08-04 18:18:08 +000029938ac_res=`eval echo '${'$as_ac_Header'}'`
29939 { echo "$as_me:$LINENO: result: $ac_res" >&5
29940echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029941else
29942 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029945cat >conftest.$ac_ext <<_ACEOF
29946/* confdefs.h. */
29947_ACEOF
29948cat confdefs.h >>conftest.$ac_ext
29949cat >>conftest.$ac_ext <<_ACEOF
29950/* end confdefs.h. */
29951$ac_includes_default
29952#include <$ac_header>
29953_ACEOF
29954rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029955if { (ac_try="$ac_compile"
29956case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29959esac
29960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029962 ac_status=$?
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029967 (exit $ac_status); } &&
29968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29969 { (case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29972esac
29973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_try") 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; } &&
29978 { ac_try='test -s conftest.$ac_objext'
29979 { (case "(($ac_try" in
29980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981 *) ac_try_echo=$ac_try;;
29982esac
29983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29984 (eval "$ac_try") 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029988 ac_header_compiler=yes
29989else
29990 echo "$as_me: failed program was:" >&5
29991sed 's/^/| /' conftest.$ac_ext >&5
29992
Reid Spencera773bd52006-08-04 18:18:08 +000029993 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029994fi
Reid Spencera773bd52006-08-04 18:18:08 +000029995
29996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29998echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029999
30000# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030003cat >conftest.$ac_ext <<_ACEOF
30004/* confdefs.h. */
30005_ACEOF
30006cat confdefs.h >>conftest.$ac_ext
30007cat >>conftest.$ac_ext <<_ACEOF
30008/* end confdefs.h. */
30009#include <$ac_header>
30010_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030011if { (ac_try="$ac_cpp conftest.$ac_ext"
30012case "(($ac_try" in
30013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30014 *) ac_try_echo=$ac_try;;
30015esac
30016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030018 ac_status=$?
30019 grep -v '^ *+' conftest.er1 >conftest.err
30020 rm -f conftest.er1
30021 cat conftest.err >&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030023 (exit $ac_status); } >/dev/null; then
30024 if test -s conftest.err; then
30025 ac_cpp_err=$ac_c_preproc_warn_flag
30026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30027 else
30028 ac_cpp_err=
30029 fi
30030else
30031 ac_cpp_err=yes
30032fi
30033if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030034 ac_header_preproc=yes
30035else
30036 echo "$as_me: failed program was:" >&5
30037sed 's/^/| /' conftest.$ac_ext >&5
30038
30039 ac_header_preproc=no
30040fi
Reid Spencera773bd52006-08-04 18:18:08 +000030041
Reid Spencer59473af2004-12-25 07:31:29 +000030042rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30044echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030045
30046# So? What about this header?
30047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30048 yes:no: )
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30053 ac_header_preproc=yes
30054 ;;
30055 no:yes:* )
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030068 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030069## ----------------------------------- ##
30070## Report this to llvmbugs@cs.uiuc.edu ##
30071## ----------------------------------- ##
30072_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030073 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030074 ;;
30075esac
Reid Spencera773bd52006-08-04 18:18:08 +000030076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 eval "$as_ac_Header=\$ac_header_preproc"
30082fi
Reid Spencera773bd52006-08-04 18:18:08 +000030083ac_res=`eval echo '${'$as_ac_Header'}'`
30084 { echo "$as_me:$LINENO: result: $ac_res" >&5
30085echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030086
30087fi
30088if test `eval echo '${'$as_ac_Header'}'` = yes; then
30089 cat >>confdefs.h <<_ACEOF
30090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30091_ACEOF
30092
30093fi
30094
30095done
30096
30097
Douglas Gregor071d73d2009-05-18 17:21:34 +000030098
30099for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030100do
30101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30106 echo $ECHO_N "(cached) $ECHO_C" >&6
30107fi
30108ac_res=`eval echo '${'$as_ac_Header'}'`
30109 { echo "$as_me:$LINENO: result: $ac_res" >&5
30110echo "${ECHO_T}$ac_res" >&6; }
30111else
30112 # Is the header compilable?
30113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30115cat >conftest.$ac_ext <<_ACEOF
30116/* confdefs.h. */
30117_ACEOF
30118cat confdefs.h >>conftest.$ac_ext
30119cat >>conftest.$ac_ext <<_ACEOF
30120/* end confdefs.h. */
30121$ac_includes_default
30122#include <$ac_header>
30123_ACEOF
30124rm -f conftest.$ac_objext
30125if { (ac_try="$ac_compile"
30126case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30129esac
30130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30132 ac_status=$?
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030137 (exit $ac_status); } &&
30138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30139 { (case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142esac
30143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_try") 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest.$ac_objext'
30149 { (case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30152esac
30153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_try") 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030158 ac_header_compiler=yes
30159else
30160 echo "$as_me: failed program was:" >&5
30161sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 ac_header_compiler=no
30164fi
30165
30166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30168echo "${ECHO_T}$ac_header_compiler" >&6; }
30169
30170# Is the header present?
30171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30173cat >conftest.$ac_ext <<_ACEOF
30174/* confdefs.h. */
30175_ACEOF
30176cat confdefs.h >>conftest.$ac_ext
30177cat >>conftest.$ac_ext <<_ACEOF
30178/* end confdefs.h. */
30179#include <$ac_header>
30180_ACEOF
30181if { (ac_try="$ac_cpp conftest.$ac_ext"
30182case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30185esac
30186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30188 ac_status=$?
30189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030193 (exit $ac_status); } >/dev/null; then
30194 if test -s conftest.err; then
30195 ac_cpp_err=$ac_c_preproc_warn_flag
30196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30197 else
30198 ac_cpp_err=
30199 fi
30200else
30201 ac_cpp_err=yes
30202fi
30203if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030204 ac_header_preproc=yes
30205else
30206 echo "$as_me: failed program was:" >&5
30207sed 's/^/| /' conftest.$ac_ext >&5
30208
30209 ac_header_preproc=no
30210fi
30211
30212rm -f conftest.err conftest.$ac_ext
30213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30214echo "${ECHO_T}$ac_header_preproc" >&6; }
30215
30216# So? What about this header?
30217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30218 yes:no: )
30219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30223 ac_header_preproc=yes
30224 ;;
30225 no:yes:* )
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30238 ( cat <<\_ASBOX
30239## ----------------------------------- ##
30240## Report this to llvmbugs@cs.uiuc.edu ##
30241## ----------------------------------- ##
30242_ASBOX
30243 ) | sed "s/^/$as_me: WARNING: /" >&2
30244 ;;
30245esac
30246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30250else
30251 eval "$as_ac_Header=\$ac_header_preproc"
30252fi
30253ac_res=`eval echo '${'$as_ac_Header'}'`
30254 { echo "$as_me:$LINENO: result: $ac_res" >&5
30255echo "${ECHO_T}$ac_res" >&6; }
30256
30257fi
30258if test `eval echo '${'$as_ac_Header'}'` = yes; then
30259 cat >>confdefs.h <<_ACEOF
30260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30261_ACEOF
30262
30263fi
30264
30265done
Reid Spencer59473af2004-12-25 07:31:29 +000030266
30267
30268
30269
Reid Spencerbe3e4192007-08-17 05:45:26 +000030270
30271for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272do
30273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030278 echo $ECHO_N "(cached) $ECHO_C" >&6
30279fi
Reid Spencera773bd52006-08-04 18:18:08 +000030280ac_res=`eval echo '${'$as_ac_Header'}'`
30281 { echo "$as_me:$LINENO: result: $ac_res" >&5
30282echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030283else
30284 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030285{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030287cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030288/* confdefs.h. */
30289_ACEOF
30290cat confdefs.h >>conftest.$ac_ext
30291cat >>conftest.$ac_ext <<_ACEOF
30292/* end confdefs.h. */
30293$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030294#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030295_ACEOF
30296rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030297if { (ac_try="$ac_compile"
30298case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30301esac
30302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030309 (exit $ac_status); } &&
30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30311 { (case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30314esac
30315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_try") 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; } &&
30320 { ac_try='test -s conftest.$ac_objext'
30321 { (case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30324esac
30325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326 (eval "$ac_try") 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030330 ac_header_compiler=yes
30331else
30332 echo "$as_me: failed program was:" >&5
30333sed 's/^/| /' conftest.$ac_ext >&5
30334
Reid Spencera773bd52006-08-04 18:18:08 +000030335 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030336fi
Reid Spencera773bd52006-08-04 18:18:08 +000030337
30338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30340echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030341
30342# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030343{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030345cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030351#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030352_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030353if { (ac_try="$ac_cpp conftest.$ac_ext"
30354case "(($ac_try" in
30355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356 *) ac_try_echo=$ac_try;;
30357esac
30358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030360 ac_status=$?
30361 grep -v '^ *+' conftest.er1 >conftest.err
30362 rm -f conftest.er1
30363 cat conftest.err >&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030365 (exit $ac_status); } >/dev/null; then
30366 if test -s conftest.err; then
30367 ac_cpp_err=$ac_c_preproc_warn_flag
30368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30369 else
30370 ac_cpp_err=
30371 fi
30372else
30373 ac_cpp_err=yes
30374fi
30375if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030376 ac_header_preproc=yes
30377else
30378 echo "$as_me: failed program was:" >&5
30379sed 's/^/| /' conftest.$ac_ext >&5
30380
30381 ac_header_preproc=no
30382fi
Reid Spencera773bd52006-08-04 18:18:08 +000030383
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030384rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030385{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30386echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030387
30388# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30390 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030395 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030396 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030397 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30405echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030410 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030411## ----------------------------------- ##
30412## Report this to llvmbugs@cs.uiuc.edu ##
30413## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030414_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030415 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030416 ;;
30417esac
Reid Spencera773bd52006-08-04 18:18:08 +000030418{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030421 echo $ECHO_N "(cached) $ECHO_C" >&6
30422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030423 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030424fi
Reid Spencera773bd52006-08-04 18:18:08 +000030425ac_res=`eval echo '${'$as_ac_Header'}'`
30426 { echo "$as_me:$LINENO: result: $ac_res" >&5
30427echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030428
30429fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030430if test `eval echo '${'$as_ac_Header'}'` = yes; then
30431 cat >>confdefs.h <<_ACEOF
30432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030433_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030434
30435fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030436
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030437done
30438
John Criswell7ed43ad2004-07-19 16:12:29 +000030439
Reid Spencercdb08a32006-06-05 16:11:07 +000030440
Reid Spencera6d990a2006-09-14 06:17:21 +000030441
Douglas Gregor01746742009-05-11 18:05:52 +000030442
30443for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030444do
30445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030450 echo $ECHO_N "(cached) $ECHO_C" >&6
30451fi
Reid Spencera773bd52006-08-04 18:18:08 +000030452ac_res=`eval echo '${'$as_ac_Header'}'`
30453 { echo "$as_me:$LINENO: result: $ac_res" >&5
30454echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030455else
30456 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030459cat >conftest.$ac_ext <<_ACEOF
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
30465$ac_includes_default
30466#include <$ac_header>
30467_ACEOF
30468rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030469if { (ac_try="$ac_compile"
30470case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473esac
30474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030476 ac_status=$?
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030481 (exit $ac_status); } &&
30482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30483 { (case "(($ac_try" in
30484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30485 *) ac_try_echo=$ac_try;;
30486esac
30487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30488 (eval "$ac_try") 2>&5
30489 ac_status=$?
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }; } &&
30492 { ac_try='test -s conftest.$ac_objext'
30493 { (case "(($ac_try" in
30494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495 *) ac_try_echo=$ac_try;;
30496esac
30497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498 (eval "$ac_try") 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030502 ac_header_compiler=yes
30503else
30504 echo "$as_me: failed program was:" >&5
30505sed 's/^/| /' conftest.$ac_ext >&5
30506
Reid Spencera773bd52006-08-04 18:18:08 +000030507 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030508fi
Reid Spencera773bd52006-08-04 18:18:08 +000030509
30510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30512echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030513
30514# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030515{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030517cat >conftest.$ac_ext <<_ACEOF
30518/* confdefs.h. */
30519_ACEOF
30520cat confdefs.h >>conftest.$ac_ext
30521cat >>conftest.$ac_ext <<_ACEOF
30522/* end confdefs.h. */
30523#include <$ac_header>
30524_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030525if { (ac_try="$ac_cpp conftest.$ac_ext"
30526case "(($ac_try" in
30527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528 *) ac_try_echo=$ac_try;;
30529esac
30530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030532 ac_status=$?
30533 grep -v '^ *+' conftest.er1 >conftest.err
30534 rm -f conftest.er1
30535 cat conftest.err >&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030537 (exit $ac_status); } >/dev/null; then
30538 if test -s conftest.err; then
30539 ac_cpp_err=$ac_c_preproc_warn_flag
30540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30541 else
30542 ac_cpp_err=
30543 fi
30544else
30545 ac_cpp_err=yes
30546fi
30547if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030548 ac_header_preproc=yes
30549else
30550 echo "$as_me: failed program was:" >&5
30551sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 ac_header_preproc=no
30554fi
Reid Spencera773bd52006-08-04 18:18:08 +000030555
Chris Lattner0b142592005-11-14 06:57:34 +000030556rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30558echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030559
30560# So? What about this header?
30561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30562 yes:no: )
30563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30567 ac_header_preproc=yes
30568 ;;
30569 no:yes:* )
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030582 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030583## ----------------------------------- ##
30584## Report this to llvmbugs@cs.uiuc.edu ##
30585## ----------------------------------- ##
30586_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030587 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030588 ;;
30589esac
Reid Spencera773bd52006-08-04 18:18:08 +000030590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 eval "$as_ac_Header=\$ac_header_preproc"
30596fi
Reid Spencera773bd52006-08-04 18:18:08 +000030597ac_res=`eval echo '${'$as_ac_Header'}'`
30598 { echo "$as_me:$LINENO: result: $ac_res" >&5
30599echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030600
30601fi
30602if test `eval echo '${'$as_ac_Header'}'` = yes; then
30603 cat >>confdefs.h <<_ACEOF
30604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30605_ACEOF
30606
30607fi
30608
30609done
30610
Reid Spencer0a262ba2005-08-24 10:07:20 +000030611if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030612
30613for ac_header in pthread.h
30614do
30615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030620 echo $ECHO_N "(cached) $ECHO_C" >&6
30621fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030622ac_res=`eval echo '${'$as_ac_Header'}'`
30623 { echo "$as_me:$LINENO: result: $ac_res" >&5
30624echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030625else
30626 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030629cat >conftest.$ac_ext <<_ACEOF
30630/* confdefs.h. */
30631_ACEOF
30632cat confdefs.h >>conftest.$ac_ext
30633cat >>conftest.$ac_ext <<_ACEOF
30634/* end confdefs.h. */
30635$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030636#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030637_ACEOF
30638rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030639if { (ac_try="$ac_compile"
30640case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30643esac
30644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030646 ac_status=$?
30647 grep -v '^ *+' conftest.er1 >conftest.err
30648 rm -f conftest.er1
30649 cat conftest.err >&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030651 (exit $ac_status); } &&
30652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30653 { (case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_try") 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; } &&
30662 { ac_try='test -s conftest.$ac_objext'
30663 { (case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30666esac
30667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668 (eval "$ac_try") 2>&5
30669 ac_status=$?
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030672 ac_header_compiler=yes
30673else
30674 echo "$as_me: failed program was:" >&5
30675sed 's/^/| /' conftest.$ac_ext >&5
30676
Reid Spencera773bd52006-08-04 18:18:08 +000030677 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030678fi
Reid Spencera773bd52006-08-04 18:18:08 +000030679
30680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30682echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030683
30684# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030687cat >conftest.$ac_ext <<_ACEOF
30688/* confdefs.h. */
30689_ACEOF
30690cat confdefs.h >>conftest.$ac_ext
30691cat >>conftest.$ac_ext <<_ACEOF
30692/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030693#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030695if { (ac_try="$ac_cpp conftest.$ac_ext"
30696case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30699esac
30700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030702 ac_status=$?
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030707 (exit $ac_status); } >/dev/null; then
30708 if test -s conftest.err; then
30709 ac_cpp_err=$ac_c_preproc_warn_flag
30710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30711 else
30712 ac_cpp_err=
30713 fi
30714else
30715 ac_cpp_err=yes
30716fi
30717if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030718 ac_header_preproc=yes
30719else
30720 echo "$as_me: failed program was:" >&5
30721sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ac_header_preproc=no
30724fi
Reid Spencera773bd52006-08-04 18:18:08 +000030725
Reid Spencer0a262ba2005-08-24 10:07:20 +000030726rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30728echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030729
30730# So? What about this header?
30731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30732 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030737 ac_header_preproc=yes
30738 ;;
30739 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030752 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030753## ----------------------------------- ##
30754## Report this to llvmbugs@cs.uiuc.edu ##
30755## ----------------------------------- ##
30756_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030757 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030758 ;;
30759esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030763 echo $ECHO_N "(cached) $ECHO_C" >&6
30764else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030765 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030766fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030767ac_res=`eval echo '${'$as_ac_Header'}'`
30768 { echo "$as_me:$LINENO: result: $ac_res" >&5
30769echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030770
30771fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030772if test `eval echo '${'$as_ac_Header'}'` = yes; then
30773 cat >>confdefs.h <<_ACEOF
30774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30775_ACEOF
30776 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030777
30778else
30779 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030780
30781fi
30782
Reid Spencerbe3e4192007-08-17 05:45:26 +000030783done
Reid Spencer1000b732006-12-01 00:37:14 +000030784
30785else
30786 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030787
30788fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030789
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030790if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030791
30792
30793for ac_header in ffi.h ffi/ffi.h
30794do
30795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30800 echo $ECHO_N "(cached) $ECHO_C" >&6
30801fi
30802ac_res=`eval echo '${'$as_ac_Header'}'`
30803 { echo "$as_me:$LINENO: result: $ac_res" >&5
30804echo "${ECHO_T}$ac_res" >&6; }
30805else
30806 # Is the header compilable?
30807{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30809cat >conftest.$ac_ext <<_ACEOF
30810/* confdefs.h. */
30811_ACEOF
30812cat confdefs.h >>conftest.$ac_ext
30813cat >>conftest.$ac_ext <<_ACEOF
30814/* end confdefs.h. */
30815$ac_includes_default
30816#include <$ac_header>
30817_ACEOF
30818rm -f conftest.$ac_objext
30819if { (ac_try="$ac_compile"
30820case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30823esac
30824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_compile") 2>conftest.er1
30826 ac_status=$?
30827 grep -v '^ *+' conftest.er1 >conftest.err
30828 rm -f conftest.er1
30829 cat conftest.err >&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030831 (exit $ac_status); } &&
30832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30833 { (case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30836esac
30837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_try") 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; } &&
30842 { ac_try='test -s conftest.$ac_objext'
30843 { (case "(($ac_try" in
30844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845 *) ac_try_echo=$ac_try;;
30846esac
30847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848 (eval "$ac_try") 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030852 ac_header_compiler=yes
30853else
30854 echo "$as_me: failed program was:" >&5
30855sed 's/^/| /' conftest.$ac_ext >&5
30856
30857 ac_header_compiler=no
30858fi
30859
30860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30862echo "${ECHO_T}$ac_header_compiler" >&6; }
30863
30864# Is the header present?
30865{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30867cat >conftest.$ac_ext <<_ACEOF
30868/* confdefs.h. */
30869_ACEOF
30870cat confdefs.h >>conftest.$ac_ext
30871cat >>conftest.$ac_ext <<_ACEOF
30872/* end confdefs.h. */
30873#include <$ac_header>
30874_ACEOF
30875if { (ac_try="$ac_cpp conftest.$ac_ext"
30876case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30879esac
30880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030887 (exit $ac_status); } >/dev/null; then
30888 if test -s conftest.err; then
30889 ac_cpp_err=$ac_c_preproc_warn_flag
30890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30891 else
30892 ac_cpp_err=
30893 fi
30894else
30895 ac_cpp_err=yes
30896fi
30897if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030898 ac_header_preproc=yes
30899else
30900 echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903 ac_header_preproc=no
30904fi
30905
30906rm -f conftest.err conftest.$ac_ext
30907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30908echo "${ECHO_T}$ac_header_preproc" >&6; }
30909
30910# So? What about this header?
30911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30912 yes:no: )
30913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30917 ac_header_preproc=yes
30918 ;;
30919 no:yes:* )
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30932 ( cat <<\_ASBOX
30933## ----------------------------------- ##
30934## Report this to llvmbugs@cs.uiuc.edu ##
30935## ----------------------------------- ##
30936_ASBOX
30937 ) | sed "s/^/$as_me: WARNING: /" >&2
30938 ;;
30939esac
30940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945 eval "$as_ac_Header=\$ac_header_preproc"
30946fi
30947ac_res=`eval echo '${'$as_ac_Header'}'`
30948 { echo "$as_me:$LINENO: result: $ac_res" >&5
30949echo "${ECHO_T}$ac_res" >&6; }
30950
30951fi
30952if test `eval echo '${'$as_ac_Header'}'` = yes; then
30953 cat >>confdefs.h <<_ACEOF
30954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30955_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030956
30957fi
30958
30959done
30960
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030961fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030962
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030963
Reid Spencer8085cff2005-01-16 02:58:39 +000030964
Reid Spencerb2ed05262006-11-03 18:04:08 +000030965 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30966echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30967if test "${ac_cv_huge_val_sanity+set}" = set; then
30968 echo $ECHO_N "(cached) $ECHO_C" >&6
30969else
30970
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030971 ac_ext=cpp
30972ac_cpp='$CXXCPP $CPPFLAGS'
30973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030976
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030977 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030978 if test "$cross_compiling" = yes; then
30979 ac_cv_huge_val_sanity=yes
30980else
30981 cat >conftest.$ac_ext <<_ACEOF
30982/* confdefs.h. */
30983_ACEOF
30984cat confdefs.h >>conftest.$ac_ext
30985cat >>conftest.$ac_ext <<_ACEOF
30986/* end confdefs.h. */
30987#include <math.h>
30988int
30989main ()
30990{
30991double x = HUGE_VAL; return x != x;
30992 ;
30993 return 0;
30994}
30995_ACEOF
30996rm -f conftest$ac_exeext
30997if { (ac_try="$ac_link"
30998case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31001esac
31002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_link") 2>&5
31004 ac_status=$?
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31007 { (case "(($ac_try" in
31008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31009 *) ac_try_echo=$ac_try;;
31010esac
31011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31012 (eval "$ac_try") 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 ac_cv_huge_val_sanity=yes
31017else
31018 echo "$as_me: program exited with status $ac_status" >&5
31019echo "$as_me: failed program was:" >&5
31020sed 's/^/| /' conftest.$ac_ext >&5
31021
31022( exit $ac_status )
31023ac_cv_huge_val_sanity=no
31024fi
31025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31026fi
31027
31028
31029 ac_ext=c
31030ac_cpp='$CPP $CPPFLAGS'
31031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31033ac_compiler_gnu=$ac_cv_c_compiler_gnu
31034
31035
31036fi
31037{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31038echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31039 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31040
31041
Reid Spencera773bd52006-08-04 18:18:08 +000031042{ echo "$as_me:$LINENO: checking for pid_t" >&5
31043echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031044if test "${ac_cv_type_pid_t+set}" = set; then
31045 echo $ECHO_N "(cached) $ECHO_C" >&6
31046else
31047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031048/* confdefs.h. */
31049_ACEOF
31050cat confdefs.h >>conftest.$ac_ext
31051cat >>conftest.$ac_ext <<_ACEOF
31052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031053$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031054typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031055int
31056main ()
31057{
Reid Spencera773bd52006-08-04 18:18:08 +000031058if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031059 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031060if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031061 return 0;
31062 ;
31063 return 0;
31064}
31065_ACEOF
31066rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031067if { (ac_try="$ac_compile"
31068case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071esac
31072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031075 grep -v '^ *+' conftest.er1 >conftest.err
31076 rm -f conftest.er1
31077 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031079 (exit $ac_status); } &&
31080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084esac
31085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; } &&
31090 { ac_try='test -s conftest.$ac_objext'
31091 { (case "(($ac_try" in
31092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093 *) ac_try_echo=$ac_try;;
31094esac
31095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096 (eval "$ac_try") 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031100 ac_cv_type_pid_t=yes
31101else
31102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031103sed 's/^/| /' conftest.$ac_ext >&5
31104
Reid Spencera773bd52006-08-04 18:18:08 +000031105 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031106fi
Reid Spencera773bd52006-08-04 18:18:08 +000031107
31108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031109fi
Reid Spencera773bd52006-08-04 18:18:08 +000031110{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31111echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031112if test $ac_cv_type_pid_t = yes; then
31113 :
31114else
31115
31116cat >>confdefs.h <<_ACEOF
31117#define pid_t int
31118_ACEOF
31119
31120fi
31121
Reid Spencera773bd52006-08-04 18:18:08 +000031122{ echo "$as_me:$LINENO: checking for size_t" >&5
31123echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031124if test "${ac_cv_type_size_t+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126else
31127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031133$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031134typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031135int
31136main ()
31137{
Reid Spencera773bd52006-08-04 18:18:08 +000031138if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031139 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031140if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031141 return 0;
31142 ;
31143 return 0;
31144}
31145_ACEOF
31146rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031147if { (ac_try="$ac_compile"
31148case "(($ac_try" in
31149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150 *) ac_try_echo=$ac_try;;
31151esac
31152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31153 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031154 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031155 grep -v '^ *+' conftest.er1 >conftest.err
31156 rm -f conftest.er1
31157 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031159 (exit $ac_status); } &&
31160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31161 { (case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31164esac
31165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_try") 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; } &&
31170 { ac_try='test -s conftest.$ac_objext'
31171 { (case "(($ac_try" in
31172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31173 *) ac_try_echo=$ac_try;;
31174esac
31175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31176 (eval "$ac_try") 2>&5
31177 ac_status=$?
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031180 ac_cv_type_size_t=yes
31181else
31182 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031183sed 's/^/| /' conftest.$ac_ext >&5
31184
Reid Spencera773bd52006-08-04 18:18:08 +000031185 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031186fi
Reid Spencera773bd52006-08-04 18:18:08 +000031187
31188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031189fi
Reid Spencera773bd52006-08-04 18:18:08 +000031190{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31191echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031192if test $ac_cv_type_size_t = yes; then
31193 :
31194else
31195
31196cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031197#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031198_ACEOF
31199
31200fi
31201
Reid Spencera773bd52006-08-04 18:18:08 +000031202{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31203echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204if test "${ac_cv_type_signal+set}" = set; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206else
31207 cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
31213#include <sys/types.h>
31214#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215
31216int
31217main ()
31218{
Reid Spencera773bd52006-08-04 18:18:08 +000031219return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 ;
31221 return 0;
31222}
31223_ACEOF
31224rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031225if { (ac_try="$ac_compile"
31226case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31229esac
31230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031232 ac_status=$?
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31239 { (case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242esac
31243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_try") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; } &&
31248 { ac_try='test -s conftest.$ac_objext'
31249 { (case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252esac
31253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_try") 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031258 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031259else
31260 echo "$as_me: failed program was:" >&5
31261sed 's/^/| /' conftest.$ac_ext >&5
31262
Reid Spencera773bd52006-08-04 18:18:08 +000031263 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031264fi
Reid Spencera773bd52006-08-04 18:18:08 +000031265
31266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031267fi
Reid Spencera773bd52006-08-04 18:18:08 +000031268{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31269echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031270
31271cat >>confdefs.h <<_ACEOF
31272#define RETSIGTYPE $ac_cv_type_signal
31273_ACEOF
31274
31275
Reid Spencera773bd52006-08-04 18:18:08 +000031276{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31277echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031278if test "${ac_cv_struct_tm+set}" = set; then
31279 echo $ECHO_N "(cached) $ECHO_C" >&6
31280else
31281 cat >conftest.$ac_ext <<_ACEOF
31282/* confdefs.h. */
31283_ACEOF
31284cat confdefs.h >>conftest.$ac_ext
31285cat >>conftest.$ac_ext <<_ACEOF
31286/* end confdefs.h. */
31287#include <sys/types.h>
31288#include <time.h>
31289
31290int
31291main ()
31292{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031293struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031294 ;
31295 return 0;
31296}
31297_ACEOF
31298rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031299if { (ac_try="$ac_compile"
31300case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306 ac_status=$?
31307 grep -v '^ *+' conftest.er1 >conftest.err
31308 rm -f conftest.er1
31309 cat conftest.err >&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031311 (exit $ac_status); } &&
31312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31313 { (case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31316esac
31317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_try") 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; } &&
31322 { ac_try='test -s conftest.$ac_objext'
31323 { (case "(($ac_try" in
31324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325 *) ac_try_echo=$ac_try;;
31326esac
31327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328 (eval "$ac_try") 2>&5
31329 ac_status=$?
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031332 ac_cv_struct_tm=time.h
31333else
31334 echo "$as_me: failed program was:" >&5
31335sed 's/^/| /' conftest.$ac_ext >&5
31336
Reid Spencera773bd52006-08-04 18:18:08 +000031337 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031338fi
Reid Spencera773bd52006-08-04 18:18:08 +000031339
31340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031341fi
Reid Spencera773bd52006-08-04 18:18:08 +000031342{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31343echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031344if test $ac_cv_struct_tm = sys/time.h; then
31345
31346cat >>confdefs.h <<\_ACEOF
31347#define TM_IN_SYS_TIME 1
31348_ACEOF
31349
31350fi
31351
Reid Spencera773bd52006-08-04 18:18:08 +000031352{ echo "$as_me:$LINENO: checking for int64_t" >&5
31353echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031354if test "${ac_cv_type_int64_t+set}" = set; then
31355 echo $ECHO_N "(cached) $ECHO_C" >&6
31356else
31357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031363$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031364typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031365int
31366main ()
31367{
Reid Spencera773bd52006-08-04 18:18:08 +000031368if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031369 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031370if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031371 return 0;
31372 ;
31373 return 0;
31374}
31375_ACEOF
31376rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031377if { (ac_try="$ac_compile"
31378case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31381esac
31382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031389 (exit $ac_status); } &&
31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394esac
31395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest.$ac_objext'
31401 { (case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31404esac
31405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_try") 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031410 ac_cv_type_int64_t=yes
31411else
31412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031413sed 's/^/| /' conftest.$ac_ext >&5
31414
Reid Spencera773bd52006-08-04 18:18:08 +000031415 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031416fi
Reid Spencera773bd52006-08-04 18:18:08 +000031417
31418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031419fi
Reid Spencera773bd52006-08-04 18:18:08 +000031420{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31421echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031422if test $ac_cv_type_int64_t = yes; then
31423
31424cat >>confdefs.h <<_ACEOF
31425#define HAVE_INT64_T 1
31426_ACEOF
31427
31428
31429else
31430 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31431echo "$as_me: error: Type int64_t required but not found" >&2;}
31432 { (exit 1); exit 1; }; }
31433fi
31434
Reid Spencera773bd52006-08-04 18:18:08 +000031435{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31436echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031437if test "${ac_cv_type_uint64_t+set}" = set; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31439else
31440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031441/* confdefs.h. */
31442_ACEOF
31443cat confdefs.h >>conftest.$ac_ext
31444cat >>conftest.$ac_ext <<_ACEOF
31445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031446$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031447typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031448int
31449main ()
31450{
Reid Spencera773bd52006-08-04 18:18:08 +000031451if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031452 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031453if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031454 return 0;
31455 ;
31456 return 0;
31457}
31458_ACEOF
31459rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031460if { (ac_try="$ac_compile"
31461case "(($ac_try" in
31462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463 *) ac_try_echo=$ac_try;;
31464esac
31465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31466 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031468 grep -v '^ *+' conftest.er1 >conftest.err
31469 rm -f conftest.er1
31470 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031472 (exit $ac_status); } &&
31473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31474 { (case "(($ac_try" in
31475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476 *) ac_try_echo=$ac_try;;
31477esac
31478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479 (eval "$ac_try") 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest.$ac_objext'
31484 { (case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487esac
31488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_try") 2>&5
31490 ac_status=$?
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031493 ac_cv_type_uint64_t=yes
31494else
31495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031496sed 's/^/| /' conftest.$ac_ext >&5
31497
Reid Spencera773bd52006-08-04 18:18:08 +000031498 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031499fi
Reid Spencera773bd52006-08-04 18:18:08 +000031500
31501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031502fi
Reid Spencera773bd52006-08-04 18:18:08 +000031503{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31504echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031505if test $ac_cv_type_uint64_t = yes; then
31506
31507cat >>confdefs.h <<_ACEOF
31508#define HAVE_UINT64_T 1
31509_ACEOF
31510
31511
31512else
Reid Spencera773bd52006-08-04 18:18:08 +000031513 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31514echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031515if test "${ac_cv_type_u_int64_t+set}" = set; then
31516 echo $ECHO_N "(cached) $ECHO_C" >&6
31517else
31518 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031519/* confdefs.h. */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h. */
31524$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031525typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031526int
31527main ()
31528{
Reid Spencera773bd52006-08-04 18:18:08 +000031529if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031530 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031531if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031532 return 0;
31533 ;
31534 return 0;
31535}
31536_ACEOF
31537rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031538if { (ac_try="$ac_compile"
31539case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31542esac
31543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031546 grep -v '^ *+' conftest.er1 >conftest.err
31547 rm -f conftest.er1
31548 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031550 (exit $ac_status); } &&
31551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31552 { (case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31555esac
31556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557 (eval "$ac_try") 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; } &&
31561 { ac_try='test -s conftest.$ac_objext'
31562 { (case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565esac
31566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_try") 2>&5
31568 ac_status=$?
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031571 ac_cv_type_u_int64_t=yes
31572else
31573 echo "$as_me: failed program was:" >&5
31574sed 's/^/| /' conftest.$ac_ext >&5
31575
Reid Spencera773bd52006-08-04 18:18:08 +000031576 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031577fi
Reid Spencera773bd52006-08-04 18:18:08 +000031578
31579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031580fi
Reid Spencera773bd52006-08-04 18:18:08 +000031581{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31582echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031583if test $ac_cv_type_u_int64_t = yes; then
31584
31585cat >>confdefs.h <<_ACEOF
31586#define HAVE_U_INT64_T 1
31587_ACEOF
31588
31589
Misha Brukmanceca9042004-09-02 23:02:30 +000031590else
31591 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31592echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31593 { (exit 1); exit 1; }; }
31594fi
31595
John Criswell679ff312004-09-02 18:44:44 +000031596fi
31597
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031598
31599
31600
31601
31602
31603
31604
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031605
31606
Reid Spencerdf3be822006-01-23 08:15:53 +000031607for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031608do
31609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614else
31615 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031616/* confdefs.h. */
31617_ACEOF
31618cat confdefs.h >>conftest.$ac_ext
31619cat >>conftest.$ac_ext <<_ACEOF
31620/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31623#define $ac_func innocuous_$ac_func
31624
31625/* System header to define __stub macros and hopefully few prototypes,
31626 which can conflict with char $ac_func (); below.
31627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31628 <limits.h> exists even on freestanding compilers. */
31629
31630#ifdef __STDC__
31631# include <limits.h>
31632#else
31633# include <assert.h>
31634#endif
31635
31636#undef $ac_func
31637
Reid Spencera773bd52006-08-04 18:18:08 +000031638/* Override any GCC internal prototype to avoid an error.
31639 Use char because int might match the return type of a GCC
31640 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641#ifdef __cplusplus
31642extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031643#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031644char $ac_func ();
31645/* The GNU C library defines this for functions which it implements
31646 to always fail with ENOSYS. Some functions are actually named
31647 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031648#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031650#endif
John Criswell7a73b802003-06-30 21:59:07 +000031651
John Criswell7a73b802003-06-30 21:59:07 +000031652int
31653main ()
31654{
Reid Spencera773bd52006-08-04 18:18:08 +000031655return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031656 ;
31657 return 0;
31658}
31659_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031660rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031661if { (ac_try="$ac_link"
31662case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031669 grep -v '^ *+' conftest.er1 >conftest.err
31670 rm -f conftest.er1
31671 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031673 (exit $ac_status); } &&
31674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31678esac
31679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest$ac_exeext'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31688esac
31689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031694 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031695else
31696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031697sed 's/^/| /' conftest.$ac_ext >&5
31698
Reid Spencera773bd52006-08-04 18:18:08 +000031699 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031700fi
Reid Spencera773bd52006-08-04 18:18:08 +000031701
Bill Wendlingebcceee2009-04-18 11:20:33 +000031702rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031704fi
Reid Spencera773bd52006-08-04 18:18:08 +000031705ac_res=`eval echo '${'$as_ac_var'}'`
31706 { echo "$as_me:$LINENO: result: $ac_res" >&5
31707echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708if test `eval echo '${'$as_ac_var'}'` = yes; then
31709 cat >>confdefs.h <<_ACEOF
31710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031711_ACEOF
31712
31713fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714done
John Criswell7a73b802003-06-30 21:59:07 +000031715
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031716
31717
31718
Reid Spencer6af3d262004-12-15 04:01:48 +000031719
Reid Spencer96cf5872007-07-13 10:05:30 +000031720for ac_func in powf fmodf strtof round
31721do
31722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31727else
31728 cat >conftest.$ac_ext <<_ACEOF
31729/* confdefs.h. */
31730_ACEOF
31731cat confdefs.h >>conftest.$ac_ext
31732cat >>conftest.$ac_ext <<_ACEOF
31733/* end confdefs.h. */
31734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31736#define $ac_func innocuous_$ac_func
31737
31738/* System header to define __stub macros and hopefully few prototypes,
31739 which can conflict with char $ac_func (); below.
31740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31741 <limits.h> exists even on freestanding compilers. */
31742
31743#ifdef __STDC__
31744# include <limits.h>
31745#else
31746# include <assert.h>
31747#endif
31748
31749#undef $ac_func
31750
31751/* Override any GCC internal prototype to avoid an error.
31752 Use char because int might match the return type of a GCC
31753 builtin and then its argument prototype would still apply. */
31754#ifdef __cplusplus
31755extern "C"
31756#endif
31757char $ac_func ();
31758/* The GNU C library defines this for functions which it implements
31759 to always fail with ENOSYS. Some functions are actually named
31760 something starting with __ and the normal name is an alias. */
31761#if defined __stub_$ac_func || defined __stub___$ac_func
31762choke me
31763#endif
31764
31765int
31766main ()
31767{
31768return $ac_func ();
31769 ;
31770 return 0;
31771}
31772_ACEOF
31773rm -f conftest.$ac_objext conftest$ac_exeext
31774if { (ac_try="$ac_link"
31775case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778esac
31779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_link") 2>conftest.er1
31781 ac_status=$?
31782 grep -v '^ *+' conftest.er1 >conftest.err
31783 rm -f conftest.er1
31784 cat conftest.err >&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031786 (exit $ac_status); } &&
31787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31788 { (case "(($ac_try" in
31789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31791esac
31792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_try") 2>&5
31794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest$ac_exeext'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031807 eval "$as_ac_var=yes"
31808else
31809 echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
31812 eval "$as_ac_var=no"
31813fi
31814
Bill Wendlingebcceee2009-04-18 11:20:33 +000031815rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031816 conftest$ac_exeext conftest.$ac_ext
31817fi
31818ac_res=`eval echo '${'$as_ac_var'}'`
31819 { echo "$as_me:$LINENO: result: $ac_res" >&5
31820echo "${ECHO_T}$ac_res" >&6; }
31821if test `eval echo '${'$as_ac_var'}'` = yes; then
31822 cat >>confdefs.h <<_ACEOF
31823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31824_ACEOF
31825
31826fi
31827done
31828
31829
31830
31831
31832
Reid Spencer6af3d262004-12-15 04:01:48 +000031833
Reid Spencerb90645c2007-02-16 19:17:20 +000031834for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31835do
31836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31840 echo $ECHO_N "(cached) $ECHO_C" >&6
31841else
31842 cat >conftest.$ac_ext <<_ACEOF
31843/* confdefs.h. */
31844_ACEOF
31845cat confdefs.h >>conftest.$ac_ext
31846cat >>conftest.$ac_ext <<_ACEOF
31847/* end confdefs.h. */
31848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31850#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031851
Reid Spencerb90645c2007-02-16 19:17:20 +000031852/* System header to define __stub macros and hopefully few prototypes,
31853 which can conflict with char $ac_func (); below.
31854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31855 <limits.h> exists even on freestanding compilers. */
31856
31857#ifdef __STDC__
31858# include <limits.h>
31859#else
31860# include <assert.h>
31861#endif
31862
31863#undef $ac_func
31864
31865/* Override any GCC internal prototype to avoid an error.
31866 Use char because int might match the return type of a GCC
31867 builtin and then its argument prototype would still apply. */
31868#ifdef __cplusplus
31869extern "C"
31870#endif
31871char $ac_func ();
31872/* The GNU C library defines this for functions which it implements
31873 to always fail with ENOSYS. Some functions are actually named
31874 something starting with __ and the normal name is an alias. */
31875#if defined __stub_$ac_func || defined __stub___$ac_func
31876choke me
31877#endif
31878
31879int
31880main ()
31881{
31882return $ac_func ();
31883 ;
31884 return 0;
31885}
31886_ACEOF
31887rm -f conftest.$ac_objext conftest$ac_exeext
31888if { (ac_try="$ac_link"
31889case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892esac
31893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_link") 2>conftest.er1
31895 ac_status=$?
31896 grep -v '^ *+' conftest.er1 >conftest.err
31897 rm -f conftest.er1
31898 cat conftest.err >&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031900 (exit $ac_status); } &&
31901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31905esac
31906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest$ac_exeext'
31912 { (case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31915esac
31916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_try") 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031921 eval "$as_ac_var=yes"
31922else
31923 echo "$as_me: failed program was:" >&5
31924sed 's/^/| /' conftest.$ac_ext >&5
31925
31926 eval "$as_ac_var=no"
31927fi
31928
Bill Wendlingebcceee2009-04-18 11:20:33 +000031929rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031930 conftest$ac_exeext conftest.$ac_ext
31931fi
31932ac_res=`eval echo '${'$as_ac_var'}'`
31933 { echo "$as_me:$LINENO: result: $ac_res" >&5
31934echo "${ECHO_T}$ac_res" >&6; }
31935if test `eval echo '${'$as_ac_var'}'` = yes; then
31936 cat >>confdefs.h <<_ACEOF
31937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31938_ACEOF
31939
31940fi
31941done
31942
31943
31944
31945
31946for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031947do
31948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031952 echo $ECHO_N "(cached) $ECHO_C" >&6
31953else
31954 cat >conftest.$ac_ext <<_ACEOF
31955/* confdefs.h. */
31956_ACEOF
31957cat confdefs.h >>conftest.$ac_ext
31958cat >>conftest.$ac_ext <<_ACEOF
31959/* end confdefs.h. */
31960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31962#define $ac_func innocuous_$ac_func
31963
31964/* System header to define __stub macros and hopefully few prototypes,
31965 which can conflict with char $ac_func (); below.
31966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31967 <limits.h> exists even on freestanding compilers. */
31968
31969#ifdef __STDC__
31970# include <limits.h>
31971#else
31972# include <assert.h>
31973#endif
31974
31975#undef $ac_func
31976
Reid Spencera773bd52006-08-04 18:18:08 +000031977/* Override any GCC internal prototype to avoid an error.
31978 Use char because int might match the return type of a GCC
31979 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031980#ifdef __cplusplus
31981extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031982#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031983char $ac_func ();
31984/* The GNU C library defines this for functions which it implements
31985 to always fail with ENOSYS. Some functions are actually named
31986 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031987#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031988choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031989#endif
31990
31991int
31992main ()
31993{
Reid Spencera773bd52006-08-04 18:18:08 +000031994return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031995 ;
31996 return 0;
31997}
31998_ACEOF
31999rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032000if { (ac_try="$ac_link"
32001case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004esac
32005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032007 ac_status=$?
32008 grep -v '^ *+' conftest.er1 >conftest.err
32009 rm -f conftest.er1
32010 cat conftest.err >&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032012 (exit $ac_status); } &&
32013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017esac
32018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest$ac_exeext'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032033 eval "$as_ac_var=yes"
32034else
32035 echo "$as_me: failed program was:" >&5
32036sed 's/^/| /' conftest.$ac_ext >&5
32037
Reid Spencera773bd52006-08-04 18:18:08 +000032038 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032039fi
Reid Spencera773bd52006-08-04 18:18:08 +000032040
Bill Wendlingebcceee2009-04-18 11:20:33 +000032041rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032042 conftest$ac_exeext conftest.$ac_ext
32043fi
Reid Spencera773bd52006-08-04 18:18:08 +000032044ac_res=`eval echo '${'$as_ac_var'}'`
32045 { echo "$as_me:$LINENO: result: $ac_res" >&5
32046echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032047if test `eval echo '${'$as_ac_var'}'` = yes; then
32048 cat >>confdefs.h <<_ACEOF
32049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32050_ACEOF
32051
32052fi
32053done
32054
32055
32056
32057
32058
32059
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032060for ac_func in mktemp realpath sbrk setrlimit strdup
32061do
32062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32063{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32067else
32068 cat >conftest.$ac_ext <<_ACEOF
32069/* confdefs.h. */
32070_ACEOF
32071cat confdefs.h >>conftest.$ac_ext
32072cat >>conftest.$ac_ext <<_ACEOF
32073/* end confdefs.h. */
32074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32076#define $ac_func innocuous_$ac_func
32077
32078/* System header to define __stub macros and hopefully few prototypes,
32079 which can conflict with char $ac_func (); below.
32080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32081 <limits.h> exists even on freestanding compilers. */
32082
32083#ifdef __STDC__
32084# include <limits.h>
32085#else
32086# include <assert.h>
32087#endif
32088
32089#undef $ac_func
32090
32091/* Override any GCC internal prototype to avoid an error.
32092 Use char because int might match the return type of a GCC
32093 builtin and then its argument prototype would still apply. */
32094#ifdef __cplusplus
32095extern "C"
32096#endif
32097char $ac_func ();
32098/* The GNU C library defines this for functions which it implements
32099 to always fail with ENOSYS. Some functions are actually named
32100 something starting with __ and the normal name is an alias. */
32101#if defined __stub_$ac_func || defined __stub___$ac_func
32102choke me
32103#endif
32104
32105int
32106main ()
32107{
32108return $ac_func ();
32109 ;
32110 return 0;
32111}
32112_ACEOF
32113rm -f conftest.$ac_objext conftest$ac_exeext
32114if { (ac_try="$ac_link"
32115case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32118esac
32119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_link") 2>conftest.er1
32121 ac_status=$?
32122 grep -v '^ *+' conftest.er1 >conftest.err
32123 rm -f conftest.er1
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } &&
32127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32128 { (case "(($ac_try" in
32129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130 *) ac_try_echo=$ac_try;;
32131esac
32132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133 (eval "$ac_try") 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; } &&
32137 { ac_try='test -s conftest$ac_exeext'
32138 { (case "(($ac_try" in
32139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140 *) ac_try_echo=$ac_try;;
32141esac
32142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143 (eval "$ac_try") 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; }; then
32147 eval "$as_ac_var=yes"
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152 eval "$as_ac_var=no"
32153fi
32154
32155rm -f core conftest.err conftest.$ac_objext \
32156 conftest$ac_exeext conftest.$ac_ext
32157fi
32158ac_res=`eval echo '${'$as_ac_var'}'`
32159 { echo "$as_me:$LINENO: result: $ac_res" >&5
32160echo "${ECHO_T}$ac_res" >&6; }
32161if test `eval echo '${'$as_ac_var'}'` = yes; then
32162 cat >>confdefs.h <<_ACEOF
32163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32164_ACEOF
32165
32166fi
32167done
Reid Spencerdf3be822006-01-23 08:15:53 +000032168
32169
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032170
32171
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032172
32173for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032174do
32175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032176{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32178if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032179 echo $ECHO_N "(cached) $ECHO_C" >&6
32180else
32181 cat >conftest.$ac_ext <<_ACEOF
32182/* confdefs.h. */
32183_ACEOF
32184cat confdefs.h >>conftest.$ac_ext
32185cat >>conftest.$ac_ext <<_ACEOF
32186/* end confdefs.h. */
32187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32189#define $ac_func innocuous_$ac_func
32190
32191/* System header to define __stub macros and hopefully few prototypes,
32192 which can conflict with char $ac_func (); below.
32193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32194 <limits.h> exists even on freestanding compilers. */
32195
32196#ifdef __STDC__
32197# include <limits.h>
32198#else
32199# include <assert.h>
32200#endif
32201
32202#undef $ac_func
32203
Reid Spencera773bd52006-08-04 18:18:08 +000032204/* Override any GCC internal prototype to avoid an error.
32205 Use char because int might match the return type of a GCC
32206 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032207#ifdef __cplusplus
32208extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032209#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032210char $ac_func ();
32211/* The GNU C library defines this for functions which it implements
32212 to always fail with ENOSYS. Some functions are actually named
32213 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032214#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032215choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032216#endif
32217
32218int
32219main ()
32220{
Reid Spencera773bd52006-08-04 18:18:08 +000032221return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032222 ;
32223 return 0;
32224}
32225_ACEOF
32226rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032227if { (ac_try="$ac_link"
32228case "(($ac_try" in
32229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32230 *) ac_try_echo=$ac_try;;
32231esac
32232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32233 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032234 ac_status=$?
32235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032239 (exit $ac_status); } &&
32240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32241 { (case "(($ac_try" in
32242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243 *) ac_try_echo=$ac_try;;
32244esac
32245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246 (eval "$ac_try") 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; } &&
32250 { ac_try='test -s conftest$ac_exeext'
32251 { (case "(($ac_try" in
32252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 *) ac_try_echo=$ac_try;;
32254esac
32255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 (eval "$ac_try") 2>&5
32257 ac_status=$?
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032260 eval "$as_ac_var=yes"
32261else
32262 echo "$as_me: failed program was:" >&5
32263sed 's/^/| /' conftest.$ac_ext >&5
32264
Reid Spencera773bd52006-08-04 18:18:08 +000032265 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032266fi
Reid Spencera773bd52006-08-04 18:18:08 +000032267
Bill Wendlingebcceee2009-04-18 11:20:33 +000032268rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032269 conftest$ac_exeext conftest.$ac_ext
32270fi
Reid Spencera773bd52006-08-04 18:18:08 +000032271ac_res=`eval echo '${'$as_ac_var'}'`
32272 { echo "$as_me:$LINENO: result: $ac_res" >&5
32273echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032274if test `eval echo '${'$as_ac_var'}'` = yes; then
32275 cat >>confdefs.h <<_ACEOF
32276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32277_ACEOF
32278
32279fi
32280done
32281
32282
Reid Spencerba46ca32004-12-31 05:49:15 +000032283
32284
Chris Lattner0b142592005-11-14 06:57:34 +000032285
Chris Lattner511f11d2005-11-14 07:25:50 +000032286for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032287do
32288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032289{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32291if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032292 echo $ECHO_N "(cached) $ECHO_C" >&6
32293else
32294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032295/* confdefs.h. */
32296_ACEOF
32297cat confdefs.h >>conftest.$ac_ext
32298cat >>conftest.$ac_ext <<_ACEOF
32299/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32302#define $ac_func innocuous_$ac_func
32303
32304/* System header to define __stub macros and hopefully few prototypes,
32305 which can conflict with char $ac_func (); below.
32306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32307 <limits.h> exists even on freestanding compilers. */
32308
32309#ifdef __STDC__
32310# include <limits.h>
32311#else
32312# include <assert.h>
32313#endif
32314
32315#undef $ac_func
32316
Reid Spencera773bd52006-08-04 18:18:08 +000032317/* Override any GCC internal prototype to avoid an error.
32318 Use char because int might match the return type of a GCC
32319 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032320#ifdef __cplusplus
32321extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032322#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032323char $ac_func ();
32324/* The GNU C library defines this for functions which it implements
32325 to always fail with ENOSYS. Some functions are actually named
32326 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032327#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032328choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032329#endif
John Criswell7a73b802003-06-30 21:59:07 +000032330
John Criswell7a73b802003-06-30 21:59:07 +000032331int
32332main ()
32333{
Reid Spencera773bd52006-08-04 18:18:08 +000032334return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032335 ;
32336 return 0;
32337}
32338_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032339rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032340if { (ac_try="$ac_link"
32341case "(($ac_try" in
32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343 *) ac_try_echo=$ac_try;;
32344esac
32345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032348 grep -v '^ *+' conftest.er1 >conftest.err
32349 rm -f conftest.er1
32350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032352 (exit $ac_status); } &&
32353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32354 { (case "(($ac_try" in
32355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356 *) ac_try_echo=$ac_try;;
32357esac
32358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359 (eval "$ac_try") 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; } &&
32363 { ac_try='test -s conftest$ac_exeext'
32364 { (case "(($ac_try" in
32365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366 *) ac_try_echo=$ac_try;;
32367esac
32368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369 (eval "$ac_try") 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032373 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032374else
32375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032376sed 's/^/| /' conftest.$ac_ext >&5
32377
Reid Spencera773bd52006-08-04 18:18:08 +000032378 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032379fi
Reid Spencera773bd52006-08-04 18:18:08 +000032380
Bill Wendlingebcceee2009-04-18 11:20:33 +000032381rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032382 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384ac_res=`eval echo '${'$as_ac_var'}'`
32385 { echo "$as_me:$LINENO: result: $ac_res" >&5
32386echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032387if test `eval echo '${'$as_ac_var'}'` = yes; then
32388 cat >>confdefs.h <<_ACEOF
32389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032390_ACEOF
32391
32392fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032393done
John Criswell7a73b802003-06-30 21:59:07 +000032394
Reid Spencercdb08a32006-06-05 16:11:07 +000032395
32396
32397
32398
Reid Spencerafa22e22006-12-10 23:29:19 +000032399for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032400do
32401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032402{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032405 echo $ECHO_N "(cached) $ECHO_C" >&6
32406else
32407 cat >conftest.$ac_ext <<_ACEOF
32408/* confdefs.h. */
32409_ACEOF
32410cat confdefs.h >>conftest.$ac_ext
32411cat >>conftest.$ac_ext <<_ACEOF
32412/* end confdefs.h. */
32413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32415#define $ac_func innocuous_$ac_func
32416
32417/* System header to define __stub macros and hopefully few prototypes,
32418 which can conflict with char $ac_func (); below.
32419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420 <limits.h> exists even on freestanding compilers. */
32421
32422#ifdef __STDC__
32423# include <limits.h>
32424#else
32425# include <assert.h>
32426#endif
32427
32428#undef $ac_func
32429
Reid Spencera773bd52006-08-04 18:18:08 +000032430/* Override any GCC internal prototype to avoid an error.
32431 Use char because int might match the return type of a GCC
32432 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032433#ifdef __cplusplus
32434extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032435#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032436char $ac_func ();
32437/* The GNU C library defines this for functions which it implements
32438 to always fail with ENOSYS. Some functions are actually named
32439 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032440#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032441choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032442#endif
32443
32444int
32445main ()
32446{
Reid Spencera773bd52006-08-04 18:18:08 +000032447return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032448 ;
32449 return 0;
32450}
32451_ACEOF
32452rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032453if { (ac_try="$ac_link"
32454case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32467 { (case "(($ac_try" in
32468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469 *) ac_try_echo=$ac_try;;
32470esac
32471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472 (eval "$ac_try") 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest$ac_exeext'
32477 { (case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32480esac
32481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_try") 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032486 eval "$as_ac_var=yes"
32487else
32488 echo "$as_me: failed program was:" >&5
32489sed 's/^/| /' conftest.$ac_ext >&5
32490
Reid Spencera773bd52006-08-04 18:18:08 +000032491 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032492fi
Reid Spencera773bd52006-08-04 18:18:08 +000032493
Bill Wendlingebcceee2009-04-18 11:20:33 +000032494rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032495 conftest$ac_exeext conftest.$ac_ext
32496fi
Reid Spencera773bd52006-08-04 18:18:08 +000032497ac_res=`eval echo '${'$as_ac_var'}'`
32498 { echo "$as_me:$LINENO: result: $ac_res" >&5
32499echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032500if test `eval echo '${'$as_ac_var'}'` = yes; then
32501 cat >>confdefs.h <<_ACEOF
32502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32503_ACEOF
32504
32505fi
32506done
32507
Reid Spencera773bd52006-08-04 18:18:08 +000032508{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32509echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032510if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032511 echo $ECHO_N "(cached) $ECHO_C" >&6
32512else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032513 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032514ac_cpp='$CPP $CPPFLAGS'
32515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32517ac_compiler_gnu=$ac_cv_c_compiler_gnu
32518
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032519 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032520 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032521else
32522 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032523
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032524 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032525_ACEOF
32526cat confdefs.h >>conftest.$ac_ext
32527cat >>conftest.$ac_ext <<_ACEOF
32528/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032529
John Criswella0137d32003-10-13 16:22:01 +000032530#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032531#include <stdlib.h>
32532
John Criswella0137d32003-10-13 16:22:01 +000032533int
32534main ()
32535{
32536
Reid Spencer2706f8c2004-09-19 23:53:36 +000032537volatile double A, B;
32538char Buffer[100];
32539A = 1;
32540A /= 10.0;
32541sprintf(Buffer, "%a", A);
32542B = atof(Buffer);
32543if (A != B)
32544 return (1);
32545if (A != 0x1.999999999999ap-4)
32546 return (1);
32547return (0);
John Criswella0137d32003-10-13 16:22:01 +000032548 ;
32549 return 0;
32550}
32551_ACEOF
32552rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032553if { (ac_try="$ac_link"
32554case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32557esac
32558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032560 ac_status=$?
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032563 { (case "(($ac_try" in
32564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565 *) ac_try_echo=$ac_try;;
32566esac
32567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032569 ac_status=$?
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032572 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032573else
32574 echo "$as_me: program exited with status $ac_status" >&5
32575echo "$as_me: failed program was:" >&5
32576sed 's/^/| /' conftest.$ac_ext >&5
32577
32578( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032579llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032580fi
Reid Spencera773bd52006-08-04 18:18:08 +000032581rm -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 +000032582fi
Reid Spencera773bd52006-08-04 18:18:08 +000032583
32584
Reid Spencer2706f8c2004-09-19 23:53:36 +000032585 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032586ac_cpp='$CPP $CPPFLAGS'
32587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32589ac_compiler_gnu=$ac_cv_c_compiler_gnu
32590
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032591fi
Reid Spencera773bd52006-08-04 18:18:08 +000032592{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32593echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032594 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032595
32596cat >>confdefs.h <<\_ACEOF
32597#define HAVE_PRINTF_A 1
32598_ACEOF
32599
Reid Spencer2706f8c2004-09-19 23:53:36 +000032600 fi
John Criswella0137d32003-10-13 16:22:01 +000032601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032602# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32603# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032604{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32605echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032606if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032607 echo $ECHO_N "(cached) $ECHO_C" >&6
32608else
John Criswell0021c312004-02-13 21:57:29 +000032609 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032610/* confdefs.h. */
32611_ACEOF
32612cat confdefs.h >>conftest.$ac_ext
32613cat >>conftest.$ac_ext <<_ACEOF
32614/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032615#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032616int
32617main ()
32618{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032619char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032620 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032621 ;
32622 return 0;
32623}
32624_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032625rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032626if { (ac_try="$ac_link"
32627case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32630esac
32631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032634 grep -v '^ *+' conftest.er1 >conftest.err
32635 rm -f conftest.er1
32636 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032638 (exit $ac_status); } &&
32639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32640 { (case "(($ac_try" in
32641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642 *) ac_try_echo=$ac_try;;
32643esac
32644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645 (eval "$ac_try") 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest$ac_exeext'
32650 { (case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32653esac
32654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_try") 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032659 ac_cv_working_alloca_h=yes
32660else
32661 echo "$as_me: failed program was:" >&5
32662sed 's/^/| /' conftest.$ac_ext >&5
32663
Reid Spencera773bd52006-08-04 18:18:08 +000032664 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032665fi
Reid Spencera773bd52006-08-04 18:18:08 +000032666
Bill Wendlingebcceee2009-04-18 11:20:33 +000032667rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032668 conftest$ac_exeext conftest.$ac_ext
32669fi
Reid Spencera773bd52006-08-04 18:18:08 +000032670{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32671echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032672if test $ac_cv_working_alloca_h = yes; then
32673
32674cat >>confdefs.h <<\_ACEOF
32675#define HAVE_ALLOCA_H 1
32676_ACEOF
32677
32678fi
32679
Reid Spencera773bd52006-08-04 18:18:08 +000032680{ echo "$as_me:$LINENO: checking for alloca" >&5
32681echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032682if test "${ac_cv_func_alloca_works+set}" = set; then
32683 echo $ECHO_N "(cached) $ECHO_C" >&6
32684else
32685 cat >conftest.$ac_ext <<_ACEOF
32686/* confdefs.h. */
32687_ACEOF
32688cat confdefs.h >>conftest.$ac_ext
32689cat >>conftest.$ac_ext <<_ACEOF
32690/* end confdefs.h. */
32691#ifdef __GNUC__
32692# define alloca __builtin_alloca
32693#else
32694# ifdef _MSC_VER
32695# include <malloc.h>
32696# define alloca _alloca
32697# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032698# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032699# include <alloca.h>
32700# else
32701# ifdef _AIX
32702 #pragma alloca
32703# else
32704# ifndef alloca /* predefined by HP cc +Olibcalls */
32705char *alloca ();
32706# endif
32707# endif
32708# endif
32709# endif
32710#endif
32711
32712int
32713main ()
32714{
32715char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032716 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032717 ;
32718 return 0;
32719}
32720_ACEOF
32721rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032722if { (ac_try="$ac_link"
32723case "(($ac_try" in
32724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32725 *) ac_try_echo=$ac_try;;
32726esac
32727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32728 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032729 ac_status=$?
32730 grep -v '^ *+' conftest.er1 >conftest.err
32731 rm -f conftest.er1
32732 cat conftest.err >&5
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032734 (exit $ac_status); } &&
32735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32736 { (case "(($ac_try" in
32737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32738 *) ac_try_echo=$ac_try;;
32739esac
32740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32741 (eval "$ac_try") 2>&5
32742 ac_status=$?
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); }; } &&
32745 { ac_try='test -s conftest$ac_exeext'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32749esac
32750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032755 ac_cv_func_alloca_works=yes
32756else
32757 echo "$as_me: failed program was:" >&5
32758sed 's/^/| /' conftest.$ac_ext >&5
32759
Reid Spencera773bd52006-08-04 18:18:08 +000032760 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032761fi
Reid Spencera773bd52006-08-04 18:18:08 +000032762
Bill Wendlingebcceee2009-04-18 11:20:33 +000032763rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032764 conftest$ac_exeext conftest.$ac_ext
32765fi
Reid Spencera773bd52006-08-04 18:18:08 +000032766{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32767echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032768
32769if test $ac_cv_func_alloca_works = yes; then
32770
32771cat >>confdefs.h <<\_ACEOF
32772#define HAVE_ALLOCA 1
32773_ACEOF
32774
32775else
32776 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32777# that cause trouble. Some versions do not even contain alloca or
32778# contain a buggy version. If you still want to use their alloca,
32779# use ar to extract alloca.o from them instead of compiling alloca.c.
32780
Reid Spencera773bd52006-08-04 18:18:08 +000032781ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032782
32783cat >>confdefs.h <<\_ACEOF
32784#define C_ALLOCA 1
32785_ACEOF
32786
32787
Reid Spencera773bd52006-08-04 18:18:08 +000032788{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32789echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032790if test "${ac_cv_os_cray+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32792else
32793 cat >conftest.$ac_ext <<_ACEOF
32794/* confdefs.h. */
32795_ACEOF
32796cat confdefs.h >>conftest.$ac_ext
32797cat >>conftest.$ac_ext <<_ACEOF
32798/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032799#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032800webecray
32801#else
32802wenotbecray
32803#endif
32804
32805_ACEOF
32806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32807 $EGREP "webecray" >/dev/null 2>&1; then
32808 ac_cv_os_cray=yes
32809else
32810 ac_cv_os_cray=no
32811fi
32812rm -f conftest*
32813
32814fi
Reid Spencera773bd52006-08-04 18:18:08 +000032815{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32816echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032817if test $ac_cv_os_cray = yes; then
32818 for ac_func in _getb67 GETB67 getb67; do
32819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032820{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032823 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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32833#define $ac_func innocuous_$ac_func
32834
32835/* System header to define __stub macros and hopefully few prototypes,
32836 which can conflict with char $ac_func (); below.
32837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32838 <limits.h> exists even on freestanding compilers. */
32839
32840#ifdef __STDC__
32841# include <limits.h>
32842#else
32843# include <assert.h>
32844#endif
32845
32846#undef $ac_func
32847
Reid Spencera773bd52006-08-04 18:18:08 +000032848/* Override any GCC internal prototype to avoid an error.
32849 Use char because int might match the return type of a GCC
32850 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032851#ifdef __cplusplus
32852extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032853#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032854char $ac_func ();
32855/* The GNU C library defines this for functions which it implements
32856 to always fail with ENOSYS. Some functions are actually named
32857 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032858#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032859choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032860#endif
32861
32862int
32863main ()
32864{
Reid Spencera773bd52006-08-04 18:18:08 +000032865return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032866 ;
32867 return 0;
32868}
32869_ACEOF
32870rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032871if { (ac_try="$ac_link"
32872case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875esac
32876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32888esac
32889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest$ac_exeext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898esac
32899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904 eval "$as_ac_var=yes"
32905else
32906 echo "$as_me: failed program was:" >&5
32907sed 's/^/| /' conftest.$ac_ext >&5
32908
Reid Spencera773bd52006-08-04 18:18:08 +000032909 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032910fi
Reid Spencera773bd52006-08-04 18:18:08 +000032911
Bill Wendlingebcceee2009-04-18 11:20:33 +000032912rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032913 conftest$ac_exeext conftest.$ac_ext
32914fi
Reid Spencera773bd52006-08-04 18:18:08 +000032915ac_res=`eval echo '${'$as_ac_var'}'`
32916 { echo "$as_me:$LINENO: result: $ac_res" >&5
32917echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032918if test `eval echo '${'$as_ac_var'}'` = yes; then
32919
32920cat >>confdefs.h <<_ACEOF
32921#define CRAY_STACKSEG_END $ac_func
32922_ACEOF
32923
32924 break
32925fi
32926
32927 done
32928fi
32929
Reid Spencera773bd52006-08-04 18:18:08 +000032930{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32931echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032932if test "${ac_cv_c_stack_direction+set}" = set; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934else
32935 if test "$cross_compiling" = yes; then
32936 ac_cv_c_stack_direction=0
32937else
32938 cat >conftest.$ac_ext <<_ACEOF
32939/* confdefs.h. */
32940_ACEOF
32941cat confdefs.h >>conftest.$ac_ext
32942cat >>conftest.$ac_ext <<_ACEOF
32943/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032944$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032945int
32946find_stack_direction ()
32947{
32948 static char *addr = 0;
32949 auto char dummy;
32950 if (addr == 0)
32951 {
32952 addr = &dummy;
32953 return find_stack_direction ();
32954 }
John Criswell0021c312004-02-13 21:57:29 +000032955 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032956 return (&dummy > addr) ? 1 : -1;
32957}
John Criswell0021c312004-02-13 21:57:29 +000032958
John Criswell0021c312004-02-13 21:57:29 +000032959int
32960main ()
32961{
Reid Spencera773bd52006-08-04 18:18:08 +000032962 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032963}
32964_ACEOF
32965rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032966if { (ac_try="$ac_link"
32967case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32970esac
32971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032976 { (case "(($ac_try" in
32977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978 *) ac_try_echo=$ac_try;;
32979esac
32980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032982 ac_status=$?
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032985 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032986else
32987 echo "$as_me: program exited with status $ac_status" >&5
32988echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032992ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032993fi
Reid Spencera773bd52006-08-04 18:18:08 +000032994rm -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 +000032995fi
Reid Spencera773bd52006-08-04 18:18:08 +000032996
32997
John Criswell0021c312004-02-13 21:57:29 +000032998fi
Reid Spencera773bd52006-08-04 18:18:08 +000032999{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33000echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033001
33002cat >>confdefs.h <<_ACEOF
33003#define STACK_DIRECTION $ac_cv_c_stack_direction
33004_ACEOF
33005
33006
John Criswell0021c312004-02-13 21:57:29 +000033007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033008
33009
Reid Spencera773bd52006-08-04 18:18:08 +000033010{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33011echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033012if test "${ac_cv_func_rand48+set}" = set; then
33013 echo $ECHO_N "(cached) $ECHO_C" >&6
33014else
Reid Spencera773bd52006-08-04 18:18:08 +000033015 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033016ac_cpp='$CXXCPP $CPPFLAGS'
33017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33020
33021 cat >conftest.$ac_ext <<_ACEOF
33022/* confdefs.h. */
33023_ACEOF
33024cat confdefs.h >>conftest.$ac_ext
33025cat >>conftest.$ac_ext <<_ACEOF
33026/* end confdefs.h. */
33027#include <stdlib.h>
33028int
33029main ()
33030{
33031srand48(0);lrand48();drand48();
33032 ;
33033 return 0;
33034}
33035_ACEOF
33036rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033037if { (ac_try="$ac_compile"
33038case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33041esac
33042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033044 ac_status=$?
33045 grep -v '^ *+' conftest.er1 >conftest.err
33046 rm -f conftest.er1
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033049 (exit $ac_status); } &&
33050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33051 { (case "(($ac_try" in
33052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053 *) ac_try_echo=$ac_try;;
33054esac
33055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33056 (eval "$ac_try") 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; } &&
33060 { ac_try='test -s conftest.$ac_objext'
33061 { (case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064esac
33065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_try") 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033070 ac_cv_func_rand48=yes
33071else
33072 echo "$as_me: failed program was:" >&5
33073sed 's/^/| /' conftest.$ac_ext >&5
33074
Reid Spencera773bd52006-08-04 18:18:08 +000033075 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033076fi
Reid Spencera773bd52006-08-04 18:18:08 +000033077
33078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033079 ac_ext=c
33080ac_cpp='$CPP $CPPFLAGS'
33081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33083ac_compiler_gnu=$ac_cv_c_compiler_gnu
33084
33085fi
Reid Spencera773bd52006-08-04 18:18:08 +000033086{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33087echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033088
33089if test "$ac_cv_func_rand48" = "yes" ; then
33090
33091cat >>confdefs.h <<\_ACEOF
33092#define HAVE_RAND48 1
33093_ACEOF
33094
33095fi
John Criswell0021c312004-02-13 21:57:29 +000033096
33097
Reid Spencera773bd52006-08-04 18:18:08 +000033098{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33099echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033100if test "${ac_cv_cxx_namespaces+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
33102else
Reid Spencera773bd52006-08-04 18:18:08 +000033103 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033104ac_cpp='$CXXCPP $CPPFLAGS'
33105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33108
33109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033110/* confdefs.h. */
33111_ACEOF
33112cat confdefs.h >>conftest.$ac_ext
33113cat >>conftest.$ac_ext <<_ACEOF
33114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033115namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033116int
33117main ()
33118{
33119using namespace Outer::Inner; return i;
33120 ;
33121 return 0;
33122}
33123_ACEOF
33124rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033125if { (ac_try="$ac_compile"
33126case "(($ac_try" in
33127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128 *) ac_try_echo=$ac_try;;
33129esac
33130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033132 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033133 grep -v '^ *+' conftest.er1 >conftest.err
33134 rm -f conftest.er1
33135 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033137 (exit $ac_status); } &&
33138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33139 { (case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33142esac
33143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_try") 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; } &&
33148 { ac_try='test -s conftest.$ac_objext'
33149 { (case "(($ac_try" in
33150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151 *) ac_try_echo=$ac_try;;
33152esac
33153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154 (eval "$ac_try") 2>&5
33155 ac_status=$?
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033158 ac_cv_cxx_namespaces=yes
33159else
33160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033161sed 's/^/| /' conftest.$ac_ext >&5
33162
Reid Spencera773bd52006-08-04 18:18:08 +000033163 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033164fi
Reid Spencera773bd52006-08-04 18:18:08 +000033165
33166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033167 ac_ext=c
33168ac_cpp='$CPP $CPPFLAGS'
33169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33171ac_compiler_gnu=$ac_cv_c_compiler_gnu
33172
33173
33174fi
Reid Spencera773bd52006-08-04 18:18:08 +000033175{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33176echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033177if test "$ac_cv_cxx_namespaces" = yes; then
33178
33179cat >>confdefs.h <<\_ACEOF
33180#define HAVE_NAMESPACES
33181_ACEOF
33182
33183fi
33184
Reid Spencera773bd52006-08-04 18:18:08 +000033185{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33186echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033187if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33188 echo $ECHO_N "(cached) $ECHO_C" >&6
33189else
33190
Reid Spencera773bd52006-08-04 18:18:08 +000033191 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033192ac_cpp='$CXXCPP $CPPFLAGS'
33193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33196
33197 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033198/* confdefs.h. */
33199_ACEOF
33200cat confdefs.h >>conftest.$ac_ext
33201cat >>conftest.$ac_ext <<_ACEOF
33202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033203#include <iterator>
33204#ifdef HAVE_NAMESPACES
33205using namespace std;
33206#endif
John Criswell7a73b802003-06-30 21:59:07 +000033207int
33208main ()
33209{
33210iterator<int,int,int> t; return 0;
33211 ;
33212 return 0;
33213}
33214_ACEOF
33215rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033216if { (ac_try="$ac_compile"
33217case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33220esac
33221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033223 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033228 (exit $ac_status); } &&
33229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233esac
33234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest.$ac_objext'
33240 { (case "(($ac_try" in
33241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242 *) ac_try_echo=$ac_try;;
33243esac
33244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245 (eval "$ac_try") 2>&5
33246 ac_status=$?
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033249 ac_cv_cxx_have_std_iterator=yes
33250else
33251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033252sed 's/^/| /' conftest.$ac_ext >&5
33253
Reid Spencera773bd52006-08-04 18:18:08 +000033254 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033255fi
Reid Spencera773bd52006-08-04 18:18:08 +000033256
33257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033258 ac_ext=c
33259ac_cpp='$CPP $CPPFLAGS'
33260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262ac_compiler_gnu=$ac_cv_c_compiler_gnu
33263
33264
33265fi
Reid Spencera773bd52006-08-04 18:18:08 +000033266{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33267echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033268if test "$ac_cv_cxx_have_std_iterator" = yes
33269then
John Criswell40468462004-09-24 21:19:06 +000033270
33271cat >>confdefs.h <<\_ACEOF
33272#define HAVE_STD_ITERATOR 1
33273_ACEOF
33274
33275else
33276
33277cat >>confdefs.h <<\_ACEOF
33278#define HAVE_STD_ITERATOR 0
33279_ACEOF
33280
John Criswell7a73b802003-06-30 21:59:07 +000033281fi
33282
Reid Spencera773bd52006-08-04 18:18:08 +000033283{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33284echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033285if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33286 echo $ECHO_N "(cached) $ECHO_C" >&6
33287else
33288
Reid Spencera773bd52006-08-04 18:18:08 +000033289 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033290ac_cpp='$CXXCPP $CPPFLAGS'
33291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33294
33295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033296/* confdefs.h. */
33297_ACEOF
33298cat confdefs.h >>conftest.$ac_ext
33299cat >>conftest.$ac_ext <<_ACEOF
33300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033301#include <iterator>
33302#ifdef HAVE_NAMESPACES
33303using namespace std;
33304#endif
John Criswell7a73b802003-06-30 21:59:07 +000033305int
33306main ()
33307{
John Criswellc78022e2003-07-29 19:11:58 +000033308bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033309 ;
33310 return 0;
33311}
33312_ACEOF
33313rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033314if { (ac_try="$ac_compile"
33315case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33318esac
33319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033322 grep -v '^ *+' conftest.er1 >conftest.err
33323 rm -f conftest.er1
33324 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033326 (exit $ac_status); } &&
33327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328 { (case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33331esac
33332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_try") 2>&5
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } &&
33337 { ac_try='test -s conftest.$ac_objext'
33338 { (case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33341esac
33342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_try") 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033347 ac_cv_cxx_have_bi_iterator=yes
33348else
33349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033350sed 's/^/| /' conftest.$ac_ext >&5
33351
Reid Spencera773bd52006-08-04 18:18:08 +000033352 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033353fi
Reid Spencera773bd52006-08-04 18:18:08 +000033354
33355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033356 ac_ext=c
33357ac_cpp='$CPP $CPPFLAGS'
33358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360ac_compiler_gnu=$ac_cv_c_compiler_gnu
33361
33362
33363fi
Reid Spencera773bd52006-08-04 18:18:08 +000033364{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33365echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033366if test "$ac_cv_cxx_have_bi_iterator" = yes
33367then
John Criswell40468462004-09-24 21:19:06 +000033368
33369cat >>confdefs.h <<\_ACEOF
33370#define HAVE_BI_ITERATOR 1
33371_ACEOF
33372
33373else
33374
33375cat >>confdefs.h <<\_ACEOF
33376#define HAVE_BI_ITERATOR 0
33377_ACEOF
33378
John Criswell7a73b802003-06-30 21:59:07 +000033379fi
33380
Reid Spencera773bd52006-08-04 18:18:08 +000033381{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33382echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033383if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33385else
33386
Reid Spencera773bd52006-08-04 18:18:08 +000033387 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033388ac_cpp='$CXXCPP $CPPFLAGS'
33389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33392
33393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033394/* confdefs.h. */
33395_ACEOF
33396cat confdefs.h >>conftest.$ac_ext
33397cat >>conftest.$ac_ext <<_ACEOF
33398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033399#include <iterator>
33400#ifdef HAVE_NAMESPACES
33401using namespace std;
33402#endif
John Criswell7a73b802003-06-30 21:59:07 +000033403int
33404main ()
33405{
John Criswellc78022e2003-07-29 19:11:58 +000033406forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033407 ;
33408 return 0;
33409}
33410_ACEOF
33411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033412if { (ac_try="$ac_compile"
33413case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33416esac
33417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033420 grep -v '^ *+' conftest.er1 >conftest.err
33421 rm -f conftest.er1
33422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033424 (exit $ac_status); } &&
33425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33426 { (case "(($ac_try" in
33427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428 *) ac_try_echo=$ac_try;;
33429esac
33430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431 (eval "$ac_try") 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; } &&
33435 { ac_try='test -s conftest.$ac_objext'
33436 { (case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439esac
33440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_try") 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033445 ac_cv_cxx_have_fwd_iterator=yes
33446else
33447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033448sed 's/^/| /' conftest.$ac_ext >&5
33449
Reid Spencera773bd52006-08-04 18:18:08 +000033450 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033451fi
Reid Spencera773bd52006-08-04 18:18:08 +000033452
33453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033454 ac_ext=c
33455ac_cpp='$CPP $CPPFLAGS'
33456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33458ac_compiler_gnu=$ac_cv_c_compiler_gnu
33459
33460
33461fi
Reid Spencera773bd52006-08-04 18:18:08 +000033462{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33463echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033464if test "$ac_cv_cxx_have_fwd_iterator" = yes
33465then
John Criswell40468462004-09-24 21:19:06 +000033466
33467cat >>confdefs.h <<\_ACEOF
33468#define HAVE_FWD_ITERATOR 1
33469_ACEOF
33470
33471else
33472
33473cat >>confdefs.h <<\_ACEOF
33474#define HAVE_FWD_ITERATOR 0
33475_ACEOF
33476
John Criswell7a73b802003-06-30 21:59:07 +000033477fi
33478
33479
Reid Spencera773bd52006-08-04 18:18:08 +000033480{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33481echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033482if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33483 echo $ECHO_N "(cached) $ECHO_C" >&6
33484else
Reid Spencera773bd52006-08-04 18:18:08 +000033485 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033486ac_cpp='$CXXCPP $CPPFLAGS'
33487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33490
Reid Spencerabec8f92004-10-27 23:03:44 +000033491 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033492/* confdefs.h. */
33493_ACEOF
33494cat confdefs.h >>conftest.$ac_ext
33495cat >>conftest.$ac_ext <<_ACEOF
33496/* end confdefs.h. */
33497#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033498int
33499main ()
33500{
33501float f; isnan(f);
33502 ;
33503 return 0;
33504}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033505_ACEOF
33506rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033507if { (ac_try="$ac_compile"
33508case "(($ac_try" in
33509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33510 *) ac_try_echo=$ac_try;;
33511esac
33512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33513 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033515 grep -v '^ *+' conftest.er1 >conftest.err
33516 rm -f conftest.er1
33517 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033519 (exit $ac_status); } &&
33520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33521 { (case "(($ac_try" in
33522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33523 *) ac_try_echo=$ac_try;;
33524esac
33525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33526 (eval "$ac_try") 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest.$ac_objext'
33531 { (case "(($ac_try" in
33532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533 *) ac_try_echo=$ac_try;;
33534esac
33535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536 (eval "$ac_try") 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033540 ac_cv_func_isnan_in_math_h=yes
33541else
33542 echo "$as_me: failed program was:" >&5
33543sed 's/^/| /' conftest.$ac_ext >&5
33544
Reid Spencera773bd52006-08-04 18:18:08 +000033545 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033546fi
Reid Spencera773bd52006-08-04 18:18:08 +000033547
33548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033549 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033550ac_cpp='$CPP $CPPFLAGS'
33551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33553ac_compiler_gnu=$ac_cv_c_compiler_gnu
33554
33555fi
Reid Spencera773bd52006-08-04 18:18:08 +000033556{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33557echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033558
33559
33560if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033561
33562cat >>confdefs.h <<\_ACEOF
33563#define HAVE_ISNAN_IN_MATH_H 1
33564_ACEOF
33565
Reid Spencerabec8f92004-10-27 23:03:44 +000033566fi
33567
Reid Spencera773bd52006-08-04 18:18:08 +000033568{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33569echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033570if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33571 echo $ECHO_N "(cached) $ECHO_C" >&6
33572else
Reid Spencera773bd52006-08-04 18:18:08 +000033573 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033574ac_cpp='$CXXCPP $CPPFLAGS'
33575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33578
Reid Spencerabec8f92004-10-27 23:03:44 +000033579 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033580/* confdefs.h. */
33581_ACEOF
33582cat confdefs.h >>conftest.$ac_ext
33583cat >>conftest.$ac_ext <<_ACEOF
33584/* end confdefs.h. */
33585#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033586int
33587main ()
33588{
33589float f; isnan(f);
33590 ;
33591 return 0;
33592}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033593_ACEOF
33594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033595if { (ac_try="$ac_compile"
33596case "(($ac_try" in
33597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33598 *) ac_try_echo=$ac_try;;
33599esac
33600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33601 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033603 grep -v '^ *+' conftest.er1 >conftest.err
33604 rm -f conftest.er1
33605 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33609 { (case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33612esac
33613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_try") 2>&5
33615 ac_status=$?
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; } &&
33618 { ac_try='test -s conftest.$ac_objext'
33619 { (case "(($ac_try" in
33620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621 *) ac_try_echo=$ac_try;;
33622esac
33623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624 (eval "$ac_try") 2>&5
33625 ac_status=$?
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033628 ac_cv_func_isnan_in_cmath=yes
33629else
33630 echo "$as_me: failed program was:" >&5
33631sed 's/^/| /' conftest.$ac_ext >&5
33632
Reid Spencera773bd52006-08-04 18:18:08 +000033633 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033634fi
Reid Spencera773bd52006-08-04 18:18:08 +000033635
33636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033637 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033638ac_cpp='$CPP $CPPFLAGS'
33639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33641ac_compiler_gnu=$ac_cv_c_compiler_gnu
33642
33643fi
Reid Spencera773bd52006-08-04 18:18:08 +000033644{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33645echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033646
33647if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033648
33649cat >>confdefs.h <<\_ACEOF
33650#define HAVE_ISNAN_IN_CMATH 1
33651_ACEOF
33652
Reid Spencerabec8f92004-10-27 23:03:44 +000033653fi
33654
Reid Spencera773bd52006-08-04 18:18:08 +000033655{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33656echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033657if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659else
Reid Spencera773bd52006-08-04 18:18:08 +000033660 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033661ac_cpp='$CXXCPP $CPPFLAGS'
33662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33665
Reid Spencerabec8f92004-10-27 23:03:44 +000033666 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033667/* confdefs.h. */
33668_ACEOF
33669cat confdefs.h >>conftest.$ac_ext
33670cat >>conftest.$ac_ext <<_ACEOF
33671/* end confdefs.h. */
33672#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033673int
33674main ()
33675{
33676float f; std::isnan(f);
33677 ;
33678 return 0;
33679}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680_ACEOF
33681rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033682if { (ac_try="$ac_compile"
33683case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33686esac
33687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033690 grep -v '^ *+' conftest.er1 >conftest.err
33691 rm -f conftest.er1
33692 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033694 (exit $ac_status); } &&
33695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33696 { (case "(($ac_try" in
33697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698 *) ac_try_echo=$ac_try;;
33699esac
33700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701 (eval "$ac_try") 2>&5
33702 ac_status=$?
33703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33704 (exit $ac_status); }; } &&
33705 { ac_try='test -s conftest.$ac_objext'
33706 { (case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33709esac
33710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_try") 2>&5
33712 ac_status=$?
33713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033715 ac_cv_func_std_isnan_in_cmath=yes
33716else
33717 echo "$as_me: failed program was:" >&5
33718sed 's/^/| /' conftest.$ac_ext >&5
33719
Reid Spencera773bd52006-08-04 18:18:08 +000033720 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033721fi
Reid Spencera773bd52006-08-04 18:18:08 +000033722
33723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033724 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033725ac_cpp='$CPP $CPPFLAGS'
33726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33728ac_compiler_gnu=$ac_cv_c_compiler_gnu
33729
33730fi
Reid Spencera773bd52006-08-04 18:18:08 +000033731{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33732echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033733
33734if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033735
33736cat >>confdefs.h <<\_ACEOF
33737#define HAVE_STD_ISNAN_IN_CMATH 1
33738_ACEOF
33739
Reid Spencerabec8f92004-10-27 23:03:44 +000033740fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033741
33742
Reid Spencera773bd52006-08-04 18:18:08 +000033743{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33744echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033745if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33746 echo $ECHO_N "(cached) $ECHO_C" >&6
33747else
Reid Spencera773bd52006-08-04 18:18:08 +000033748 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033749ac_cpp='$CXXCPP $CPPFLAGS'
33750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33753
Reid Spencerabec8f92004-10-27 23:03:44 +000033754 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033755/* confdefs.h. */
33756_ACEOF
33757cat confdefs.h >>conftest.$ac_ext
33758cat >>conftest.$ac_ext <<_ACEOF
33759/* end confdefs.h. */
33760#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033761int
33762main ()
33763{
33764float f; isinf(f);
33765 ;
33766 return 0;
33767}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033768_ACEOF
33769rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033770if { (ac_try="$ac_compile"
33771case "(($ac_try" in
33772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33773 *) ac_try_echo=$ac_try;;
33774esac
33775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33776 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033777 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033782 (exit $ac_status); } &&
33783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33784 { (case "(($ac_try" in
33785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786 *) ac_try_echo=$ac_try;;
33787esac
33788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33789 (eval "$ac_try") 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest.$ac_objext'
33794 { (case "(($ac_try" in
33795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796 *) ac_try_echo=$ac_try;;
33797esac
33798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799 (eval "$ac_try") 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033803 ac_cv_func_isinf_in_math_h=yes
33804else
33805 echo "$as_me: failed program was:" >&5
33806sed 's/^/| /' conftest.$ac_ext >&5
33807
Reid Spencera773bd52006-08-04 18:18:08 +000033808 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033809fi
Reid Spencera773bd52006-08-04 18:18:08 +000033810
33811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033812 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033813ac_cpp='$CPP $CPPFLAGS'
33814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33816ac_compiler_gnu=$ac_cv_c_compiler_gnu
33817
33818fi
Reid Spencera773bd52006-08-04 18:18:08 +000033819{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33820echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033821
33822if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033823
33824cat >>confdefs.h <<\_ACEOF
33825#define HAVE_ISINF_IN_MATH_H 1
33826_ACEOF
33827
Reid Spencerabec8f92004-10-27 23:03:44 +000033828fi
33829
Reid Spencera773bd52006-08-04 18:18:08 +000033830{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33831echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033832if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33833 echo $ECHO_N "(cached) $ECHO_C" >&6
33834else
Reid Spencera773bd52006-08-04 18:18:08 +000033835 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033836ac_cpp='$CXXCPP $CPPFLAGS'
33837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33840
Reid Spencerabec8f92004-10-27 23:03:44 +000033841 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033842/* confdefs.h. */
33843_ACEOF
33844cat confdefs.h >>conftest.$ac_ext
33845cat >>conftest.$ac_ext <<_ACEOF
33846/* end confdefs.h. */
33847#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033848int
33849main ()
33850{
33851float f; isinf(f);
33852 ;
33853 return 0;
33854}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033855_ACEOF
33856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033857if { (ac_try="$ac_compile"
33858case "(($ac_try" in
33859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860 *) ac_try_echo=$ac_try;;
33861esac
33862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033865 grep -v '^ *+' conftest.er1 >conftest.err
33866 rm -f conftest.er1
33867 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033869 (exit $ac_status); } &&
33870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33871 { (case "(($ac_try" in
33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33873 *) ac_try_echo=$ac_try;;
33874esac
33875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33876 (eval "$ac_try") 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest.$ac_objext'
33881 { (case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884esac
33885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_try") 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033890 ac_cv_func_isinf_in_cmath=yes
33891else
33892 echo "$as_me: failed program was:" >&5
33893sed 's/^/| /' conftest.$ac_ext >&5
33894
Reid Spencera773bd52006-08-04 18:18:08 +000033895 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033896fi
Reid Spencera773bd52006-08-04 18:18:08 +000033897
33898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033899 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033900ac_cpp='$CPP $CPPFLAGS'
33901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33903ac_compiler_gnu=$ac_cv_c_compiler_gnu
33904
33905fi
Reid Spencera773bd52006-08-04 18:18:08 +000033906{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33907echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033908
33909if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033910
33911cat >>confdefs.h <<\_ACEOF
33912#define HAVE_ISINF_IN_CMATH 1
33913_ACEOF
33914
Reid Spencerabec8f92004-10-27 23:03:44 +000033915fi
33916
Reid Spencera773bd52006-08-04 18:18:08 +000033917{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33918echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033919if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33920 echo $ECHO_N "(cached) $ECHO_C" >&6
33921else
Reid Spencera773bd52006-08-04 18:18:08 +000033922 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033923ac_cpp='$CXXCPP $CPPFLAGS'
33924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33927
Reid Spencerabec8f92004-10-27 23:03:44 +000033928 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033929/* confdefs.h. */
33930_ACEOF
33931cat confdefs.h >>conftest.$ac_ext
33932cat >>conftest.$ac_ext <<_ACEOF
33933/* end confdefs.h. */
33934#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033935int
33936main ()
33937{
33938float f; std::isinf(f)}
33939 ;
33940 return 0;
33941}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033942_ACEOF
33943rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033944if { (ac_try="$ac_compile"
33945case "(($ac_try" in
33946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947 *) ac_try_echo=$ac_try;;
33948esac
33949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033951 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033952 grep -v '^ *+' conftest.er1 >conftest.err
33953 rm -f conftest.er1
33954 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033956 (exit $ac_status); } &&
33957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33958 { (case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33961esac
33962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_try") 2>&5
33964 ac_status=$?
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; } &&
33967 { ac_try='test -s conftest.$ac_objext'
33968 { (case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971esac
33972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_try") 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033977 ac_cv_func_std_isinf_in_cmath=yes
33978else
33979 echo "$as_me: failed program was:" >&5
33980sed 's/^/| /' conftest.$ac_ext >&5
33981
Reid Spencera773bd52006-08-04 18:18:08 +000033982 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033983fi
Reid Spencera773bd52006-08-04 18:18:08 +000033984
33985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033986 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033987ac_cpp='$CPP $CPPFLAGS'
33988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33990ac_compiler_gnu=$ac_cv_c_compiler_gnu
33991
33992fi
Reid Spencera773bd52006-08-04 18:18:08 +000033993{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33994echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033995
33996if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033997
33998cat >>confdefs.h <<\_ACEOF
33999#define HAVE_STD_ISINF_IN_CMATH 1
34000_ACEOF
34001
Reid Spencerabec8f92004-10-27 23:03:44 +000034002fi
34003
Reid Spencera773bd52006-08-04 18:18:08 +000034004{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34005echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034006if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34007 echo $ECHO_N "(cached) $ECHO_C" >&6
34008else
Reid Spencera773bd52006-08-04 18:18:08 +000034009 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034010ac_cpp='$CXXCPP $CPPFLAGS'
34011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34014
Reid Spencerabec8f92004-10-27 23:03:44 +000034015 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034016/* confdefs.h. */
34017_ACEOF
34018cat confdefs.h >>conftest.$ac_ext
34019cat >>conftest.$ac_ext <<_ACEOF
34020/* end confdefs.h. */
34021#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034022int
34023main ()
34024{
34025float f; finite(f);
34026 ;
34027 return 0;
34028}
Brian Gaeked59a6472004-07-21 03:33:58 +000034029_ACEOF
34030rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034031if { (ac_try="$ac_compile"
34032case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34035esac
34036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034039 grep -v '^ *+' conftest.er1 >conftest.err
34040 rm -f conftest.er1
34041 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034043 (exit $ac_status); } &&
34044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34045 { (case "(($ac_try" in
34046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047 *) ac_try_echo=$ac_try;;
34048esac
34049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_try") 2>&5
34051 ac_status=$?
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; } &&
34054 { ac_try='test -s conftest.$ac_objext'
34055 { (case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34058esac
34059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_try") 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034064 ac_cv_func_finite_in_ieeefp_h=yes
34065else
34066 echo "$as_me: failed program was:" >&5
34067sed 's/^/| /' conftest.$ac_ext >&5
34068
Reid Spencera773bd52006-08-04 18:18:08 +000034069 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034070fi
Reid Spencera773bd52006-08-04 18:18:08 +000034071
34072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034073 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034074ac_cpp='$CPP $CPPFLAGS'
34075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34077ac_compiler_gnu=$ac_cv_c_compiler_gnu
34078
34079fi
Reid Spencera773bd52006-08-04 18:18:08 +000034080{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34081echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034082
Brian Gaeke6802b552004-10-28 05:06:45 +000034083if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034084
34085cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034086#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034087_ACEOF
34088
Reid Spencerabec8f92004-10-27 23:03:44 +000034089fi
34090
34091
34092
Reid Spencer30fe5262007-01-20 07:48:49 +000034093if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034094
34095
34096for ac_header in stdlib.h unistd.h
34097do
34098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034103 echo $ECHO_N "(cached) $ECHO_C" >&6
34104fi
Reid Spencera773bd52006-08-04 18:18:08 +000034105ac_res=`eval echo '${'$as_ac_Header'}'`
34106 { echo "$as_me:$LINENO: result: $ac_res" >&5
34107echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034108else
34109 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034112cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034113/* confdefs.h. */
34114_ACEOF
34115cat confdefs.h >>conftest.$ac_ext
34116cat >>conftest.$ac_ext <<_ACEOF
34117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034118$ac_includes_default
34119#include <$ac_header>
34120_ACEOF
34121rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034122if { (ac_try="$ac_compile"
34123case "(($ac_try" in
34124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34125 *) ac_try_echo=$ac_try;;
34126esac
34127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34128 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034130 grep -v '^ *+' conftest.er1 >conftest.err
34131 rm -f conftest.er1
34132 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034134 (exit $ac_status); } &&
34135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34136 { (case "(($ac_try" in
34137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34138 *) ac_try_echo=$ac_try;;
34139esac
34140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34141 (eval "$ac_try") 2>&5
34142 ac_status=$?
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; } &&
34145 { ac_try='test -s conftest.$ac_objext'
34146 { (case "(($ac_try" in
34147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148 *) ac_try_echo=$ac_try;;
34149esac
34150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151 (eval "$ac_try") 2>&5
34152 ac_status=$?
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034155 ac_header_compiler=yes
34156else
34157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034158sed 's/^/| /' conftest.$ac_ext >&5
34159
Reid Spencera773bd52006-08-04 18:18:08 +000034160 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034161fi
Reid Spencera773bd52006-08-04 18:18:08 +000034162
34163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34165echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034166
34167# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034170cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034171/* confdefs.h. */
34172_ACEOF
34173cat confdefs.h >>conftest.$ac_ext
34174cat >>conftest.$ac_ext <<_ACEOF
34175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034176#include <$ac_header>
34177_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034178if { (ac_try="$ac_cpp conftest.$ac_ext"
34179case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34182esac
34183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034185 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034186 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034187 rm -f conftest.er1
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034190 (exit $ac_status); } >/dev/null; then
34191 if test -s conftest.err; then
34192 ac_cpp_err=$ac_c_preproc_warn_flag
34193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34194 else
34195 ac_cpp_err=
34196 fi
34197else
34198 ac_cpp_err=yes
34199fi
34200if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034201 ac_header_preproc=yes
34202else
34203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034204sed 's/^/| /' conftest.$ac_ext >&5
34205
John Criswell7a73b802003-06-30 21:59:07 +000034206 ac_header_preproc=no
34207fi
Reid Spencera773bd52006-08-04 18:18:08 +000034208
John Criswell7a73b802003-06-30 21:59:07 +000034209rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34211echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034212
34213# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34215 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34220 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034221 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034222 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034235 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034236## ----------------------------------- ##
34237## Report this to llvmbugs@cs.uiuc.edu ##
34238## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034239_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034240 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034241 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034242esac
Reid Spencera773bd52006-08-04 18:18:08 +000034243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034246 echo $ECHO_N "(cached) $ECHO_C" >&6
34247else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034248 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034249fi
Reid Spencera773bd52006-08-04 18:18:08 +000034250ac_res=`eval echo '${'$as_ac_Header'}'`
34251 { echo "$as_me:$LINENO: result: $ac_res" >&5
34252echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034253
34254fi
34255if test `eval echo '${'$as_ac_Header'}'` = yes; then
34256 cat >>confdefs.h <<_ACEOF
34257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34258_ACEOF
34259
34260fi
34261
34262done
34263
34264
34265for ac_func in getpagesize
34266do
34267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034268{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034271 echo $ECHO_N "(cached) $ECHO_C" >&6
34272else
34273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034274/* confdefs.h. */
34275_ACEOF
34276cat confdefs.h >>conftest.$ac_ext
34277cat >>conftest.$ac_ext <<_ACEOF
34278/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34281#define $ac_func innocuous_$ac_func
34282
John Criswell7a73b802003-06-30 21:59:07 +000034283/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034284 which can conflict with char $ac_func (); below.
34285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34286 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034287
John Criswell0c38eaf2003-09-10 15:17:25 +000034288#ifdef __STDC__
34289# include <limits.h>
34290#else
34291# include <assert.h>
34292#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034293
34294#undef $ac_func
34295
Reid Spencera773bd52006-08-04 18:18:08 +000034296/* Override any GCC internal prototype to avoid an error.
34297 Use char because int might match the return type of a GCC
34298 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034299#ifdef __cplusplus
34300extern "C"
34301#endif
John Criswell7a73b802003-06-30 21:59:07 +000034302char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034303/* The GNU C library defines this for functions which it implements
34304 to always fail with ENOSYS. Some functions are actually named
34305 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034306#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034307choke me
John Criswell7a73b802003-06-30 21:59:07 +000034308#endif
34309
John Criswell0c38eaf2003-09-10 15:17:25 +000034310int
34311main ()
34312{
Reid Spencera773bd52006-08-04 18:18:08 +000034313return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034314 ;
34315 return 0;
34316}
34317_ACEOF
34318rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034319if { (ac_try="$ac_link"
34320case "(($ac_try" in
34321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34322 *) ac_try_echo=$ac_try;;
34323esac
34324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34325 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034327 grep -v '^ *+' conftest.er1 >conftest.err
34328 rm -f conftest.er1
34329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034331 (exit $ac_status); } &&
34332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34333 { (case "(($ac_try" in
34334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34335 *) ac_try_echo=$ac_try;;
34336esac
34337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34338 (eval "$ac_try") 2>&5
34339 ac_status=$?
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; } &&
34342 { ac_try='test -s conftest$ac_exeext'
34343 { (case "(($ac_try" in
34344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345 *) ac_try_echo=$ac_try;;
34346esac
34347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348 (eval "$ac_try") 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034352 eval "$as_ac_var=yes"
34353else
34354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034355sed 's/^/| /' conftest.$ac_ext >&5
34356
Reid Spencera773bd52006-08-04 18:18:08 +000034357 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034358fi
Reid Spencera773bd52006-08-04 18:18:08 +000034359
Bill Wendlingebcceee2009-04-18 11:20:33 +000034360rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034361 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034362fi
Reid Spencera773bd52006-08-04 18:18:08 +000034363ac_res=`eval echo '${'$as_ac_var'}'`
34364 { echo "$as_me:$LINENO: result: $ac_res" >&5
34365echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034366if test `eval echo '${'$as_ac_var'}'` = yes; then
34367 cat >>confdefs.h <<_ACEOF
34368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34369_ACEOF
34370
34371fi
34372done
34373
Reid Spencera773bd52006-08-04 18:18:08 +000034374{ echo "$as_me:$LINENO: checking for working mmap" >&5
34375echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034376if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34377 echo $ECHO_N "(cached) $ECHO_C" >&6
34378else
34379 if test "$cross_compiling" = yes; then
34380 ac_cv_func_mmap_fixed_mapped=no
34381else
34382 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034383/* confdefs.h. */
34384_ACEOF
34385cat confdefs.h >>conftest.$ac_ext
34386cat >>conftest.$ac_ext <<_ACEOF
34387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034388$ac_includes_default
34389/* malloc might have been renamed as rpl_malloc. */
34390#undef malloc
34391
34392/* Thanks to Mike Haertel and Jim Avera for this test.
34393 Here is a matrix of mmap possibilities:
34394 mmap private not fixed
34395 mmap private fixed at somewhere currently unmapped
34396 mmap private fixed at somewhere already mapped
34397 mmap shared not fixed
34398 mmap shared fixed at somewhere currently unmapped
34399 mmap shared fixed at somewhere already mapped
34400 For private mappings, we should verify that changes cannot be read()
34401 back from the file, nor mmap's back from the file at a different
34402 address. (There have been systems where private was not correctly
34403 implemented like the infamous i386 svr4.0, and systems where the
34404 VM page cache was not coherent with the file system buffer cache
34405 like early versions of FreeBSD and possibly contemporary NetBSD.)
34406 For shared mappings, we should conversely verify that changes get
34407 propagated back to all the places they're supposed to be.
34408
34409 Grep wants private fixed already mapped.
34410 The main things grep needs to know about mmap are:
34411 * does it exist and is it safe to write into the mmap'd area
34412 * how to use it (BSD variants) */
34413
34414#include <fcntl.h>
34415#include <sys/mman.h>
34416
Bill Wendlingebcceee2009-04-18 11:20:33 +000034417#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034418char *malloc ();
34419#endif
34420
34421/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034422#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034423/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034424# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034425# define HAVE_SYS_PARAM_H 1
34426# endif
34427
34428# ifdef _SC_PAGESIZE
34429# define getpagesize() sysconf(_SC_PAGESIZE)
34430# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034431# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034432# include <sys/param.h>
34433# ifdef EXEC_PAGESIZE
34434# define getpagesize() EXEC_PAGESIZE
34435# else /* no EXEC_PAGESIZE */
34436# ifdef NBPG
34437# define getpagesize() NBPG * CLSIZE
34438# ifndef CLSIZE
34439# define CLSIZE 1
34440# endif /* no CLSIZE */
34441# else /* no NBPG */
34442# ifdef NBPC
34443# define getpagesize() NBPC
34444# else /* no NBPC */
34445# ifdef PAGESIZE
34446# define getpagesize() PAGESIZE
34447# endif /* PAGESIZE */
34448# endif /* no NBPC */
34449# endif /* no NBPG */
34450# endif /* no EXEC_PAGESIZE */
34451# else /* no HAVE_SYS_PARAM_H */
34452# define getpagesize() 8192 /* punt totally */
34453# endif /* no HAVE_SYS_PARAM_H */
34454# endif /* no _SC_PAGESIZE */
34455
34456#endif /* no HAVE_GETPAGESIZE */
34457
34458int
34459main ()
34460{
34461 char *data, *data2, *data3;
34462 int i, pagesize;
34463 int fd;
34464
34465 pagesize = getpagesize ();
34466
34467 /* First, make a file with some known garbage in it. */
34468 data = (char *) malloc (pagesize);
34469 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034470 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034471 for (i = 0; i < pagesize; ++i)
34472 *(data + i) = rand ();
34473 umask (0);
34474 fd = creat ("conftest.mmap", 0600);
34475 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034476 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034477 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034478 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034479 close (fd);
34480
34481 /* Next, try to mmap the file at a fixed address which already has
34482 something else allocated at it. If we can, also make sure that
34483 we see the same garbage. */
34484 fd = open ("conftest.mmap", O_RDWR);
34485 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034486 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034487 data2 = (char *) malloc (2 * pagesize);
34488 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034489 return 1;
34490 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034491 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034493 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034494 for (i = 0; i < pagesize; ++i)
34495 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034496 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034497
34498 /* Finally, make sure that changes to the mapped area do not
34499 percolate back to the file as seen by read(). (This is a bug on
34500 some variants of i386 svr4.0.) */
34501 for (i = 0; i < pagesize; ++i)
34502 *(data2 + i) = *(data2 + i) + 1;
34503 data3 = (char *) malloc (pagesize);
34504 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034505 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034506 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034507 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034508 for (i = 0; i < pagesize; ++i)
34509 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034510 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034511 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034512 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034513}
34514_ACEOF
34515rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034516if { (ac_try="$ac_link"
34517case "(($ac_try" in
34518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519 *) ac_try_echo=$ac_try;;
34520esac
34521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034526 { (case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34529esac
34530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034532 ac_status=$?
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34535 ac_cv_func_mmap_fixed_mapped=yes
34536else
34537 echo "$as_me: program exited with status $ac_status" >&5
34538echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034539sed 's/^/| /' conftest.$ac_ext >&5
34540
John Criswell7a73b802003-06-30 21:59:07 +000034541( exit $ac_status )
34542ac_cv_func_mmap_fixed_mapped=no
34543fi
Reid Spencera773bd52006-08-04 18:18:08 +000034544rm -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 +000034545fi
Reid Spencera773bd52006-08-04 18:18:08 +000034546
34547
John Criswell7a73b802003-06-30 21:59:07 +000034548fi
Reid Spencera773bd52006-08-04 18:18:08 +000034549{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34550echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034551if test $ac_cv_func_mmap_fixed_mapped = yes; then
34552
34553cat >>confdefs.h <<\_ACEOF
34554#define HAVE_MMAP 1
34555_ACEOF
34556
34557fi
34558rm -f conftest.mmap
34559
Reid Spencer30fe5262007-01-20 07:48:49 +000034560 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034561echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034562if test "${ac_cv_func_mmap_file+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34564else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034565 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034566ac_cpp='$CPP $CPPFLAGS'
34567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34569ac_compiler_gnu=$ac_cv_c_compiler_gnu
34570
34571 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034572 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034573else
34574 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034575
Reid Spencer777ce172004-09-20 04:09:56 +000034576 /* confdefs.h. */
34577_ACEOF
34578cat confdefs.h >>conftest.$ac_ext
34579cat >>conftest.$ac_ext <<_ACEOF
34580/* end confdefs.h. */
34581
John Criswell7a73b802003-06-30 21:59:07 +000034582#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034583#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034584#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034585
34586int
34587main ()
34588{
John Criswell7a73b802003-06-30 21:59:07 +000034589
34590 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034591 fd = creat ("foo",0777);
34592 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34593 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034594 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034595 ;
34596 return 0;
34597}
John Criswell7a73b802003-06-30 21:59:07 +000034598_ACEOF
34599rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034600if { (ac_try="$ac_link"
34601case "(($ac_try" in
34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603 *) ac_try_echo=$ac_try;;
34604esac
34605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034610 { (case "(($ac_try" in
34611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612 *) ac_try_echo=$ac_try;;
34613esac
34614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34615 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034616 ac_status=$?
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); }; }; then
34619 ac_cv_func_mmap_file=yes
34620else
34621 echo "$as_me: program exited with status $ac_status" >&5
34622echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034623sed 's/^/| /' conftest.$ac_ext >&5
34624
John Criswell7a73b802003-06-30 21:59:07 +000034625( exit $ac_status )
34626ac_cv_func_mmap_file=no
34627fi
Reid Spencera773bd52006-08-04 18:18:08 +000034628rm -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 +000034629fi
Reid Spencera773bd52006-08-04 18:18:08 +000034630
34631
John Criswell7a73b802003-06-30 21:59:07 +000034632 ac_ext=c
34633ac_cpp='$CPP $CPPFLAGS'
34634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34636ac_compiler_gnu=$ac_cv_c_compiler_gnu
34637
34638
34639fi
Reid Spencera773bd52006-08-04 18:18:08 +000034640{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34641echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034642if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034643
34644cat >>confdefs.h <<\_ACEOF
34645#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034646_ACEOF
34647
34648 MMAP_FILE=yes
34649
34650fi
34651
Reid Spencer30fe5262007-01-20 07:48:49 +000034652 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034653echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034654if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656else
Reid Spencer582a23c2004-12-29 07:07:57 +000034657 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034658 ac_cv_need_dev_zero_for_mmap=yes
34659 else
34660 ac_cv_need_dev_zero_for_mmap=no
34661 fi
34662
34663fi
Reid Spencera773bd52006-08-04 18:18:08 +000034664{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34665echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034666if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34667
34668cat >>confdefs.h <<\_ACEOF
34669#define NEED_DEV_ZERO_FOR_MMAP 1
34670_ACEOF
34671
34672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034673
Reid Spencer30fe5262007-01-20 07:48:49 +000034674 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34675 then
34676 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034677echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034678 fi
34679 if test "$ac_cv_func_mmap_file" = "no"
34680 then
34681 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034682echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034683 fi
John Criswellb13092b2003-07-22 21:00:24 +000034684fi
John Criswell7a73b802003-06-30 21:59:07 +000034685
Owen Andersona8603702009-05-19 22:18:56 +000034686{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034687echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034688cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034689/* confdefs.h. */
34690_ACEOF
34691cat confdefs.h >>conftest.$ac_ext
34692cat >>conftest.$ac_ext <<_ACEOF
34693/* end confdefs.h. */
34694int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034695 volatile unsigned long val = 1;
34696 __sync_synchronize();
34697 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034698 __sync_add_and_fetch(&val, 1);
34699 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034700 return 0;
34701 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034702
34703_ACEOF
34704rm -f conftest.$ac_objext conftest$ac_exeext
34705if { (ac_try="$ac_link"
34706case "(($ac_try" in
34707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34708 *) ac_try_echo=$ac_try;;
34709esac
34710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34711 (eval "$ac_link") 2>conftest.er1
34712 ac_status=$?
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } &&
34718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34719 { (case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34722esac
34723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_try") 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; } &&
34728 { ac_try='test -s conftest$ac_exeext'
34729 { (case "(($ac_try" in
34730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34731 *) ac_try_echo=$ac_try;;
34732esac
34733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34734 (eval "$ac_try") 2>&5
34735 ac_status=$?
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; }; then
34738 { echo "$as_me:$LINENO: result: yes" >&5
34739echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034740
34741cat >>confdefs.h <<\_ACEOF
34742#define LLVM_MULTITHREADED 1
34743_ACEOF
34744
Owen Andersond4b272b2009-05-18 23:58:51 +000034745else
34746 echo "$as_me: failed program was:" >&5
34747sed 's/^/| /' conftest.$ac_ext >&5
34748
34749 { echo "$as_me:$LINENO: result: no" >&5
34750echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034751
Owen Andersona8603702009-05-19 22:18:56 +000034752cat >>confdefs.h <<\_ACEOF
34753#define LLVM_MULTITHREADED 0
34754_ACEOF
34755
34756 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34757echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034758fi
34759
34760rm -f core conftest.err conftest.$ac_objext \
34761 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034762
34763
John Criswell7a73b802003-06-30 21:59:07 +000034764
Nick Lewycky4372e692009-09-29 06:18:23 +000034765if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34766 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34767echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34768if test "${llvm_cv_linux_mixed+set}" = set; then
34769 echo $ECHO_N "(cached) $ECHO_C" >&6
34770else
34771 ac_ext=c
34772ac_cpp='$CPP $CPPFLAGS'
34773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34775ac_compiler_gnu=$ac_cv_c_compiler_gnu
34776
34777 cat >conftest.$ac_ext <<_ACEOF
34778/* confdefs.h. */
34779_ACEOF
34780cat confdefs.h >>conftest.$ac_ext
34781cat >>conftest.$ac_ext <<_ACEOF
34782/* end confdefs.h. */
34783#ifndef __x86_64__
34784 error: Not x86-64 even if uname says so!
34785 #endif
34786
34787int
34788main ()
34789{
34790
34791 ;
34792 return 0;
34793}
34794_ACEOF
34795rm -f conftest.$ac_objext
34796if { (ac_try="$ac_compile"
34797case "(($ac_try" in
34798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799 *) ac_try_echo=$ac_try;;
34800esac
34801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34802 (eval "$ac_compile") 2>conftest.er1
34803 ac_status=$?
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
34809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34810 { (case "(($ac_try" in
34811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812 *) ac_try_echo=$ac_try;;
34813esac
34814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815 (eval "$ac_try") 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; } &&
34819 { ac_try='test -s conftest.$ac_objext'
34820 { (case "(($ac_try" in
34821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822 *) ac_try_echo=$ac_try;;
34823esac
34824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34825 (eval "$ac_try") 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
34829 llvm_cv_linux_mixed=no
34830else
34831 echo "$as_me: failed program was:" >&5
34832sed 's/^/| /' conftest.$ac_ext >&5
34833
34834 llvm_cv_linux_mixed=yes
34835fi
34836
34837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34838 ac_ext=c
34839ac_cpp='$CPP $CPPFLAGS'
34840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34842ac_compiler_gnu=$ac_cv_c_compiler_gnu
34843
34844
34845fi
34846{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34847echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34848
34849 if test "$llvm_cv_linux_mixed" = "yes"; then
34850 llvm_cv_target_arch="x86"
34851 ARCH="x86"
34852 fi
34853fi
34854
Reid Spencer9372f152007-07-30 20:13:24 +000034855
34856for ac_func in __dso_handle
34857do
34858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34859{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34861if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34862 echo $ECHO_N "(cached) $ECHO_C" >&6
34863else
34864 cat >conftest.$ac_ext <<_ACEOF
34865/* confdefs.h. */
34866_ACEOF
34867cat confdefs.h >>conftest.$ac_ext
34868cat >>conftest.$ac_ext <<_ACEOF
34869/* end confdefs.h. */
34870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34872#define $ac_func innocuous_$ac_func
34873
34874/* System header to define __stub macros and hopefully few prototypes,
34875 which can conflict with char $ac_func (); below.
34876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877 <limits.h> exists even on freestanding compilers. */
34878
34879#ifdef __STDC__
34880# include <limits.h>
34881#else
34882# include <assert.h>
34883#endif
34884
34885#undef $ac_func
34886
34887/* Override any GCC internal prototype to avoid an error.
34888 Use char because int might match the return type of a GCC
34889 builtin and then its argument prototype would still apply. */
34890#ifdef __cplusplus
34891extern "C"
34892#endif
34893char $ac_func ();
34894/* The GNU C library defines this for functions which it implements
34895 to always fail with ENOSYS. Some functions are actually named
34896 something starting with __ and the normal name is an alias. */
34897#if defined __stub_$ac_func || defined __stub___$ac_func
34898choke me
34899#endif
34900
34901int
34902main ()
34903{
34904return $ac_func ();
34905 ;
34906 return 0;
34907}
34908_ACEOF
34909rm -f conftest.$ac_objext conftest$ac_exeext
34910if { (ac_try="$ac_link"
34911case "(($ac_try" in
34912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913 *) ac_try_echo=$ac_try;;
34914esac
34915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916 (eval "$ac_link") 2>conftest.er1
34917 ac_status=$?
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034922 (exit $ac_status); } &&
34923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34924 { (case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34927esac
34928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34929 (eval "$ac_try") 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest$ac_exeext'
34934 { (case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34937esac
34938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_try") 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034943 eval "$as_ac_var=yes"
34944else
34945 echo "$as_me: failed program was:" >&5
34946sed 's/^/| /' conftest.$ac_ext >&5
34947
34948 eval "$as_ac_var=no"
34949fi
34950
Bill Wendlingebcceee2009-04-18 11:20:33 +000034951rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034952 conftest$ac_exeext conftest.$ac_ext
34953fi
34954ac_res=`eval echo '${'$as_ac_var'}'`
34955 { echo "$as_me:$LINENO: result: $ac_res" >&5
34956echo "${ECHO_T}$ac_res" >&6; }
34957if test `eval echo '${'$as_ac_var'}'` = yes; then
34958 cat >>confdefs.h <<_ACEOF
34959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34960_ACEOF
34961
34962fi
34963done
34964
34965
Reid Spencera773bd52006-08-04 18:18:08 +000034966{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34967echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034968if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34970else
34971 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034972if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034973 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034974 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34975 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034976 if test $? -eq 0 ; then
34977 llvm_cv_llvmgcc_sanity="yes"
34978 fi
34979 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034980fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034981fi
Reid Spencera773bd52006-08-04 18:18:08 +000034982{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34983echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034984
34985if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034986 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34987echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034988 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034989 LLVMCC1=$llvmcc1path
34990
Reid Spencer502935f2004-12-22 05:56:56 +000034991 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034992 LLVMCC1PLUS=$llvmcc1pluspath
34993
Reid Spencer502935f2004-12-22 05:56:56 +000034994 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34995 LLVMGCCDIR=$llvmgccdir
34996
Reid Spencer282d8c12006-12-21 22:55:41 +000034997 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34998 LLVMGCCLIBEXEC=$llvmgcclibexec
34999
Reid Spencerb5d75b82006-05-09 00:31:01 +000035000 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035001 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35002 LLVMGCC_VERSION=$llvmgccversion
35003
35004 LLVMGCC_MAJVERS=$llvmgccmajvers
35005
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035006 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035007 LLVMGCC_LANGS=$llvmgcclangs
35008
35009 { echo "$as_me:$LINENO: result: ok" >&5
35010echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035011fi
35012
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035013SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035014
35015
Reid Spencere9de0912004-08-20 09:03:57 +000035016# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035017# information into substitutions that will end up in Makefile.config.in
35018# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035019if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035020 prefix="/usr/local"
35021fi
Reid Spencere9de0912004-08-20 09:03:57 +000035022eval LLVM_PREFIX="${prefix}";
35023eval LLVM_BINDIR="${prefix}/bin";
35024eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035025eval LLVM_DATADIR="${prefix}/share/llvm";
35026eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35027eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035028eval LLVM_INCLUDEDIR="${prefix}/include";
35029eval LLVM_INFODIR="${prefix}/info";
35030eval LLVM_MANDIR="${prefix}/man";
35031LLVM_CONFIGTIME=`date`
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035043# Place the various directores into the config.h file as #defines so that we
35044# can know about the installation paths within LLVM.
35045
Reid Spencere9de0912004-08-20 09:03:57 +000035046cat >>confdefs.h <<_ACEOF
35047#define LLVM_PREFIX "$LLVM_PREFIX"
35048_ACEOF
35049
35050
35051cat >>confdefs.h <<_ACEOF
35052#define LLVM_BINDIR "$LLVM_BINDIR"
35053_ACEOF
35054
35055
35056cat >>confdefs.h <<_ACEOF
35057#define LLVM_LIBDIR "$LLVM_LIBDIR"
35058_ACEOF
35059
35060
35061cat >>confdefs.h <<_ACEOF
35062#define LLVM_DATADIR "$LLVM_DATADIR"
35063_ACEOF
35064
35065
35066cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035067#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035068_ACEOF
35069
35070
35071cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035072#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035073_ACEOF
35074
35075
35076cat >>confdefs.h <<_ACEOF
35077#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35078_ACEOF
35079
35080
35081cat >>confdefs.h <<_ACEOF
35082#define LLVM_INFODIR "$LLVM_INFODIR"
35083_ACEOF
35084
35085
35086cat >>confdefs.h <<_ACEOF
35087#define LLVM_MANDIR "$LLVM_MANDIR"
35088_ACEOF
35089
35090
35091cat >>confdefs.h <<_ACEOF
35092#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35093_ACEOF
35094
35095
Eric Christopher790e11c2007-12-01 00:34:39 +000035096cat >>confdefs.h <<_ACEOF
35097#define LLVM_HOSTTRIPLE "$host"
35098_ACEOF
35099
35100
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035101# Determine which bindings to build.
35102if test "$BINDINGS_TO_BUILD" = auto ; then
35103 BINDINGS_TO_BUILD=""
35104 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35105 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35106 fi
35107fi
35108BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35109
35110
35111# This isn't really configurey, but it avoids having to repeat the list in
35112# other files.
35113ALL_BINDINGS=ocaml
35114
35115
Gordon Henriksenf0915682007-10-02 16:42:22 +000035116# Do any work necessary to ensure that bindings have what they need.
35117binding_prereqs_failed=0
35118for a_binding in $BINDINGS_TO_BUILD ; do
35119 case "$a_binding" in
35120 ocaml)
35121 if test "x$OCAMLC" = x ; then
35122 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35123echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35124 binding_prereqs_failed=1
35125 fi
35126 if test "x$OCAMLDEP" = x ; then
35127 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35128echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35129 binding_prereqs_failed=1
35130 fi
35131 if test "x$OCAMLOPT" = x ; then
35132 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35133echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35134 fi
35135 if test "x$with_ocaml_libdir" != xauto ; then
35136 OCAML_LIBDIR=$with_ocaml_libdir
35137
35138 else
35139 ocaml_stdlib="`"$OCAMLC" -where`"
35140 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35141 then
35142 # ocaml stdlib is beneath our prefix; use stdlib
35143 OCAML_LIBDIR=$ocaml_stdlib
35144
35145 else
35146 # ocaml stdlib is outside our prefix; use libdir/ocaml
35147 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35148
35149 fi
35150 fi
35151 ;;
35152 esac
35153done
35154if test "$binding_prereqs_failed" = 1 ; then
35155 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35156echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35157 { (exit 1); exit 1; }; }
35158fi
35159
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035160{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35161echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35162if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35163 echo $ECHO_N "(cached) $ECHO_C" >&6
35164else
35165 ac_ext=cpp
35166ac_cpp='$CXXCPP $CPPFLAGS'
35167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35170
35171 oldcxxflags="$CXXFLAGS"
35172 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35173 cat >conftest.$ac_ext <<_ACEOF
35174/* confdefs.h. */
35175_ACEOF
35176cat confdefs.h >>conftest.$ac_ext
35177cat >>conftest.$ac_ext <<_ACEOF
35178/* end confdefs.h. */
35179
35180int
35181main ()
35182{
35183
35184 ;
35185 return 0;
35186}
35187_ACEOF
35188rm -f conftest.$ac_objext
35189if { (ac_try="$ac_compile"
35190case "(($ac_try" in
35191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35192 *) ac_try_echo=$ac_try;;
35193esac
35194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35195 (eval "$ac_compile") 2>conftest.er1
35196 ac_status=$?
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035201 (exit $ac_status); } &&
35202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35203 { (case "(($ac_try" in
35204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35205 *) ac_try_echo=$ac_try;;
35206esac
35207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35208 (eval "$ac_try") 2>&5
35209 ac_status=$?
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); }; } &&
35212 { ac_try='test -s conftest.$ac_objext'
35213 { (case "(($ac_try" in
35214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35215 *) ac_try_echo=$ac_try;;
35216esac
35217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35218 (eval "$ac_try") 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035222 llvm_cv_cxx_visibility_inlines_hidden=yes
35223else
35224 echo "$as_me: failed program was:" >&5
35225sed 's/^/| /' conftest.$ac_ext >&5
35226
35227 llvm_cv_cxx_visibility_inlines_hidden=no
35228fi
35229
35230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 CXXFLAGS="$oldcxxflags"
35232 ac_ext=c
35233ac_cpp='$CPP $CPPFLAGS'
35234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35236ac_compiler_gnu=$ac_cv_c_compiler_gnu
35237
35238
35239fi
35240{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35241echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35242if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35243 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35244
35245else
35246 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35247
35248fi
35249
Gordon Henriksenf0915682007-10-02 16:42:22 +000035250
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035251if test "$llvm_cv_link_use_r" = "yes" ; then
35252 RPATH="-Wl,-R"
35253else
35254 RPATH="-Wl,-rpath"
35255fi
35256
35257
35258if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35259 RDYNAMIC="-Wl,-export-dynamic"
35260else
35261 RDYNAMIC=""
35262fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035263
35264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035265
Reid Spencera773bd52006-08-04 18:18:08 +000035266ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035267
Douglas Gregor1555a232009-06-16 20:12:29 +000035268ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35269
35270ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35271
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035272ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35273
Chandler Carruth8b67f772009-10-26 01:35:46 +000035274ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035275
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035276
Reid Spencera773bd52006-08-04 18:18:08 +000035277ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035278
35279
Reid Spencerea949cf2006-08-16 00:45:38 +000035280ac_config_files="$ac_config_files llvm.spec"
35281
35282
Reid Spencera773bd52006-08-04 18:18:08 +000035283ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035284
35285
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035286ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35287
35288
Reid Spencera773bd52006-08-04 18:18:08 +000035289ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035290
35291
Reid Spencera773bd52006-08-04 18:18:08 +000035292ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035293
Reid Spencera773bd52006-08-04 18:18:08 +000035294ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035295
35296
Reid Spencera773bd52006-08-04 18:18:08 +000035297ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035298
35299
Reid Spencera773bd52006-08-04 18:18:08 +000035300ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035301
35302
Reid Spencera773bd52006-08-04 18:18:08 +000035303ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035304
35305
Reid Spencer8b2e1412006-11-17 03:32:33 +000035306ac_config_commands="$ac_config_commands runtime/Makefile"
35307
35308
Reid Spencera773bd52006-08-04 18:18:08 +000035309ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035310
35311
Reid Spencera773bd52006-08-04 18:18:08 +000035312ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035313
35314
Bill Wendlingf24eb392009-01-04 23:12:30 +000035315ac_config_commands="$ac_config_commands unittests/Makefile"
35316
35317
Reid Spencera773bd52006-08-04 18:18:08 +000035318ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035319
35320
Reid Spencera773bd52006-08-04 18:18:08 +000035321ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035322
35323
Reid Spencera773bd52006-08-04 18:18:08 +000035324ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035325
35326
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035327ac_config_commands="$ac_config_commands bindings/Makefile"
35328
35329
35330ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35331
35332
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035333
John Criswell7a73b802003-06-30 21:59:07 +000035334cat >confcache <<\_ACEOF
35335# This file is a shell script that caches the results of configure
35336# tests run on this system so they can be shared between configure
35337# scripts and configure runs, see configure's option --config-cache.
35338# It is not useful on other systems. If it contains results you don't
35339# want to keep, you may remove or edit it.
35340#
35341# config.status only pays attention to the cache file if you give it
35342# the --recheck option to rerun configure.
35343#
John Criswell0c38eaf2003-09-10 15:17:25 +000035344# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035345# loading this file, other *unset* `ac_cv_foo' will be assigned the
35346# following values.
35347
35348_ACEOF
35349
35350# The following way of writing the cache mishandles newlines in values,
35351# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035352# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035353# Ultrix sh set writes to stderr and can't be redirected directly,
35354# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035355(
35356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35357 eval ac_val=\$$ac_var
35358 case $ac_val in #(
35359 *${as_nl}*)
35360 case $ac_var in #(
35361 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35362echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35363 esac
35364 case $ac_var in #(
35365 _ | IFS | as_nl) ;; #(
35366 *) $as_unset $ac_var ;;
35367 esac ;;
35368 esac
35369 done
35370
John Criswell7a73b802003-06-30 21:59:07 +000035371 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35373 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035374 # `set' does not quote correctly, so add quotes (double-quote
35375 # substitution turns \\\\ into \\, and sed turns \\ into \).
35376 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035377 "s/'/'\\\\''/g;
35378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035379 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035380 *)
35381 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035384 esac |
35385 sort
35386) |
John Criswell7a73b802003-06-30 21:59:07 +000035387 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035388 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035389 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035390 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35392 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35394 :end' >>confcache
35395if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35396 if test -w "$cache_file"; then
35397 test "x$cache_file" != "x/dev/null" &&
35398 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35399echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035400 cat confcache >$cache_file
35401 else
Reid Spencera773bd52006-08-04 18:18:08 +000035402 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35403echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035404 fi
35405fi
35406rm -f confcache
35407
35408test "x$prefix" = xNONE && prefix=$ac_default_prefix
35409# Let make expand exec_prefix.
35410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35411
John Criswell7a73b802003-06-30 21:59:07 +000035412DEFS=-DHAVE_CONFIG_H
35413
John Criswell0c38eaf2003-09-10 15:17:25 +000035414ac_libobjs=
35415ac_ltlibobjs=
35416for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35417 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35419 ac_i=`echo "$ac_i" | sed "$ac_script"`
35420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35421 # will be set to the directory where LIBOBJS objects are built.
35422 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35423 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035424done
35425LIBOBJS=$ac_libobjs
35426
35427LTLIBOBJS=$ac_ltlibobjs
35428
35429
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035430if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35431 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35432Usually this means the macro was only invoked conditionally." >&5
35433echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35434Usually this means the macro was only invoked conditionally." >&2;}
35435 { (exit 1); exit 1; }; }
35436fi
35437if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35438 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35439Usually this means the macro was only invoked conditionally." >&5
35440echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35441Usually this means the macro was only invoked conditionally." >&2;}
35442 { (exit 1); exit 1; }; }
35443fi
John Criswell7a73b802003-06-30 21:59:07 +000035444
35445: ${CONFIG_STATUS=./config.status}
35446ac_clean_files_save=$ac_clean_files
35447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35448{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35449echo "$as_me: creating $CONFIG_STATUS" >&6;}
35450cat >$CONFIG_STATUS <<_ACEOF
35451#! $SHELL
35452# Generated by $as_me.
35453# Run this file to recreate the current configuration.
35454# Compiler output produced by configure, useful for debugging
35455# configure, is in config.log if it exists.
35456
35457debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035458ac_cs_recheck=false
35459ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035460SHELL=\${CONFIG_SHELL-$SHELL}
35461_ACEOF
35462
35463cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035464## --------------------- ##
35465## M4sh Initialization. ##
35466## --------------------- ##
35467
Bill Wendlingebcceee2009-04-18 11:20:33 +000035468# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35470 emulate sh
35471 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35473 # is contrary to our usage. Disable this feature.
35474 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035475 setopt NO_GLOB_SUBST
35476else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035477 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035478fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035479BIN_SH=xpg4; export BIN_SH # for Tru64
35480DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035481
John Criswell7a73b802003-06-30 21:59:07 +000035482
Reid Spencera773bd52006-08-04 18:18:08 +000035483# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035484# Avoid depending upon Character Ranges.
35485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35488as_cr_digits='0123456789'
35489as_cr_alnum=$as_cr_Letters$as_cr_digits
35490
35491# The user is always right.
35492if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035493 echo "#! /bin/sh" >conf$$.sh
35494 echo "exit 0" >>conf$$.sh
35495 chmod +x conf$$.sh
35496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035497 PATH_SEPARATOR=';'
35498 else
35499 PATH_SEPARATOR=:
35500 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035501 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035502fi
35503
Reid Spencera773bd52006-08-04 18:18:08 +000035504# Support unset when possible.
35505if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35506 as_unset=unset
35507else
35508 as_unset=false
35509fi
John Criswell7a73b802003-06-30 21:59:07 +000035510
Reid Spencera773bd52006-08-04 18:18:08 +000035511
35512# IFS
35513# We need space, tab and new line, in precisely that order. Quoting is
35514# there to prevent editors from complaining about space-tab.
35515# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35516# splitting by setting IFS to empty value.)
35517as_nl='
35518'
35519IFS=" "" $as_nl"
35520
35521# Find who we are. Look in the path if we contain no directory separator.
35522case $0 in
35523 *[\\/]* ) as_myself=$0 ;;
35524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035525for as_dir in $PATH
35526do
35527 IFS=$as_save_IFS
35528 test -z "$as_dir" && as_dir=.
35529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35530done
Reid Spencera773bd52006-08-04 18:18:08 +000035531IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035532
Reid Spencera773bd52006-08-04 18:18:08 +000035533 ;;
35534esac
35535# We did not find ourselves, most probably we were run as `sh COMMAND'
35536# in which case we are not to be found in the path.
35537if test "x$as_myself" = x; then
35538 as_myself=$0
35539fi
35540if test ! -f "$as_myself"; then
35541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35542 { (exit 1); exit 1; }
35543fi
35544
35545# Work around bugs in pre-3.0 UWIN ksh.
35546for as_var in ENV MAIL MAILPATH
35547do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35548done
35549PS1='$ '
35550PS2='> '
35551PS4='+ '
35552
35553# NLS nuisances.
35554for as_var in \
35555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35557 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035558do
Reid Spencera773bd52006-08-04 18:18:08 +000035559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35560 eval $as_var=C; export $as_var
35561 else
35562 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35563 fi
35564done
35565
35566# Required to use basename.
35567if expr a : '\(a\)' >/dev/null 2>&1 &&
35568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35569 as_expr=expr
35570else
35571 as_expr=false
35572fi
35573
35574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35575 as_basename=basename
35576else
35577 as_basename=false
35578fi
35579
35580
35581# Name of the executable.
35582as_me=`$as_basename -- "$0" ||
35583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35584 X"$0" : 'X\(//\)$' \| \
35585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35586echo X/"$0" |
35587 sed '/^.*\/\([^/][^/]*\)\/*$/{
35588 s//\1/
35589 q
35590 }
35591 /^X\/\(\/\/\)$/{
35592 s//\1/
35593 q
35594 }
35595 /^X\/\(\/\).*/{
35596 s//\1/
35597 q
35598 }
35599 s/.*/./; q'`
35600
35601# CDPATH.
35602$as_unset CDPATH
35603
35604
35605
John Criswell7a73b802003-06-30 21:59:07 +000035606 as_lineno_1=$LINENO
35607 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035608 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035610
35611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35612 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035613 # line-number line after each line using $LINENO; the second 'sed'
35614 # does the real work. The second script uses 'N' to pair each
35615 # line-number line with the line containing $LINENO, and appends
35616 # trailing '-' during substitution so that $LINENO is not a special
35617 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035619 # scripts with optimization help from Paolo Bonzini. Blame Lee
35620 # E. McMahon (1931-1989) for sed's syntax. :-)
35621 sed -n '
35622 p
35623 /[$]LINENO/=
35624 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035625 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035626 s/[$]LINENO.*/&-/
35627 t lineno
35628 b
35629 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035630 N
Reid Spencera773bd52006-08-04 18:18:08 +000035631 :loop
35632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035633 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035634 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035635 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035636 chmod +x "$as_me.lineno" ||
35637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035638 { (exit 1); exit 1; }; }
35639
35640 # Don't try to exec as it changes $[0], causing all sort of problems
35641 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035642 # original and so on. Autoconf is especially sensitive to this).
35643 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035644 # Exit status is that of the last command.
35645 exit
35646}
35647
35648
Reid Spencera773bd52006-08-04 18:18:08 +000035649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35650 as_dirname=dirname
35651else
35652 as_dirname=false
35653fi
35654
35655ECHO_C= ECHO_N= ECHO_T=
35656case `echo -n x` in
35657-n*)
35658 case `echo 'x\c'` in
35659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35660 *) ECHO_C='\c';;
35661 esac;;
35662*)
35663 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035664esac
35665
Reid Spencera773bd52006-08-04 18:18:08 +000035666if expr a : '\(a\)' >/dev/null 2>&1 &&
35667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035668 as_expr=expr
35669else
35670 as_expr=false
35671fi
35672
35673rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035674if test -d conf$$.dir; then
35675 rm -f conf$$.dir/conf$$.file
35676else
35677 rm -f conf$$.dir
35678 mkdir conf$$.dir
35679fi
John Criswell7a73b802003-06-30 21:59:07 +000035680echo >conf$$.file
35681if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035682 as_ln_s='ln -s'
35683 # ... but there are two gotchas:
35684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35686 # In both cases, we have to default to `cp -p'.
35687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035688 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035689elif ln conf$$.file conf$$ 2>/dev/null; then
35690 as_ln_s=ln
35691else
35692 as_ln_s='cp -p'
35693fi
Reid Spencera773bd52006-08-04 18:18:08 +000035694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35695rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035696
John Criswell0c38eaf2003-09-10 15:17:25 +000035697if mkdir -p . 2>/dev/null; then
35698 as_mkdir_p=:
35699else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035700 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035701 as_mkdir_p=false
35702fi
35703
Bill Wendlingebcceee2009-04-18 11:20:33 +000035704# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35705# systems may use methods other than mode bits to determine executability.
35706cat >conf$$.file <<_ASEOF
35707#! /bin/sh
35708exit 0
35709_ASEOF
35710chmod +x conf$$.file
35711if test -x conf$$.file >/dev/null 2>&1; then
35712 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035713else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035714 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035715fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035716rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035717
35718# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035720
35721# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035723
35724
John Criswell7a73b802003-06-30 21:59:07 +000035725exec 6>&1
35726
Reid Spencera773bd52006-08-04 18:18:08 +000035727# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035728# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035729# values after options handling.
35730ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035731This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035732generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035733
35734 CONFIG_FILES = $CONFIG_FILES
35735 CONFIG_HEADERS = $CONFIG_HEADERS
35736 CONFIG_LINKS = $CONFIG_LINKS
35737 CONFIG_COMMANDS = $CONFIG_COMMANDS
35738 $ $0 $@
35739
Reid Spencera773bd52006-08-04 18:18:08 +000035740on `(hostname || uname -n) 2>/dev/null | sed 1q`
35741"
35742
John Criswell7a73b802003-06-30 21:59:07 +000035743_ACEOF
35744
Reid Spencera773bd52006-08-04 18:18:08 +000035745cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035746# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035747config_files="$ac_config_files"
35748config_headers="$ac_config_headers"
35749config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035750
Reid Spencera773bd52006-08-04 18:18:08 +000035751_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035752
35753cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035754ac_cs_usage="\
35755\`$as_me' instantiates files from templates according to the
35756current configuration.
35757
35758Usage: $0 [OPTIONS] [FILE]...
35759
35760 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035761 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035762 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035763 -d, --debug don't remove temporary files
35764 --recheck update $as_me by reconfiguring in the same conditions
35765 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035766 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035767 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035768 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035769
35770Configuration files:
35771$config_files
35772
35773Configuration headers:
35774$config_headers
35775
John Criswellc764fbc2003-09-06 15:17:13 +000035776Configuration commands:
35777$config_commands
35778
John Criswell7a73b802003-06-30 21:59:07 +000035779Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035780
Reid Spencera773bd52006-08-04 18:18:08 +000035781_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035782cat >>$CONFIG_STATUS <<_ACEOF
35783ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035784llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035785configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035786 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035787
Reid Spencera773bd52006-08-04 18:18:08 +000035788Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035789This config.status script is free software; the Free Software Foundation
35790gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035791
35792ac_pwd='$ac_pwd'
35793srcdir='$srcdir'
35794INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035795_ACEOF
35796
35797cat >>$CONFIG_STATUS <<\_ACEOF
35798# If no file are specified by the user, then we need to provide default
35799# value. By we need to know if files were specified by the user.
35800ac_need_defaults=:
35801while test $# != 0
35802do
35803 case $1 in
35804 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035807 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035809 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035810 ac_option=$1
35811 ac_optarg=$2
35812 ac_shift=shift
35813 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035814 esac
35815
John Criswell0c38eaf2003-09-10 15:17:25 +000035816 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035817 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35819 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35821 echo "$ac_cs_version"; exit ;;
35822 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035823 debug=: ;;
35824 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035825 $ac_shift
35826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035827 ac_need_defaults=false;;
35828 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035829 $ac_shift
35830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035831 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035832 --he | --h)
35833 # Conflict between --help and --header
35834 { echo "$as_me: error: ambiguous option: $1
35835Try \`$0 --help' for more information." >&2
35836 { (exit 1); exit 1; }; };;
35837 --help | --hel | -h )
35838 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35841 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035842
35843 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035844 -*) { echo "$as_me: error: unrecognized option: $1
35845Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035846 { (exit 1); exit 1; }; } ;;
35847
Reid Spencera773bd52006-08-04 18:18:08 +000035848 *) ac_config_targets="$ac_config_targets $1"
35849 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035850
35851 esac
35852 shift
35853done
35854
John Criswell0c38eaf2003-09-10 15:17:25 +000035855ac_configure_extra_args=
35856
35857if $ac_cs_silent; then
35858 exec 6>/dev/null
35859 ac_configure_extra_args="$ac_configure_extra_args --silent"
35860fi
35861
35862_ACEOF
35863cat >>$CONFIG_STATUS <<_ACEOF
35864if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035865 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35866 CONFIG_SHELL=$SHELL
35867 export CONFIG_SHELL
35868 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035869fi
35870
John Criswell7a73b802003-06-30 21:59:07 +000035871_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035872cat >>$CONFIG_STATUS <<\_ACEOF
35873exec 5>>config.log
35874{
35875 echo
35876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35877## Running $as_me. ##
35878_ASBOX
35879 echo "$ac_log"
35880} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035881
Reid Spencera773bd52006-08-04 18:18:08 +000035882_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035883cat >>$CONFIG_STATUS <<_ACEOF
35884#
Reid Spencera773bd52006-08-04 18:18:08 +000035885# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035886#
Reid Spencerc0682832005-02-24 19:05:19 +000035887llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035888
35889_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035890
John Criswell7a73b802003-06-30 21:59:07 +000035891cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035892
35893# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035894for ac_config_target in $ac_config_targets
35895do
Reid Spencera773bd52006-08-04 18:18:08 +000035896 case $ac_config_target in
35897 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035898 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35899 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035900 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000035901 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035902 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035903 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035904 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035905 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035906 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35907 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35908 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35909 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35910 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35911 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035912 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035913 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35914 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035915 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035916 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35917 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35918 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035919 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35920 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035921
John Criswell7a73b802003-06-30 21:59:07 +000035922 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35923echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35924 { (exit 1); exit 1; }; };;
35925 esac
35926done
35927
Reid Spencera773bd52006-08-04 18:18:08 +000035928
John Criswell7a73b802003-06-30 21:59:07 +000035929# If the user did not use the arguments to specify the items to instantiate,
35930# then the envvar interface is used. Set only those that are not.
35931# We use the long form for the default assignment because of an extremely
35932# bizarre bug on SunOS 4.1.3.
35933if $ac_need_defaults; then
35934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035937fi
35938
John Criswell0c38eaf2003-09-10 15:17:25 +000035939# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035940# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035941# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035942# Hook for its removal unless debugging.
35943# Note that there is a small window in which the directory will not be cleaned:
35944# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035945$debug ||
35946{
Reid Spencera773bd52006-08-04 18:18:08 +000035947 tmp=
35948 trap 'exit_status=$?
35949 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35950' 0
John Criswell7a73b802003-06-30 21:59:07 +000035951 trap '{ (exit 1); exit 1; }' 1 2 13 15
35952}
John Criswell7a73b802003-06-30 21:59:07 +000035953# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035954
John Criswell7a73b802003-06-30 21:59:07 +000035955{
Reid Spencera773bd52006-08-04 18:18:08 +000035956 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035957 test -n "$tmp" && test -d "$tmp"
35958} ||
35959{
Reid Spencera773bd52006-08-04 18:18:08 +000035960 tmp=./conf$$-$RANDOM
35961 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035962} ||
35963{
John Criswell0c38eaf2003-09-10 15:17:25 +000035964 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035965 { (exit 1); exit 1; }
35966}
35967
John Criswell7a73b802003-06-30 21:59:07 +000035968#
Reid Spencera773bd52006-08-04 18:18:08 +000035969# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035970#
35971
35972# No need to generate the scripts if there are no CONFIG_FILES.
35973# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035974if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035975
35976_ACEOF
35977
Reid Spencera773bd52006-08-04 18:18:08 +000035978
35979
35980ac_delim='%!_!# '
35981for ac_last_try in false false false false false :; do
35982 cat >conf$$subs.sed <<_ACEOF
35983SHELL!$SHELL$ac_delim
35984PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35985PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35986PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35987PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35988PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35989PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35990exec_prefix!$exec_prefix$ac_delim
35991prefix!$prefix$ac_delim
35992program_transform_name!$program_transform_name$ac_delim
35993bindir!$bindir$ac_delim
35994sbindir!$sbindir$ac_delim
35995libexecdir!$libexecdir$ac_delim
35996datarootdir!$datarootdir$ac_delim
35997datadir!$datadir$ac_delim
35998sysconfdir!$sysconfdir$ac_delim
35999sharedstatedir!$sharedstatedir$ac_delim
36000localstatedir!$localstatedir$ac_delim
36001includedir!$includedir$ac_delim
36002oldincludedir!$oldincludedir$ac_delim
36003docdir!$docdir$ac_delim
36004infodir!$infodir$ac_delim
36005htmldir!$htmldir$ac_delim
36006dvidir!$dvidir$ac_delim
36007pdfdir!$pdfdir$ac_delim
36008psdir!$psdir$ac_delim
36009libdir!$libdir$ac_delim
36010localedir!$localedir$ac_delim
36011mandir!$mandir$ac_delim
36012DEFS!$DEFS$ac_delim
36013ECHO_C!$ECHO_C$ac_delim
36014ECHO_N!$ECHO_N$ac_delim
36015ECHO_T!$ECHO_T$ac_delim
36016LIBS!$LIBS$ac_delim
36017build_alias!$build_alias$ac_delim
36018host_alias!$host_alias$ac_delim
36019target_alias!$target_alias$ac_delim
36020LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36021subdirs!$subdirs$ac_delim
36022build!$build$ac_delim
36023build_cpu!$build_cpu$ac_delim
36024build_vendor!$build_vendor$ac_delim
36025build_os!$build_os$ac_delim
36026host!$host$ac_delim
36027host_cpu!$host_cpu$ac_delim
36028host_vendor!$host_vendor$ac_delim
36029host_os!$host_os$ac_delim
36030target!$target$ac_delim
36031target_cpu!$target_cpu$ac_delim
36032target_vendor!$target_vendor$ac_delim
36033target_os!$target_os$ac_delim
36034OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036035HOST_OS!$HOST_OS$ac_delim
36036TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036037LINKALL!$LINKALL$ac_delim
36038NOLINKALL!$NOLINKALL$ac_delim
36039LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36040LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036041ARCH!$ARCH$ac_delim
36042ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036043CC!$CC$ac_delim
36044CFLAGS!$CFLAGS$ac_delim
36045LDFLAGS!$LDFLAGS$ac_delim
36046CPPFLAGS!$CPPFLAGS$ac_delim
36047ac_ct_CC!$ac_ct_CC$ac_delim
36048EXEEXT!$EXEEXT$ac_delim
36049OBJEXT!$OBJEXT$ac_delim
36050CPP!$CPP$ac_delim
36051GREP!$GREP$ac_delim
36052EGREP!$EGREP$ac_delim
36053LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36054BUILD_CC!$BUILD_CC$ac_delim
36055BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036056BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036057CVSBUILD!$CVSBUILD$ac_delim
36058ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036059ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036060DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036061ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36062EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036063DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036064DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036065JIT!$JIT$ac_delim
36066TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36067ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36068ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036069ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036070TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036071LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36072LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036073LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036074ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036075EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036076BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036077ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36078ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036079CXX!$CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036080_ACEOF
36081
36082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36083 break
36084 elif $ac_last_try; then
36085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36086echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36087 { (exit 1); exit 1; }; }
36088 else
36089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036090 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036091done
36092
36093ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36094if test -n "$ac_eof"; then
36095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36096 ac_eof=`expr $ac_eof + 1`
36097fi
36098
36099cat >>$CONFIG_STATUS <<_ACEOF
36100cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36102_ACEOF
36103sed '
36104s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36105s/^/s,@/; s/!/@,|#_!!_#|/
36106:n
36107t n
36108s/'"$ac_delim"'$/,g/; t
36109s/$/\\/; p
36110N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36111' >>$CONFIG_STATUS <conf$$subs.sed
36112rm -f conf$$subs.sed
36113cat >>$CONFIG_STATUS <<_ACEOF
36114CEOF$ac_eof
36115_ACEOF
36116
36117
36118ac_delim='%!_!# '
36119for ac_last_try in false false false false false :; do
36120 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036121CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036122ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036123NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036124ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036125LN_S!$LN_S$ac_delim
36126CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036127CP!$CP$ac_delim
36128DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036129FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036130MKDIR!$MKDIR$ac_delim
36131MV!$MV$ac_delim
36132RANLIB!$RANLIB$ac_delim
36133RM!$RM$ac_delim
36134SED!$SED$ac_delim
36135TAR!$TAR$ac_delim
36136BINPWD!$BINPWD$ac_delim
36137GRAPHVIZ!$GRAPHVIZ$ac_delim
36138DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036139FDP!$FDP$ac_delim
36140NEATO!$NEATO$ac_delim
36141TWOPI!$TWOPI$ac_delim
36142CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036143GV!$GV$ac_delim
36144DOTTY!$DOTTY$ac_delim
36145PERL!$PERL$ac_delim
36146HAVE_PERL!$HAVE_PERL$ac_delim
36147INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36148INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36149INSTALL_DATA!$INSTALL_DATA$ac_delim
36150BZIP2!$BZIP2$ac_delim
36151DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036152GROFF!$GROFF$ac_delim
36153GZIP!$GZIP$ac_delim
36154POD2HTML!$POD2HTML$ac_delim
36155POD2MAN!$POD2MAN$ac_delim
36156RUNTEST!$RUNTEST$ac_delim
36157TCLSH!$TCLSH$ac_delim
36158ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036159OCAMLC!$OCAMLC$ac_delim
36160OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036161OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036162OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036163GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036164INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36165INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36166CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36167CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36168LIBADD_DL!$LIBADD_DL$ac_delim
36169ECHO!$ECHO$ac_delim
36170AR!$AR$ac_delim
36171STRIP!$STRIP$ac_delim
36172CXXCPP!$CXXCPP$ac_delim
36173F77!$F77$ac_delim
36174FFLAGS!$FFLAGS$ac_delim
36175ac_ct_F77!$ac_ct_F77$ac_delim
36176LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036177LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36178LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036179LLVMGCC!$LLVMGCC$ac_delim
36180LLVMGXX!$LLVMGXX$ac_delim
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036181NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36182NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036183USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036184USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036185HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036186HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036187ALLOCA!$ALLOCA$ac_delim
36188MMAP_FILE!$MMAP_FILE$ac_delim
36189LLVMCC1!$LLVMCC1$ac_delim
36190LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36191LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036192LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036193LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36194LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036195LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036196SHLIBEXT!$SHLIBEXT$ac_delim
36197LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36198LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36199LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36200LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36201LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36202LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36203LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36204LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36205LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36206LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036207BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36208ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036209OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036210ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036211RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036212RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036213LIBOBJS!$LIBOBJS$ac_delim
36214LTLIBOBJS!$LTLIBOBJS$ac_delim
36215_ACEOF
36216
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Reid Spencera773bd52006-08-04 18:18:08 +000036218 break
36219 elif $ac_last_try; then
36220 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36221echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36222 { (exit 1); exit 1; }; }
36223 else
36224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36225 fi
36226done
36227
36228ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36229if test -n "$ac_eof"; then
36230 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36231 ac_eof=`expr $ac_eof + 1`
36232fi
36233
36234cat >>$CONFIG_STATUS <<_ACEOF
36235cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36237_ACEOF
36238sed '
36239s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36240s/^/s,@/; s/!/@,|#_!!_#|/
36241:n
36242t n
36243s/'"$ac_delim"'$/,g/; t
36244s/$/\\/; p
36245N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36246' >>$CONFIG_STATUS <conf$$subs.sed
36247rm -f conf$$subs.sed
36248cat >>$CONFIG_STATUS <<_ACEOF
36249:end
36250s/|#_!!_#|//g
36251CEOF$ac_eof
36252_ACEOF
36253
36254
36255# VPATH may cause trouble with some makes, so we remove $(srcdir),
36256# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36257# trailing colons and then remove the whole line if VPATH becomes empty
36258# (actually we leave an empty line to preserve line numbers).
36259if test "x$srcdir" = x.; then
36260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36261s/:*\$(srcdir):*/:/
36262s/:*\${srcdir}:*/:/
36263s/:*@srcdir@:*/:/
36264s/^\([^=]*=[ ]*\):*/\1/
36265s/:*$//
36266s/^[^=]*=[ ]*$//
36267}'
36268fi
36269
36270cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036271fi # test -n "$CONFIG_FILES"
36272
Reid Spencera773bd52006-08-04 18:18:08 +000036273
36274for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36275do
36276 case $ac_tag in
36277 :[FHLC]) ac_mode=$ac_tag; continue;;
36278 esac
36279 case $ac_mode$ac_tag in
36280 :[FHL]*:*);;
36281 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36282echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36283 { (exit 1); exit 1; }; };;
36284 :[FH]-) ac_tag=-:-;;
36285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36286 esac
36287 ac_save_IFS=$IFS
36288 IFS=:
36289 set x $ac_tag
36290 IFS=$ac_save_IFS
36291 shift
36292 ac_file=$1
36293 shift
36294
36295 case $ac_mode in
36296 :L) ac_source=$1;;
36297 :[FH])
36298 ac_file_inputs=
36299 for ac_f
36300 do
36301 case $ac_f in
36302 -) ac_f="$tmp/stdin";;
36303 *) # Look for the file first in the build tree, then in the source tree
36304 # (if the path is not absolute). The absolute path cannot be DOS-style,
36305 # because $ac_f cannot contain `:'.
36306 test -f "$ac_f" ||
36307 case $ac_f in
36308 [\\/$]*) false;;
36309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36310 esac ||
36311 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36312echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36313 { (exit 1); exit 1; }; };;
36314 esac
36315 ac_file_inputs="$ac_file_inputs $ac_f"
36316 done
36317
36318 # Let's still pretend it is `configure' which instantiates (i.e., don't
36319 # use $as_me), people would be surprised to read:
36320 # /* config.h. Generated by config.status. */
36321 configure_input="Generated from "`IFS=:
36322 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36323 if test x"$ac_file" != x-; then
36324 configure_input="$ac_file. $configure_input"
36325 { echo "$as_me:$LINENO: creating $ac_file" >&5
36326echo "$as_me: creating $ac_file" >&6;}
36327 fi
36328
36329 case $ac_tag in
36330 *:-:* | *:-) cat >"$tmp/stdin";;
36331 esac
36332 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036333 esac
36334
Reid Spencera773bd52006-08-04 18:18:08 +000036335 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036336$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036337 X"$ac_file" : 'X\(//\)[^/]' \| \
36338 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036340echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36342 s//\1/
36343 q
36344 }
36345 /^X\(\/\/\)[^/].*/{
36346 s//\1/
36347 q
36348 }
36349 /^X\(\/\/\)$/{
36350 s//\1/
36351 q
36352 }
36353 /^X\(\/\).*/{
36354 s//\1/
36355 q
36356 }
36357 s/.*/./; q'`
36358 { as_dir="$ac_dir"
36359 case $as_dir in #(
36360 -*) as_dir=./$as_dir;;
36361 esac
36362 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036363 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036364 while :; do
36365 case $as_dir in #(
36366 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36367 *) as_qdir=$as_dir;;
36368 esac
36369 as_dirs="'$as_qdir' $as_dirs"
36370 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036372 X"$as_dir" : 'X\(//\)[^/]' \| \
36373 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036375echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36377 s//\1/
36378 q
36379 }
36380 /^X\(\/\/\)[^/].*/{
36381 s//\1/
36382 q
36383 }
36384 /^X\(\/\/\)$/{
36385 s//\1/
36386 q
36387 }
36388 /^X\(\/\).*/{
36389 s//\1/
36390 q
36391 }
36392 s/.*/./; q'`
36393 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036394 done
Reid Spencera773bd52006-08-04 18:18:08 +000036395 test -z "$as_dirs" || eval "mkdir $as_dirs"
36396 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36397echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036398 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036399 ac_builddir=.
36400
Reid Spencera773bd52006-08-04 18:18:08 +000036401case "$ac_dir" in
36402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36403*)
John Criswell7a73b802003-06-30 21:59:07 +000036404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036405 # A ".." for each directory in $ac_dir_suffix.
36406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36407 case $ac_top_builddir_sub in
36408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36410 esac ;;
36411esac
36412ac_abs_top_builddir=$ac_pwd
36413ac_abs_builddir=$ac_pwd$ac_dir_suffix
36414# for backward compatibility:
36415ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036416
36417case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036418 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036419 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036420 ac_top_srcdir=$ac_top_builddir_sub
36421 ac_abs_top_srcdir=$ac_pwd ;;
36422 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036423 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036424 ac_top_srcdir=$srcdir
36425 ac_abs_top_srcdir=$srcdir ;;
36426 *) # Relative name.
36427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36428 ac_top_srcdir=$ac_top_build_prefix$srcdir
36429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036430esac
Reid Spencera773bd52006-08-04 18:18:08 +000036431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036432
John Criswell7a73b802003-06-30 21:59:07 +000036433
Reid Spencera773bd52006-08-04 18:18:08 +000036434 case $ac_mode in
36435 :F)
36436 #
36437 # CONFIG_FILE
36438 #
John Criswell7a73b802003-06-30 21:59:07 +000036439
36440 case $INSTALL in
36441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036443 esac
John Criswell7a73b802003-06-30 21:59:07 +000036444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036445
36446cat >>$CONFIG_STATUS <<\_ACEOF
36447# If the template does not know about datarootdir, expand it.
36448# FIXME: This hack should be removed a few years after 2.60.
36449ac_datarootdir_hack=; ac_datarootdir_seen=
36450
36451case `sed -n '/datarootdir/ {
36452 p
36453 q
36454}
36455/@datadir@/p
36456/@docdir@/p
36457/@infodir@/p
36458/@localedir@/p
36459/@mandir@/p
36460' $ac_file_inputs` in
36461*datarootdir*) ac_datarootdir_seen=yes;;
36462*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36463 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36464echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36465_ACEOF
36466cat >>$CONFIG_STATUS <<_ACEOF
36467 ac_datarootdir_hack='
36468 s&@datadir@&$datadir&g
36469 s&@docdir@&$docdir&g
36470 s&@infodir@&$infodir&g
36471 s&@localedir@&$localedir&g
36472 s&@mandir@&$mandir&g
36473 s&\\\${datarootdir}&$datarootdir&g' ;;
36474esac
36475_ACEOF
36476
36477# Neutralize VPATH when `$srcdir' = `.'.
36478# Shell code in configure.ac might set extrasub.
36479# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036480cat >>$CONFIG_STATUS <<_ACEOF
36481 sed "$ac_vpsub
36482$extrasub
36483_ACEOF
36484cat >>$CONFIG_STATUS <<\_ACEOF
36485:t
36486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036487s&@configure_input@&$configure_input&;t t
36488s&@top_builddir@&$ac_top_builddir_sub&;t t
36489s&@srcdir@&$ac_srcdir&;t t
36490s&@abs_srcdir@&$ac_abs_srcdir&;t t
36491s&@top_srcdir@&$ac_top_srcdir&;t t
36492s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36493s&@builddir@&$ac_builddir&;t t
36494s&@abs_builddir@&$ac_abs_builddir&;t t
36495s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36496s&@INSTALL@&$ac_INSTALL&;t t
36497$ac_datarootdir_hack
36498" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036499
Reid Spencera773bd52006-08-04 18:18:08 +000036500test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36503 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36504which seems to be undefined. Please make sure it is defined." >&5
36505echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36506which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036507
Reid Spencera773bd52006-08-04 18:18:08 +000036508 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036509 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036510 -) cat "$tmp/out"; rm -f "$tmp/out";;
36511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036512 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036513 ;;
36514 :H)
36515 #
36516 # CONFIG_HEADER
36517 #
John Criswell7a73b802003-06-30 21:59:07 +000036518_ACEOF
36519
Reid Spencera773bd52006-08-04 18:18:08 +000036520# Transform confdefs.h into a sed script `conftest.defines', that
36521# substitutes the proper values into config.h.in to produce config.h.
36522rm -f conftest.defines conftest.tail
36523# First, append a space to every undef/define line, to ease matching.
36524echo 's/$/ /' >conftest.defines
36525# Then, protect against being on the right side of a sed subst, or in
36526# an unquoted here document, in config.status. If some macros were
36527# called several times there might be several #defines for the same
36528# symbol, which is useless. But do not sort them, since the last
36529# AC_DEFINE must be honored.
36530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36531# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36532# NAME is the cpp macro being defined, VALUE is the value it is being given.
36533# PARAMS is the parameter list in the macro definition--in most cases, it's
36534# just an empty string.
36535ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36536ac_dB='\\)[ (].*,\\1define\\2'
36537ac_dC=' '
36538ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036539
Reid Spencera773bd52006-08-04 18:18:08 +000036540uniq confdefs.h |
36541 sed -n '
36542 t rset
36543 :rset
36544 s/^[ ]*#[ ]*define[ ][ ]*//
36545 t ok
36546 d
36547 :ok
36548 s/[\\&,]/\\&/g
36549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36551 ' >>conftest.defines
36552
36553# Remove the space that was appended to ease matching.
36554# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036555# example, in the case of _POSIX_SOURCE, which is predefined and required
36556# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036557# (The regexp can be short, since the line contains either #define or #undef.)
36558echo 's/ $//
36559s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036560
Reid Spencera773bd52006-08-04 18:18:08 +000036561# Break up conftest.defines:
36562ac_max_sed_lines=50
36563
36564# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36565# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36566# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36567# et cetera.
36568ac_in='$ac_file_inputs'
36569ac_out='"$tmp/out1"'
36570ac_nxt='"$tmp/out2"'
36571
36572while :
John Criswell7a73b802003-06-30 21:59:07 +000036573do
Reid Spencera773bd52006-08-04 18:18:08 +000036574 # Write a here document:
36575 cat >>$CONFIG_STATUS <<_ACEOF
36576 # First, check the format of the line:
36577 cat >"\$tmp/defines.sed" <<\\CEOF
36578/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36579/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36580b
36581:def
36582_ACEOF
36583 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036584 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36586 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36587 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36588 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036589 rm -f conftest.defines
36590 mv conftest.tail conftest.defines
36591done
Reid Spencera773bd52006-08-04 18:18:08 +000036592rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036593
Reid Spencera773bd52006-08-04 18:18:08 +000036594echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036595cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036596 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036597 echo "/* $configure_input */" >"$tmp/config.h"
36598 cat "$ac_result" >>"$tmp/config.h"
36599 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36601echo "$as_me: $ac_file is unchanged" >&6;}
36602 else
John Criswell7a73b802003-06-30 21:59:07 +000036603 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036604 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036605 fi
36606 else
Reid Spencera773bd52006-08-04 18:18:08 +000036607 echo "/* $configure_input */"
36608 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036609 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036610 rm -f "$tmp/out12"
36611 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036612
Reid Spencera773bd52006-08-04 18:18:08 +000036613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36614echo "$as_me: executing $ac_file commands" >&6;}
36615 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036616 esac
John Criswell7a73b802003-06-30 21:59:07 +000036617
Reid Spencera773bd52006-08-04 18:18:08 +000036618
36619 case $ac_file$ac_mode in
36620 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036622 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036624 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036626 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036628 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036630 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036632 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036634 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036636 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036638 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036640 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036642 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036644 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036645 ${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 +000036646
36647 esac
36648done # for ac_tag
36649
John Criswell7a73b802003-06-30 21:59:07 +000036650
36651{ (exit 0); exit 0; }
36652_ACEOF
36653chmod +x $CONFIG_STATUS
36654ac_clean_files=$ac_clean_files_save
36655
36656
36657# configure is writing to config.log, and then calls config.status.
36658# config.status does its own redirection, appending to config.log.
36659# Unfortunately, on DOS this fails, as config.log is still kept open
36660# by configure, so config.status won't be able to write to it; its
36661# output is simply discarded. So we exec the FD to /dev/null,
36662# effectively closing config.log, so it can be properly (re)opened and
36663# appended to by config.status. When coming back to configure, we
36664# need to make the FD available again.
36665if test "$no_create" != yes; then
36666 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036667 ac_config_status_args=
36668 test "$silent" = yes &&
36669 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036670 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036672 exec 5>>config.log
36673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36674 # would make configure fail if this is the last instruction.
36675 $ac_cs_success || { (exit 1); exit 1; }
36676fi
36677
John Criswell12399a12003-09-30 15:55:44 +000036678#
36679# CONFIG_SUBDIRS section.
36680#
36681if test "$no_recursion" != yes; then
36682
36683 # Remove --cache-file and --srcdir arguments so they do not pile up.
36684 ac_sub_configure_args=
36685 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036686 eval "set x $ac_configure_args"
36687 shift
36688 for ac_arg
36689 do
John Criswell12399a12003-09-30 15:55:44 +000036690 if test -n "$ac_prev"; then
36691 ac_prev=
36692 continue
36693 fi
36694 case $ac_arg in
36695 -cache-file | --cache-file | --cache-fil | --cache-fi \
36696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36697 ac_prev=cache_file ;;
36698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36700 | --c=*)
36701 ;;
36702 --config-cache | -C)
36703 ;;
36704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36705 ac_prev=srcdir ;;
36706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36707 ;;
36708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36709 ac_prev=prefix ;;
36710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36711 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036712 *)
36713 case $ac_arg in
36714 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36715 esac
36716 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036717 esac
36718 done
36719
36720 # Always prepend --prefix to ensure using the same prefix
36721 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036722 ac_arg="--prefix=$prefix"
36723 case $ac_arg in
36724 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36725 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036726 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036727
36728 ac_popdir=`pwd`
36729 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36730
36731 # Do not complain, so a configure script can configure whichever
36732 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036733 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036734
Reid Spencera773bd52006-08-04 18:18:08 +000036735 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36736 echo "$as_me:$LINENO: $ac_msg" >&5
36737 echo "$ac_msg" >&6
36738 { as_dir="$ac_dir"
36739 case $as_dir in #(
36740 -*) as_dir=./$as_dir;;
36741 esac
36742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036743 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036744 while :; do
36745 case $as_dir in #(
36746 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36747 *) as_qdir=$as_dir;;
36748 esac
36749 as_dirs="'$as_qdir' $as_dirs"
36750 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036752 X"$as_dir" : 'X\(//\)[^/]' \| \
36753 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036755echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36757 s//\1/
36758 q
36759 }
36760 /^X\(\/\/\)[^/].*/{
36761 s//\1/
36762 q
36763 }
36764 /^X\(\/\/\)$/{
36765 s//\1/
36766 q
36767 }
36768 /^X\(\/\).*/{
36769 s//\1/
36770 q
36771 }
36772 s/.*/./; q'`
36773 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036774 done
Reid Spencera773bd52006-08-04 18:18:08 +000036775 test -z "$as_dirs" || eval "mkdir $as_dirs"
36776 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36777echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036778 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036779 ac_builddir=.
36780
Reid Spencera773bd52006-08-04 18:18:08 +000036781case "$ac_dir" in
36782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36783*)
John Criswell12399a12003-09-30 15:55:44 +000036784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036785 # A ".." for each directory in $ac_dir_suffix.
36786 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36787 case $ac_top_builddir_sub in
36788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36790 esac ;;
36791esac
36792ac_abs_top_builddir=$ac_pwd
36793ac_abs_builddir=$ac_pwd$ac_dir_suffix
36794# for backward compatibility:
36795ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036796
36797case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036798 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036799 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036800 ac_top_srcdir=$ac_top_builddir_sub
36801 ac_abs_top_srcdir=$ac_pwd ;;
36802 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036803 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036804 ac_top_srcdir=$srcdir
36805 ac_abs_top_srcdir=$srcdir ;;
36806 *) # Relative name.
36807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36808 ac_top_srcdir=$ac_top_build_prefix$srcdir
36809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036810esac
Reid Spencera773bd52006-08-04 18:18:08 +000036811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036812
36813
Reid Spencera773bd52006-08-04 18:18:08 +000036814 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036815
36816 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036817 if test -f "$ac_srcdir/configure.gnu"; then
36818 ac_sub_configure=$ac_srcdir/configure.gnu
36819 elif test -f "$ac_srcdir/configure"; then
36820 ac_sub_configure=$ac_srcdir/configure
36821 elif test -f "$ac_srcdir/configure.in"; then
36822 # This should be Cygnus configure.
36823 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036824 else
36825 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36826echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36827 ac_sub_configure=
36828 fi
36829
36830 # The recursion is here.
36831 if test -n "$ac_sub_configure"; then
36832 # Make the cache file name correct relative to the subdirectory.
36833 case $cache_file in
36834 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036835 *) # Relative name.
36836 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036837 esac
36838
Reid Spencera773bd52006-08-04 18:18:08 +000036839 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36840echo "$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 +000036841 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036842 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36843 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036844 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036845echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36846 { (exit 1); exit 1; }; }
36847 fi
36848
Reid Spencera773bd52006-08-04 18:18:08 +000036849 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036850 done
36851fi
36852