blob: e671329b792f6d78a218e5f72dd84858964899b5 [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
Daniel Dunbar1fce9482009-11-04 04:32:50 +0000851OPTIMIZE_OPTION
Reid Spencera773bd52006-08-04 18:18:08 +0000852EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000853BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000854ENABLE_LLVMC_DYNAMIC
855ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000856CXX
857CXXFLAGS
858ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000859NM
860ifGNUmake
861LN_S
862CMP
863CP
864DATE
865FIND
866MKDIR
867MV
868RANLIB
869RM
870SED
871TAR
872BINPWD
873GRAPHVIZ
874DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000875FDP
876NEATO
877TWOPI
878CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000879GV
880DOTTY
881PERL
882HAVE_PERL
883INSTALL_PROGRAM
884INSTALL_SCRIPT
885INSTALL_DATA
886BZIP2
887DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000888GROFF
889GZIP
890POD2HTML
891POD2MAN
892RUNTEST
893TCLSH
894ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000895OCAMLC
896OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000897OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000898OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000899GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000900INSTALL_LTDL_TRUE
901INSTALL_LTDL_FALSE
902CONVENIENCE_LTDL_TRUE
903CONVENIENCE_LTDL_FALSE
904LIBADD_DL
905ECHO
906AR
907STRIP
908CXXCPP
909F77
910FFLAGS
911ac_ct_F77
912LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000913LLVMGCCCOMMAND
914LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000915LLVMGCC
916LLVMGXX
Julien Lerouge3a96a4d2009-10-26 20:00:35 +0000917NO_VARIADIC_MACROS
918NO_MISSING_FIELD_INITIALIZERS
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000919USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000920USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000921HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000922HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000923ALLOCA
924MMAP_FILE
925LLVMCC1
926LLVMCC1PLUS
927LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000928LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000929LLVMGCC_VERSION
930LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000931LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000932SHLIBEXT
933LLVM_PREFIX
934LLVM_BINDIR
935LLVM_LIBDIR
936LLVM_DATADIR
937LLVM_DOCSDIR
938LLVM_ETCDIR
939LLVM_INCLUDEDIR
940LLVM_INFODIR
941LLVM_MANDIR
942LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000943BINDINGS_TO_BUILD
944ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000945OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000946ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000947RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000948RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000949LIBOBJS
950LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000951ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000952 ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958CPPFLAGS
959CPP
960CXX
961CXXFLAGS
962CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000963CXXCPP
964F77
965FFLAGS'
966ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000967projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000968projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000969projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000970projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000971projects/llvm-reopt
972projects/llvm-gcc
973projects/llvm-java
974projects/llvm-tv
975projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000976projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000977projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000978
979# Initialize some variables set by options.
980ac_init_help=
981ac_init_version=false
982# The variables have the same names as the options, with
983# dashes changed to underlines.
984cache_file=/dev/null
985exec_prefix=NONE
986no_create=
987no_recursion=
988prefix=NONE
989program_prefix=NONE
990program_suffix=NONE
991program_transform_name=s,x,x,
992silent=
993site=
994srcdir=
995verbose=
996x_includes=NONE
997x_libraries=NONE
998
999# Installation directory options.
1000# These are left unexpanded so users can "make install exec_prefix=/foo"
1001# and all the variables that are supposed to be based on exec_prefix
1002# by default will actually change.
1003# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001004# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001005bindir='${exec_prefix}/bin'
1006sbindir='${exec_prefix}/sbin'
1007libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001008datarootdir='${prefix}/share'
1009datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001010sysconfdir='${prefix}/etc'
1011sharedstatedir='${prefix}/com'
1012localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001013includedir='${prefix}/include'
1014oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016infodir='${datarootdir}/info'
1017htmldir='${docdir}'
1018dvidir='${docdir}'
1019pdfdir='${docdir}'
1020psdir='${docdir}'
1021libdir='${exec_prefix}/lib'
1022localedir='${datarootdir}/locale'
1023mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001026ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001027for ac_option
1028do
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001031 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001032 ac_prev=
1033 continue
1034 fi
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1042
Reid Spencera773bd52006-08-04 18:18:08 +00001043 case $ac_dashdash$ac_option in
1044 --)
1045 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001046
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1051
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1056
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1063
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1066
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001068 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001070 datadir=$ac_optarg ;;
1071
Reid Spencera773bd52006-08-04 18:18:08 +00001072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1078
John Criswell7a73b802003-06-30 21:59:07 +00001079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=no ;;
1087
1088 -docdir | --docdir | --docdi | --doc | --do)
1089 ac_prev=docdir ;;
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1092
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 ac_prev=dvidir ;;
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001097
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001105 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001106
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1115
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1119
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1126
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1131
Reid Spencera773bd52006-08-04 18:18:08 +00001132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1137
John Criswell7a73b802003-06-30 21:59:07 +00001138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1144
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1149
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1154
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1161
Reid Spencera773bd52006-08-04 18:18:08 +00001162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1166
John Criswell7a73b802003-06-30 21:59:07 +00001167 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001172 localstatedir=$ac_optarg ;;
1173
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1178
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1182
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1186
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1190
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1199
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1204
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1211
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1218
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1235
Reid Spencera773bd52006-08-04 18:18:08 +00001236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1240
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1245
John Criswell7a73b802003-06-30 21:59:07 +00001246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1249
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1255
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1266
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1271
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1276
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1283
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1288
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1291
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1294
1295 -with-* | --with-*)
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001301 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001302 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001303
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001310 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001311 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001342 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1360fi
1361
Reid Spencera773bd52006-08-04 18:18:08 +00001362# Be sure to have absolute directory names.
1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001367do
Reid Spencera773bd52006-08-04 18:18:08 +00001368 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001369 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001372 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001375done
1376
1377# There might be people who depend on the old broken behavior: `$host'
1378# used to hold the argument of --host etc.
1379# FIXME: To remove some day.
1380build=$build_alias
1381host=$host_alias
1382target=$target_alias
1383
1384# FIXME: To remove some day.
1385if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393fi
1394
1395ac_tool_prefix=
1396test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398test "$silent" = yes && exec 6>/dev/null
1399
1400
Reid Spencera773bd52006-08-04 18:18:08 +00001401ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402ac_ls_di=`ls -di .` &&
1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1409
1410
John Criswell7a73b802003-06-30 21:59:07 +00001411# Find the source files, if location was not specified.
1412if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001416$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001420echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)[^/].*/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\).*/{
1434 s//\1/
1435 q
1436 }
1437 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001438 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001439 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001440 srcdir=..
1441 fi
1442else
1443 ac_srcdir_defaulted=no
1444fi
Reid Spencera773bd52006-08-04 18:18:08 +00001445if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001448 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001449fi
Reid Spencera773bd52006-08-04 18:18:08 +00001450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001453 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001454 pwd)`
1455# When building in place, set srcdir=.
1456if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458fi
1459# Remove unnecessary trailing slashes from srcdir.
1460# Double slashes in file names in object file debugging info
1461# mess up M-x gdb in Emacs.
1462case $srcdir in
1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464esac
1465for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470done
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472#
1473# Report the --help message.
1474#
1475if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001479\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486Defaults for the options are specified in brackets.
1487
1488Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
John Criswell7a73b802003-06-30 21:59:07 +00001499Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001501 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001503 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001504
1505By default, \`make install' will install all the files in
1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508for instance \`--prefix=\$HOME'.
1509
1510For better control, use the options below.
1511
1512Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001532_ACEOF
1533
1534 cat <<\_ACEOF
1535
1536System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1540_ACEOF
1541fi
1542
1543if test -n "$ac_init_help"; then
1544 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001545 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001546 esac
1547 cat <<\_ACEOF
1548
1549Optional Features:
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001552 --enable-optimized Compile with optimizations enabled (default is NO)
1553 --enable-profiling Compile with profiling enabled (default is NO)
1554 --enable-assertions Compile with assertion checks enabled (default is
1555 YES)
David Greenea696d242007-06-28 19:36:08 +00001556 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001557 Compile with expensive debug checks enabled (default
1558 is NO)
1559 --enable-debug-runtime Build runtime libs with debug symbols (default is
1560 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001561 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1562 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001564 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001565 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001566 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001567 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1574 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001577 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1579 Win32)
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001582 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001583 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001584 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001587 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001588 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001589 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001590 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001591
1592Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1596 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001597 --with-llvmgcc Specify location of llvm-gcc driver (default
1598 searches PATH)
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1600 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001601 --with-optimize-option Select the compiler options to use for optimized
1602 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001603 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1605 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001606 --with-binutils-include Specify path to binutils/include/ containing
1607 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001608 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1611 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001612 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001613 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001614 --with-oprofile=<prefix>
1615 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001618 CC C compiler command
1619 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001624 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001625 CXX C++ compiler command
1626 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001627 CXXCPP C++ preprocessor
1628 F77 Fortran 77 compiler command
1629 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
1634Report bugs to <llvmbugs@cs.uiuc.edu>.
1635_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001636ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001642 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001643 ac_builddir=.
1644
Reid Spencera773bd52006-08-04 18:18:08 +00001645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
John Criswell7a73b802003-06-30 21:59:07 +00001648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001660
1661case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001662 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001663 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001667 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001674esac
Reid Spencera773bd52006-08-04 18:18:08 +00001675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001676
Reid Spencera773bd52006-08-04 18:18:08 +00001677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001685 else
1686 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001689 done
1690fi
1691
Reid Spencera773bd52006-08-04 18:18:08 +00001692test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001693if $ac_init_version; then
1694 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001695llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001696generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001697
Reid Spencera773bd52006-08-04 18:18:08 +00001698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702
Tanya Lattnerc2264592009-08-22 21:01:26 +00001703Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001704_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001705 exit
John Criswell7a73b802003-06-30 21:59:07 +00001706fi
Reid Spencera773bd52006-08-04 18:18:08 +00001707cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001708This file contains any messages produced by compilers while
1709running configure, to aid debugging if configure makes a mistake.
1710
Tanya Lattner953042b2009-08-22 04:37:30 +00001711It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001712generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001713
1714 $ $0 $@
1715
1716_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001717exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001718{
1719cat <<_ASUNAME
1720## --------- ##
1721## Platform. ##
1722## --------- ##
1723
1724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729
1730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1732
1733/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1734/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001736/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001737/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1738/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1739/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1740
1741_ASUNAME
1742
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 echo "PATH: $as_dir"
1749done
Reid Spencera773bd52006-08-04 18:18:08 +00001750IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001751
1752} >&5
1753
1754cat >&5 <<_ACEOF
1755
1756
1757## ----------- ##
1758## Core tests. ##
1759## ----------- ##
1760
1761_ACEOF
1762
1763
1764# Keep a trace of the command line.
1765# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001766# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001767# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001768# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001769ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001770ac_configure_args0=
1771ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001772ac_must_keep_next=false
1773for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001774do
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 for ac_arg
1776 do
1777 case $ac_arg in
1778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780 | -silent | --silent | --silen | --sile | --sil)
1781 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001782 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 esac
1785 case $ac_pass in
1786 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1787 2)
1788 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1789 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001790 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001792 case $ac_arg in
1793 *=* | --config-cache | -C | -disable-* | --disable-* \
1794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796 | -with-* | --with-* | -without-* | --without-* | --x)
1797 case "$ac_configure_args0 " in
1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799 esac
1800 ;;
1801 -* ) ac_must_keep_next=true ;;
1802 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001803 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001804 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ;;
1806 esac
1807 done
John Criswell7a73b802003-06-30 21:59:07 +00001808done
John Criswell0c38eaf2003-09-10 15:17:25 +00001809$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1810$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 +00001811
1812# When interrupted or exit'd, cleanup temporary files, and complete
1813# config.log. We remove comments because anyway the quotes in there
1814# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001815# WARNING: Use '\'' to represent an apostrophe within the trap.
1816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001817trap 'exit_status=$?
1818 # Save into config.log some information that might help in debugging.
1819 {
1820 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001821
John Criswell7a73b802003-06-30 21:59:07 +00001822 cat <<\_ASBOX
1823## ---------------- ##
1824## Cache variables. ##
1825## ---------------- ##
1826_ASBOX
1827 echo
1828 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001829(
1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831 eval ac_val=\$$ac_var
1832 case $ac_val in #(
1833 *${as_nl}*)
1834 case $ac_var in #(
1835 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1836echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1837 esac
1838 case $ac_var in #(
1839 _ | IFS | as_nl) ;; #(
1840 *) $as_unset $ac_var ;;
1841 esac ;;
1842 esac
1843 done
John Criswell7a73b802003-06-30 21:59:07 +00001844 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1846 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001847 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001848 "s/'\''/'\''\\\\'\'''\''/g;
1849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1850 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001851 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001854 esac |
1855 sort
1856)
John Criswell7a73b802003-06-30 21:59:07 +00001857 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001858
1859 cat <<\_ASBOX
1860## ----------------- ##
1861## Output variables. ##
1862## ----------------- ##
1863_ASBOX
1864 echo
1865 for ac_var in $ac_subst_vars
1866 do
Reid Spencera773bd52006-08-04 18:18:08 +00001867 eval ac_val=\$$ac_var
1868 case $ac_val in
1869 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 esac
1871 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001872 done | sort
1873 echo
1874
1875 if test -n "$ac_subst_files"; then
1876 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001877## ------------------- ##
1878## File substitutions. ##
1879## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001880_ASBOX
1881 echo
1882 for ac_var in $ac_subst_files
1883 do
Reid Spencera773bd52006-08-04 18:18:08 +00001884 eval ac_val=\$$ac_var
1885 case $ac_val in
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887 esac
1888 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001889 done | sort
1890 echo
1891 fi
1892
John Criswell7a73b802003-06-30 21:59:07 +00001893 if test -s confdefs.h; then
1894 cat <<\_ASBOX
1895## ----------- ##
1896## confdefs.h. ##
1897## ----------- ##
1898_ASBOX
1899 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001900 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001901 echo
1902 fi
1903 test "$ac_signal" != 0 &&
1904 echo "$as_me: caught signal $ac_signal"
1905 echo "$as_me: exit $exit_status"
1906 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001907 rm -f core *.core core.conftest.* &&
1908 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001909 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001910' 0
John Criswell7a73b802003-06-30 21:59:07 +00001911for ac_signal in 1 2 13 15; do
1912 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1913done
1914ac_signal=0
1915
1916# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001917rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001918
1919# Predefined preprocessor variables.
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_NAME "$PACKAGE_NAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_VERSION "$PACKAGE_VERSION"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_STRING "$PACKAGE_STRING"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943_ACEOF
1944
1945
1946# Let the site file select an alternate cache file if it wants to.
1947# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001948if test -n "$CONFIG_SITE"; then
1949 set x "$CONFIG_SITE"
1950elif test "x$prefix" != xNONE; then
1951 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1952else
1953 set x "$ac_default_prefix/share/config.site" \
1954 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001955fi
Reid Spencera773bd52006-08-04 18:18:08 +00001956shift
1957for ac_site_file
1958do
John Criswell7a73b802003-06-30 21:59:07 +00001959 if test -r "$ac_site_file"; then
1960 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961echo "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1963 . "$ac_site_file"
1964 fi
1965done
1966
1967if test -r "$cache_file"; then
1968 # Some versions of bash will fail to source /dev/null (special
1969 # files actually), so we avoid doing that.
1970 if test -f "$cache_file"; then
1971 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972echo "$as_me: loading cache $cache_file" >&6;}
1973 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001974 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1975 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001976 esac
1977 fi
1978else
1979 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980echo "$as_me: creating cache $cache_file" >&6;}
1981 >$cache_file
1982fi
1983
1984# Check that the precious variables saved in the cache have kept the same
1985# value.
1986ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001987for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001992 case $ac_old_set,$ac_new_set in
1993 set,)
1994 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted=: ;;
1997 ,set)
1998 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2001 ,);;
2002 *)
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002004 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002005echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002006 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002007echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002008 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002009echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002010 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002011 fi;;
2012 esac
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2015 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002016 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002017 *) ac_arg=$ac_var=$ac_new_val ;;
2018 esac
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022 esac
2023 fi
2024done
2025if $ac_cache_corrupted; then
2026 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030 { (exit 1); exit 1; }; }
2031fi
2032
Reid Spencera773bd52006-08-04 18:18:08 +00002033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057ac_ext=c
2058ac_cpp='$CPP $CPPFLAGS'
2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062
2063
2064
Tanya Lattnerc2264592009-08-22 21:01:26 +00002065LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066
2067
2068
2069
2070
2071
2072
John Criswell7a73b802003-06-30 21:59:07 +00002073ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002074for ac_dir in autoconf "$srcdir"/autoconf; do
2075 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002076 ac_aux_dir=$ac_dir
2077 ac_install_sh="$ac_aux_dir/install-sh -c"
2078 break
Reid Spencera773bd52006-08-04 18:18:08 +00002079 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/install.sh -c"
2082 break
Reid Spencera773bd52006-08-04 18:18:08 +00002083 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/shtool install -c"
2086 break
2087 fi
2088done
2089if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002090 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2091echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002092 { (exit 1); exit 1; }; }
2093fi
Reid Spencera773bd52006-08-04 18:18:08 +00002094
2095# These three variables are undocumented and unsupported,
2096# and are intended to be withdrawn in a future Autoconf release.
2097# They can cause serious problems if a builder's source tree is in a directory
2098# whose full name contains unusual characters.
2099ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2100ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2101ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2102
John Criswell7a73b802003-06-30 21:59:07 +00002103
John Criswell392aaa32003-07-22 19:18:09 +00002104
Reid Spencer2706f8c2004-09-19 23:53:36 +00002105if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002106 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2107 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002108echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110 fi
John Criswell93e1c722003-09-15 17:04:06 +00002111fi
2112
John Criswell33a911a2003-11-25 20:36:46 +00002113for i in `ls ${srcdir}/projects`
2114do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 if test -d ${srcdir}/projects/${i} ; then
2116 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 CVS) ;;
2118 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002120 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002124 # llvm-test is the old name of the test-suite, kept here for backwards
2125 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002126 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002128 test-suite) subdirs="$subdirs projects/test-suite"
2129 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002130 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002131;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002132 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002133 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002134 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002135 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002136 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002137 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002138 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002139 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002140 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002141 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002142 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002143 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002144 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002145 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2146echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002147 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002148 esac
John Criswell33a911a2003-11-25 20:36:46 +00002149 fi
2150done
John Criswell559a6c12003-09-30 16:31:48 +00002151
John Criswell7a73b802003-06-30 21:59:07 +00002152
2153# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002154$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2155 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2156echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002157 { (exit 1); exit 1; }; }
2158
Reid Spencera773bd52006-08-04 18:18:08 +00002159{ echo "$as_me:$LINENO: checking build system type" >&5
2160echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002161if test "${ac_cv_build+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
Reid Spencera773bd52006-08-04 18:18:08 +00002164 ac_build_alias=$build_alias
2165test "x$ac_build_alias" = x &&
2166 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2167test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002168 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2169echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2170 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002171ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
2175
2176fi
Reid Spencera773bd52006-08-04 18:18:08 +00002177{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2178echo "${ECHO_T}$ac_cv_build" >&6; }
2179case $ac_cv_build in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2182echo "$as_me: error: invalid value of canonical build" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
John Criswell7a73b802003-06-30 21:59:07 +00002185build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_build
2188shift
2189build_cpu=$1
2190build_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194build_os=$*
2195IFS=$ac_save_IFS
2196case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198
Reid Spencera773bd52006-08-04 18:18:08 +00002199{ echo "$as_me:$LINENO: checking host system type" >&5
2200echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002201if test "${ac_cv_host+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
Reid Spencera773bd52006-08-04 18:18:08 +00002204 if test "x$host_alias" = x; then
2205 ac_cv_host=$ac_cv_build
2206else
2207 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002211fi
John Criswell7a73b802003-06-30 21:59:07 +00002212
2213fi
Reid Spencera773bd52006-08-04 18:18:08 +00002214{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2215echo "${ECHO_T}$ac_cv_host" >&6; }
2216case $ac_cv_host in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2219echo "$as_me: error: invalid value of canonical host" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
John Criswell7a73b802003-06-30 21:59:07 +00002222host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_host
2225shift
2226host_cpu=$1
2227host_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231host_os=$*
2232IFS=$ac_save_IFS
2233case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235
Reid Spencera773bd52006-08-04 18:18:08 +00002236{ echo "$as_me:$LINENO: checking target system type" >&5
2237echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002238if test "${ac_cv_target+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
Reid Spencera773bd52006-08-04 18:18:08 +00002241 if test "x$target_alias" = x; then
2242 ac_cv_target=$ac_cv_host
2243else
2244 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2245 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2246echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002248fi
John Criswell7a73b802003-06-30 21:59:07 +00002249
2250fi
Reid Spencera773bd52006-08-04 18:18:08 +00002251{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2252echo "${ECHO_T}$ac_cv_target" >&6; }
2253case $ac_cv_target in
2254*-*-*) ;;
2255*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2256echo "$as_me: error: invalid value of canonical target" >&2;}
2257 { (exit 1); exit 1; }; };;
2258esac
John Criswell7a73b802003-06-30 21:59:07 +00002259target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002260ac_save_IFS=$IFS; IFS='-'
2261set x $ac_cv_target
2262shift
2263target_cpu=$1
2264target_vendor=$2
2265shift; shift
2266# Remember, the first character of IFS is used to create $*,
2267# except with old shells:
2268target_os=$*
2269IFS=$ac_save_IFS
2270case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002271
2272
2273# The aliases save the names the user supplied, while $host etc.
2274# will get canonicalized.
2275test -n "$target_alias" &&
2276 test "$program_prefix$program_suffix$program_transform_name" = \
2277 NONENONEs,x,x, &&
2278 program_prefix=${target_alias}-
2279
Reid Spencera773bd52006-08-04 18:18:08 +00002280{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2281echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002285 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="AIX"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002291 *-*-irix*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="IRIX"
2295 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="Cygwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002303 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="Darwin"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="FreeBSD"
2310 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002311 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002314 llvm_cv_os_type="OpenBSD"
2315 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002316 *-*-netbsd*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="NetBSD"
2320 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002321 *-*-dragonfly*)
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="DragonFly"
2325 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002326 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002329 llvm_cv_os_type="HP-UX"
2330 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Interix"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002337 llvm_cv_link_all_option="-Wl,--whole-archive"
2338 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 llvm_cv_os_type="Linux"
2340 llvm_cv_platform_type="Unix" ;;
2341 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002342 llvm_cv_link_all_option="-Wl,-z,allextract"
2343 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 llvm_cv_os_type="SunOS"
2345 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002346 *-*-auroraux*)
2347 llvm_cv_link_all_option="-Wl,-z,allextract"
2348 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2349 llvm_cv_os_type="AuroraUX"
2350 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002354 llvm_cv_os_type="Win32"
2355 llvm_cv_platform_type="Win32" ;;
2356 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359 llvm_cv_os_type="MingW"
2360 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002361 *-*-haiku*)
2362 llvm_cv_link_all_option="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364 llvm_cv_os_type="Haiku"
2365 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002366 *-unknown-eabi*)
2367 llvm_cv_link_all_option="-Wl,--whole-archive"
2368 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2369 llvm_cv_os_type="Freestanding"
2370 llvm_cv_platform_type="Unix" ;;
2371 *-unknown-elf*)
2372 llvm_cv_link_all_option="-Wl,--whole-archive"
2373 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2374 llvm_cv_os_type="Freestanding"
2375 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002376 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002377 llvm_cv_link_all_option=""
2378 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002379 llvm_cv_os_type="Unknown"
2380 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002381esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382fi
Reid Spencera773bd52006-08-04 18:18:08 +00002383{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2384echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002385
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002386{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2387echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2388if test "${llvm_cv_target_os_type+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 case $target in
2392 *-*-aix*)
2393 llvm_cv_target_os_type="AIX" ;;
2394 *-*-irix*)
2395 llvm_cv_target_os_type="IRIX" ;;
2396 *-*-cygwin*)
2397 llvm_cv_target_os_type="Cygwin" ;;
2398 *-*-darwin*)
2399 llvm_cv_target_os_type="Darwin" ;;
2400 *-*-freebsd*)
2401 llvm_cv_target_os_type="FreeBSD" ;;
2402 *-*-openbsd*)
2403 llvm_cv_target_os_type="OpenBSD" ;;
2404 *-*-netbsd*)
2405 llvm_cv_target_os_type="NetBSD" ;;
2406 *-*-dragonfly*)
2407 llvm_cv_target_os_type="DragonFly" ;;
2408 *-*-hpux*)
2409 llvm_cv_target_os_type="HP-UX" ;;
2410 *-*-interix*)
2411 llvm_cv_target_os_type="Interix" ;;
2412 *-*-linux*)
2413 llvm_cv_target_os_type="Linux" ;;
2414 *-*-solaris*)
2415 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002416 *-*-auroraux*)
2417 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002418 *-*-win32*)
2419 llvm_cv_target_os_type="Win32" ;;
2420 *-*-mingw*)
2421 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002422 *-*-haiku*)
2423 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002424 *-unknown-eabi*)
2425 llvm_cv_target_os_type="Freestanding" ;;
2426 *)
2427 llvm_cv_target_os_type="Unknown" ;;
2428esac
2429fi
2430{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2431echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2432
Reid Spencer7b3e8512004-12-24 06:29:05 +00002433if test "$llvm_cv_os_type" = "Unknown" ; then
2434 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2435echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002436 { (exit 1); exit 1; }; }
2437fi
2438
Reid Spencer7b3e8512004-12-24 06:29:05 +00002439OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002441HOST_OS=$llvm_cv_os_type
2442
2443TARGET_OS=$llvm_cv_target_os_type
2444
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445
Reid Spencera773bd52006-08-04 18:18:08 +00002446LINKALL=$llvm_cv_link_all_option
2447
2448NOLINKALL=$llvm_cv_no_link_all_option
2449
2450
Reid Spencer7b3e8512004-12-24 06:29:05 +00002451case $llvm_cv_platform_type in
2452 Unix)
2453
2454cat >>confdefs.h <<\_ACEOF
2455#define LLVM_ON_UNIX 1
2456_ACEOF
2457
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002458 LLVM_ON_UNIX=1
2459
2460 LLVM_ON_WIN32=0
2461
Reid Spencer7b3e8512004-12-24 06:29:05 +00002462 ;;
2463 Win32)
2464
2465cat >>confdefs.h <<\_ACEOF
2466#define LLVM_ON_WIN32 1
2467_ACEOF
2468
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002469 LLVM_ON_UNIX=0
2470
2471 LLVM_ON_WIN32=1
2472
Reid Spencer7b3e8512004-12-24 06:29:05 +00002473 ;;
2474esac
2475
Reid Spencera773bd52006-08-04 18:18:08 +00002476{ echo "$as_me:$LINENO: checking target architecture" >&5
2477echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478if test "${llvm_cv_target_arch+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002482 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002483 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002484 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2485 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002486 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002487 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002488 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002489 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002490 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002491 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002492 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002493 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002494 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002495esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496fi
Reid Spencera773bd52006-08-04 18:18:08 +00002497{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2498echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500if test "$llvm_cv_target_arch" = "Unknown" ; then
2501 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2502echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2503fi
John Criswell76595452003-07-01 22:07:39 +00002504
Nick Lewycky83fc4472009-09-29 05:48:51 +00002505# Determine the LLVM native architecture for the target
2506case "$llvm_cv_target_arch" in
2507 x86) LLVM_NATIVE_ARCH="X86" ;;
2508 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2509 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2510esac
2511
2512ARCH=$llvm_cv_target_arch
2513
2514
2515ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002520if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525if test "${ac_cv_prog_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002537 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 +00002538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543done
Reid Spencera773bd52006-08-04 18:18:08 +00002544IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545
2546fi
2547fi
2548CC=$ac_cv_prog_CC
2549if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002550 { echo "$as_me:$LINENO: result: $CC" >&5
2551echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552else
Reid Spencera773bd52006-08-04 18:18:08 +00002553 { echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002555fi
2556
Reid Spencera773bd52006-08-04 18:18:08 +00002557
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558fi
2559if test -z "$ac_cv_prog_CC"; then
2560 ac_ct_CC=$CC
2561 # Extract the first word of "gcc", so it can be a program name with args.
2562set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568 if test -n "$ac_ct_CC"; then
2569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002577 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 +00002578 ac_cv_prog_ac_ct_CC="gcc"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582done
2583done
Reid Spencera773bd52006-08-04 18:18:08 +00002584IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585
2586fi
2587fi
2588ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2591echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592else
Reid Spencera773bd52006-08-04 18:18:08 +00002593 { echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595fi
2596
Reid Spencera773bd52006-08-04 18:18:08 +00002597 if test "x$ac_ct_CC" = x; then
2598 CC=""
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601yes:)
2602{ echo "$as_me:$LINENO: 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." >&5
2605echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606whose name does not start with the host triplet. If you think this
2607configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608ac_tool_warned=yes ;;
2609esac
2610 CC=$ac_ct_CC
2611 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612else
2613 CC="$ac_cv_prog_CC"
2614fi
2615
2616if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002617 if test -n "$ac_tool_prefix"; then
2618 # 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 +00002619set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002634 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 +00002635 ac_cv_prog_CC="${ac_tool_prefix}cc"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640done
Reid Spencera773bd52006-08-04 18:18:08 +00002641IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642
2643fi
2644fi
2645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002647 { echo "$as_me:$LINENO: result: $CC" >&5
2648echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649else
Reid Spencera773bd52006-08-04 18:18:08 +00002650 { echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652fi
2653
Reid Spencera773bd52006-08-04 18:18:08 +00002654
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656fi
2657if test -z "$CC"; then
2658 # Extract the first word of "cc", so it can be a program name with args.
2659set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667else
2668 ac_prog_rejected=no
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002675 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 +00002676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677 ac_prog_rejected=yes
2678 continue
2679 fi
2680 ac_cv_prog_CC="cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
Reid Spencera773bd52006-08-04 18:18:08 +00002686IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687
2688if test $ac_prog_rejected = yes; then
2689 # We found a bogon in the path, so make sure we never use it.
2690 set dummy $ac_cv_prog_CC
2691 shift
2692 if test $# != 0; then
2693 # We chose a different compiler from the bogus one.
2694 # However, it has the same basename, so the bogon will be chosen
2695 # first if we set CC to just the basename; use the full file name.
2696 shift
2697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698 fi
2699fi
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002704 { echo "$as_me:$LINENO: result: $CC" >&5
2705echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706else
Reid Spencera773bd52006-08-04 18:18:08 +00002707 { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709fi
2710
Reid Spencera773bd52006-08-04 18:18:08 +00002711
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002712fi
2713if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002715 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002716 do
2717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002733 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 +00002734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738done
2739done
Reid Spencera773bd52006-08-04 18:18:08 +00002740IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002741
2742fi
2743fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002744CC=$ac_cv_prog_CC
2745if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002746 { echo "$as_me:$LINENO: result: $CC" >&5
2747echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002748else
Reid Spencera773bd52006-08-04 18:18:08 +00002749 { echo "$as_me:$LINENO: result: no" >&5
2750echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002751fi
2752
Reid Spencera773bd52006-08-04 18:18:08 +00002753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002755 done
2756fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757if test -z "$CC"; then
2758 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002759 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002760do
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002777 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 +00002778 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
Reid Spencera773bd52006-08-04 18:18:08 +00002784IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002785
2786fi
2787fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002788ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002792else
Reid Spencera773bd52006-08-04 18:18:08 +00002793 { echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002795fi
2796
Reid Spencera773bd52006-08-04 18:18:08 +00002797
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002798 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002799done
John Criswell7a73b802003-06-30 21:59:07 +00002800
Reid Spencera773bd52006-08-04 18:18:08 +00002801 if test "x$ac_ct_CC" = x; then
2802 CC=""
2803 else
2804 case $cross_compiling:$ac_tool_warned in
2805yes:)
2806{ echo "$as_me:$LINENO: 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." >&5
2809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2810whose name does not start with the host triplet. If you think this
2811configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2812ac_tool_warned=yes ;;
2813esac
2814 CC=$ac_ct_CC
2815 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002816fi
2817
John Criswell7a73b802003-06-30 21:59:07 +00002818fi
2819
2820
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002821test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: no acceptable C compiler found in \$PATH
2824See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2826
John Criswell7a73b802003-06-30 21:59:07 +00002827# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002828echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002829ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002830{ (ac_try="$ac_compiler --version >&5"
2831case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002840{ (ac_try="$ac_compiler -v >&5"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002850{ (ac_try="$ac_compiler -V >&5"
2851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860
2861cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002867
John Criswell7a73b802003-06-30 21:59:07 +00002868int
2869main ()
2870{
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002877ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002878# Try to create an executable without -o first, disregard a.out.
2879# It will help us diagnose broken compilers, and finding out an intuition
2880# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002881{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2882echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002883ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002884#
2885# List of possible output files, starting from the most likely.
2886# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2887# only as a last resort. b.out is created by i960 compilers.
2888ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2889#
2890# The IRIX 6 linker writes into existing files which may not be
2891# executable, retaining their permissions. Remove them first so a
2892# subsequent execution test works.
2893ac_rmfiles=
2894for ac_file in $ac_files
2895do
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2899 esac
2900done
2901rm -f $ac_rmfiles
2902
2903if { (ac_try="$ac_link_default"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915# in a Makefile. We should not override ac_cv_exeext if it was cached,
2916# so that the user can short-circuit this test for compilers unknown to
2917# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002918for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002919do
2920 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002921 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002923 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002924 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002925 # We found the default executable, but exeext='' is most
2926 # certainly right.
2927 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002928 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930 then :; else
2931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 fi
2933 # We set ac_cv_exeext here because the later test for it is not
2934 # safe: cross compilers may not add the suffix if given an `-o'
2935 # argument, so we may need to know it at that point already.
2936 # Even if this section looks crufty: it has the advantage of
2937 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002938 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002939 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002940 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 esac
2942done
Reid Spencera773bd52006-08-04 18:18:08 +00002943test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
John Criswell7a73b802003-06-30 21:59:07 +00002945else
2946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002947sed 's/^/| /' conftest.$ac_ext >&5
2948
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002949{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002950See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002951echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002952See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002953 { (exit 77); exit 77; }; }
2954fi
2955
2956ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002957{ echo "$as_me:$LINENO: result: $ac_file" >&5
2958echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959
Reid Spencera773bd52006-08-04 18:18:08 +00002960# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002961# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002962{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002964# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965# If not cross compiling, check that we can run a simple program.
2966if test "$cross_compiling" != yes; then
2967 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 cross_compiling=no
2978 else
2979 if test "$cross_compiling" = maybe; then
2980 cross_compiling=yes
2981 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982 { { echo "$as_me:$LINENO: 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." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002985echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002986If you meant to cross compile, use \`--host'.
2987See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002988 { (exit 1); exit 1; }; }
2989 fi
2990 fi
2991fi
Reid Spencera773bd52006-08-04 18:18:08 +00002992{ echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002994
John Criswell0c38eaf2003-09-10 15:17:25 +00002995rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002996ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002997# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002998# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002999{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3000echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3001{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3002echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003003
Reid Spencera773bd52006-08-04 18:18:08 +00003004{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3005echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3006if { (ac_try="$ac_link"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3017# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3018# work properly (i.e., refer to `conftest.exe'), while it won't with
3019# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003020for ac_file in conftest.exe conftest conftest.*; do
3021 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003022 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003024 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003025 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003026 * ) break;;
3027 esac
3028done
3029else
John Criswell0c38eaf2003-09-10 15:17:25 +00003030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3031See \`config.log' for more details." >&5
3032echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3033See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003034 { (exit 1); exit 1; }; }
3035fi
3036
3037rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003038{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3039echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003040
3041rm -f conftest.$ac_ext
3042EXEEXT=$ac_cv_exeext
3043ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003044{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3045echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003046if test "${ac_cv_objext+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003055
John Criswell7a73b802003-06-30 21:59:07 +00003056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003075 for ac_file in conftest.o conftest.obj conftest.*; do
3076 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003077 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3080 break;;
3081 esac
3082done
3083else
3084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088See \`config.log' for more details." >&5
3089echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003091 { (exit 1); exit 1; }; }
3092fi
3093
3094rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095fi
Reid Spencera773bd52006-08-04 18:18:08 +00003096{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003098OBJEXT=$ac_cv_objext
3099ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003100{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003102if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003111
John Criswell7a73b802003-06-30 21:59:07 +00003112int
3113main ()
3114{
3115#ifndef __GNUC__
3116 choke me
3117#endif
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003157 ac_compiler_gnu=yes
3158else
3159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003160sed 's/^/| /' conftest.$ac_ext >&5
3161
Reid Spencera773bd52006-08-04 18:18:08 +00003162 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003163fi
Reid Spencera773bd52006-08-04 18:18:08 +00003164
3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003166ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003167
3168fi
Reid Spencera773bd52006-08-04 18:18:08 +00003169{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003171GCC=`test $ac_compiler_gnu = yes && echo yes`
3172ac_test_CFLAGS=${CFLAGS+set}
3173ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003174{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3175echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003176if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
Reid Spencera773bd52006-08-04 18:18:08 +00003179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3181 ac_cv_prog_cc_g=no
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003189
John Criswell7a73b802003-06-30 21:59:07 +00003190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003233else
3234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003235sed 's/^/| /' conftest.$ac_ext >&5
3236
Reid Spencera773bd52006-08-04 18:18:08 +00003237 CFLAGS=""
3238 cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (ac_try="$ac_compile"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271esac
3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_try") 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003287 :
3288else
3289 echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300
3301int
3302main ()
3303{
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309rm -f conftest.$ac_objext
3310if { (ac_try="$ac_compile"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003343 ac_cv_prog_cc_g=yes
3344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348
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
John Criswell7a73b802003-06-30 21:59:07 +00003352fi
Reid Spencera773bd52006-08-04 18:18:08 +00003353
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355fi
3356
3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_c_werror_flag=$ac_save_c_werror_flag
3359fi
3360{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3366 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003367 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003369 fi
3370else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371 if test "$GCC" = yes; then
3372 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003373 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003375 fi
3376fi
Reid Spencera773bd52006-08-04 18:18:08 +00003377{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3378echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3379if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
Reid Spencera773bd52006-08-04 18:18:08 +00003382 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383ac_save_CC=$CC
3384cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390#include <stdarg.h>
3391#include <stdio.h>
3392#include <sys/types.h>
3393#include <sys/stat.h>
3394/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395struct buf { int x; };
3396FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397static char *e (p, i)
3398 char **p;
3399 int i;
3400{
3401 return p[i];
3402}
3403static char *f (char * (*g) (char **, int), char **p, ...)
3404{
3405 char *s;
3406 va_list v;
3407 va_start (v,p);
3408 s = g (p, va_arg (v,int));
3409 va_end (v);
3410 return s;
3411}
3412
3413/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003416 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003419 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421
Reid Spencera773bd52006-08-04 18:18:08 +00003422/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423 inside strings and character constants. */
3424#define FOO(x) 'x'
3425int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427int test (int i, double x);
3428struct s1 {int (*f) (int a);};
3429struct s2 {int (*f) (double a);};
3430int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431int argc;
3432char **argv;
3433int
3434main ()
3435{
3436return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3437 ;
3438 return 0;
3439}
3440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003441for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443do
3444 CC="$ac_save_CC $ac_arg"
3445 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003446if { (ac_try="$ac_compile"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003479 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480else
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
Reid Spencera773bd52006-08-04 18:18:08 +00003484
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003485fi
Reid Spencera773bd52006-08-04 18:18:08 +00003486
3487rm -f core conftest.err conftest.$ac_objext
3488 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489done
Reid Spencera773bd52006-08-04 18:18:08 +00003490rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003491CC=$ac_save_CC
3492
3493fi
Reid Spencera773bd52006-08-04 18:18:08 +00003494# AC_CACHE_VAL
3495case "x$ac_cv_prog_cc_c89" in
3496 x)
3497 { echo "$as_me:$LINENO: result: none needed" >&5
3498echo "${ECHO_T}none needed" >&6; } ;;
3499 xno)
3500 { echo "$as_me:$LINENO: result: unsupported" >&5
3501echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003502 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003503 CC="$CC $ac_cv_prog_cc_c89"
3504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3505echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506esac
3507
John Criswell0c38eaf2003-09-10 15:17:25 +00003508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003509ac_ext=c
3510ac_cpp='$CPP $CPPFLAGS'
3511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003521{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3522echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523# On Suns, sometimes $CPP names a directory.
3524if test -n "$CPP" && test -d "$CPP"; then
3525 CPP=
3526fi
3527if test -z "$CPP"; then
3528 if test "${ac_cv_prog_CPP+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 # Double quotes because CPP needs to be expanded
3532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533 do
3534 ac_preproc_ok=false
3535for ac_c_preproc_warn_flag in '' yes
3536do
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#ifdef __STDC__
3550# include <limits.h>
3551#else
3552# include <assert.h>
3553#endif
3554 Syntax error
3555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572 else
3573 ac_cpp_err=
3574 fi
3575else
3576 ac_cpp_err=yes
3577fi
3578if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 :
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 # Broken: fails on valid input.
3585continue
3586fi
Reid Spencera773bd52006-08-04 18:18:08 +00003587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588rm -f conftest.err conftest.$ac_ext
3589
Reid Spencera773bd52006-08-04 18:18:08 +00003590 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
3598#include <ac_nonexistent.h>
3599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003600if { (ac_try="$ac_cpp conftest.$ac_ext"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 else
3617 ac_cpp_err=
3618 fi
3619else
3620 ac_cpp_err=yes
3621fi
3622if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623 # Broken: success on invalid input.
3624continue
3625else
3626 echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 # Passes both tests.
3630ac_preproc_ok=:
3631break
3632fi
Reid Spencera773bd52006-08-04 18:18:08 +00003633
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634rm -f conftest.err conftest.$ac_ext
3635
3636done
3637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638rm -f conftest.err conftest.$ac_ext
3639if $ac_preproc_ok; then
3640 break
3641fi
3642
3643 done
3644 ac_cv_prog_CPP=$CPP
3645
3646fi
3647 CPP=$ac_cv_prog_CPP
3648else
3649 ac_cv_prog_CPP=$CPP
3650fi
Reid Spencera773bd52006-08-04 18:18:08 +00003651{ echo "$as_me:$LINENO: result: $CPP" >&5
3652echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003653ac_preproc_ok=false
3654for ac_c_preproc_warn_flag in '' yes
3655do
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3663/* confdefs.h. */
3664_ACEOF
3665cat confdefs.h >>conftest.$ac_ext
3666cat >>conftest.$ac_ext <<_ACEOF
3667/* end confdefs.h. */
3668#ifdef __STDC__
3669# include <limits.h>
3670#else
3671# include <assert.h>
3672#endif
3673 Syntax error
3674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003675if { (ac_try="$ac_cpp conftest.$ac_ext"
3676case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003687 (exit $ac_status); } >/dev/null; then
3688 if test -s conftest.err; then
3689 ac_cpp_err=$ac_c_preproc_warn_flag
3690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3691 else
3692 ac_cpp_err=
3693 fi
3694else
3695 ac_cpp_err=yes
3696fi
3697if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003698 :
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 # Broken: fails on valid input.
3704continue
3705fi
Reid Spencera773bd52006-08-04 18:18:08 +00003706
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003707rm -f conftest.err conftest.$ac_ext
3708
Reid Spencera773bd52006-08-04 18:18:08 +00003709 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003710 # can be detected and how.
3711 cat >conftest.$ac_ext <<_ACEOF
3712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
3717#include <ac_nonexistent.h>
3718_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003719if { (ac_try="$ac_cpp conftest.$ac_ext"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3735 else
3736 ac_cpp_err=
3737 fi
3738else
3739 ac_cpp_err=yes
3740fi
3741if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003742 # Broken: success on invalid input.
3743continue
3744else
3745 echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 # Passes both tests.
3749ac_preproc_ok=:
3750break
3751fi
Reid Spencera773bd52006-08-04 18:18:08 +00003752
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003753rm -f conftest.err conftest.$ac_ext
3754
3755done
3756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757rm -f conftest.err conftest.$ac_ext
3758if $ac_preproc_ok; then
3759 :
3760else
3761 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3762See \`config.log' for more details." >&5
3763echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3764See \`config.log' for more details." >&2;}
3765 { (exit 1); exit 1; }; }
3766fi
3767
John Criswell7a73b802003-06-30 21:59:07 +00003768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
John Criswell7a73b802003-06-30 21:59:07 +00003774
Reid Spencera773bd52006-08-04 18:18:08 +00003775{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003777if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
Reid Spencera773bd52006-08-04 18:18:08 +00003780 # Extract the first word of "grep ggrep" to use in msg output
3781if test -z "$GREP"; then
3782set dummy grep ggrep; ac_prog_name=$2
3783if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
Reid Spencera773bd52006-08-04 18:18:08 +00003786 ac_path_GREP_found=false
3787# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003793 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003794 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003796 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799case `"$ac_path_GREP" --version 2>&1` in
3800*GNU*)
3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802*)
3803 ac_count=0
3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805 while :
3806 do
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 ac_count=`expr $ac_count + 1`
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP="$ac_path_GREP"
3817 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003818 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3821 done
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823esac
3824
3825
3826 $ac_path_GREP_found && break 3
3827 done
3828done
3829
3830done
3831IFS=$as_save_IFS
3832
3833
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003834fi
Reid Spencera773bd52006-08-04 18:18:08 +00003835
3836GREP="$ac_cv_path_GREP"
3837if test -z "$GREP"; then
3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840 { (exit 1); exit 1; }; }
3841fi
3842
3843else
3844 ac_cv_path_GREP=$GREP
3845fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003846
John Criswell7a73b802003-06-30 21:59:07 +00003847
Reid Spencera773bd52006-08-04 18:18:08 +00003848fi
3849{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3852
3853
3854{ echo "$as_me:$LINENO: checking for egrep" >&5
3855echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860 then ac_cv_path_EGREP="$GREP -E"
3861 else
3862 # Extract the first word of "egrep" to use in msg output
3863if test -z "$EGREP"; then
3864set dummy egrep; ac_prog_name=$2
3865if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 ac_path_EGREP_found=false
3869# Loop through the user's path and test for each of PROGNAME-LIST
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003878 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881case `"$ac_path_EGREP" --version 2>&1` in
3882*GNU*)
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884*)
3885 ac_count=0
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887 while :
3888 do
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 ac_count=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3900 fi
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3903 done
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905esac
3906
3907
3908 $ac_path_EGREP_found && break 3
3909 done
3910done
3911
3912done
3913IFS=$as_save_IFS
3914
3915
3916fi
3917
3918EGREP="$ac_cv_path_EGREP"
3919if test -z "$EGREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3923fi
3924
3925else
3926 ac_cv_path_EGREP=$EGREP
3927fi
3928
3929
3930 fi
3931fi
3932{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP="$ac_cv_path_EGREP"
3935
3936
3937{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3938echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003939if test "${ac_cv_header_stdc+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003948#include <stdlib.h>
3949#include <stdarg.h>
3950#include <string.h>
3951#include <float.h>
3952
John Criswell0c38eaf2003-09-10 15:17:25 +00003953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
John Criswell7a73b802003-06-30 21:59:07 +00003960_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003961rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003962if { (ac_try="$ac_compile"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979esac
3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003995 ac_cv_header_stdc=yes
3996else
3997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003998sed 's/^/| /' conftest.$ac_ext >&5
3999
Reid Spencera773bd52006-08-04 18:18:08 +00004000 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004001fi
Reid Spencera773bd52006-08-04 18:18:08 +00004002
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004004
4005if test $ac_cv_header_stdc = yes; then
4006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4007 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004008/* confdefs.h. */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004013#include <string.h>
4014
4015_ACEOF
4016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004017 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004018 :
4019else
4020 ac_cv_header_stdc=no
4021fi
4022rm -f conftest*
4023
4024fi
4025
4026if test $ac_cv_header_stdc = yes; then
4027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004029/* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004034#include <stdlib.h>
4035
4036_ACEOF
4037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004038 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004039 :
4040else
4041 ac_cv_header_stdc=no
4042fi
4043rm -f conftest*
4044
4045fi
4046
4047if test $ac_cv_header_stdc = yes; then
4048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4049 if test "$cross_compiling" = yes; then
4050 :
4051else
4052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004058#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004059#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004060#if ((' ' & 0x0FF) == 0x020)
4061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4063#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004064# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004065 (('a' <= (c) && (c) <= 'i') \
4066 || ('j' <= (c) && (c) <= 'r') \
4067 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069#endif
4070
4071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4072int
4073main ()
4074{
4075 int i;
4076 for (i = 0; i < 256; i++)
4077 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004078 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004079 return 2;
4080 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004081}
4082_ACEOF
4083rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004084if { (ac_try="$ac_link"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 :
4104else
4105 echo "$as_me: program exited with status $ac_status" >&5
4106echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004107sed 's/^/| /' conftest.$ac_ext >&5
4108
John Criswell7a73b802003-06-30 21:59:07 +00004109( exit $ac_status )
4110ac_cv_header_stdc=no
4111fi
Reid Spencera773bd52006-08-04 18:18:08 +00004112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113fi
4114
4115
John Criswell7a73b802003-06-30 21:59:07 +00004116fi
4117fi
Reid Spencera773bd52006-08-04 18:18:08 +00004118{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4119echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004120if test $ac_cv_header_stdc = yes; then
4121
4122cat >>confdefs.h <<\_ACEOF
4123#define STDC_HEADERS 1
4124_ACEOF
4125
4126fi
4127
Reid Spencera773bd52006-08-04 18:18:08 +00004128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4139 inttypes.h stdint.h unistd.h
4140do
4141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4142{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153$ac_includes_default
4154
4155#include <$ac_header>
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (ac_try="$ac_compile"
4159case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004191 eval "$as_ac_Header=yes"
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 eval "$as_ac_Header=no"
4197fi
4198
4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200fi
4201ac_res=`eval echo '${'$as_ac_Header'}'`
4202 { echo "$as_me:$LINENO: result: $ac_res" >&5
4203echo "${ECHO_T}$ac_res" >&6; }
4204if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h <<_ACEOF
4206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207_ACEOF
4208
4209fi
4210
4211done
4212
4213
4214{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4215echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4216if test "${ac_cv_c_bigendian+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 # See if sys/param.h defines the BYTE_ORDER macro.
4220cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226#include <sys/types.h>
4227#include <sys/param.h>
4228
4229int
4230main ()
4231{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004232#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004233 bogus endian macros
4234#endif
4235
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext
4241if { (ac_try="$ac_compile"
4242case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004274 # It does; now see whether it defined to BIG_ENDIAN or not.
4275cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <sys/types.h>
4282#include <sys/param.h>
4283
4284int
4285main ()
4286{
4287#if BYTE_ORDER != BIG_ENDIAN
4288 not big endian
4289#endif
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295rm -f conftest.$ac_objext
4296if { (ac_try="$ac_compile"
4297case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004329 ac_cv_c_bigendian=yes
4330else
4331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ac_cv_c_bigendian=no
4335fi
4336
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 # It does not; compile a test program.
4343if test "$cross_compiling" = yes; then
4344 # try to guess the endianness by grepping values into an object file
4345 ac_cv_c_bigendian=unknown
4346 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */
4352short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4353short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4354void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4355short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4356short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4357void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4358int
4359main ()
4360{
4361 _ascii (); _ebcdic ();
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366rm -f conftest.$ac_objext
4367if { (ac_try="$ac_compile"
4368case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371esac
4372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4381 { (case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_try") 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004400 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4401 ac_cv_c_bigendian=yes
4402fi
4403if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4404 if test "$ac_cv_c_bigendian" = unknown; then
4405 ac_cv_c_bigendian=no
4406 else
4407 # finding both strings is unlikely to happen, but who knows?
4408 ac_cv_c_bigendian=unknown
4409 fi
4410fi
4411else
4412 echo "$as_me: failed program was:" >&5
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415
4416fi
4417
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419else
4420 cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426$ac_includes_default
4427int
4428main ()
4429{
4430
4431 /* Are we little or big endian? From Harbison&Steele. */
4432 union
4433 {
4434 long int l;
4435 char c[sizeof (long int)];
4436 } u;
4437 u.l = 1;
4438 return u.c[sizeof (long int) - 1] == 1;
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest$ac_exeext
4445if { (ac_try="$ac_link"
4446case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449esac
4450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_link") 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
4459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_c_bigendian=no
4465else
4466 echo "$as_me: program exited with status $ac_status" >&5
4467echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470( exit $ac_status )
4471ac_cv_c_bigendian=yes
4472fi
4473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4474fi
4475
4476
4477fi
4478
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480fi
4481{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4482echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4483case $ac_cv_c_bigendian in
4484 yes)
4485 ENDIAN=big
4486 ;;
4487 no)
4488 ENDIAN=little
4489 ;;
4490 *)
4491 { { echo "$as_me:$LINENO: error: unknown endianness
4492presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4493echo "$as_me: error: unknown endianness
4494presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4495 { (exit 1); exit 1; }; } ;;
4496esac
4497
4498
4499if test "$cross_compiling" = yes; then
4500 LLVM_CROSS_COMPILING=1
4501
4502
4503{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4504echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4505if test "${ac_cv_build_exeext+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4509 ac_cv_build_exeext=.exe
4510else
4511 ac_build_prefix=${build_alias}-
4512
4513 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4514set dummy ${ac_build_prefix}gcc; ac_word=$2
4515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4517if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 if test -n "$BUILD_CC"; then
4521 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004529 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 +00004530 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534done
4535done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540BUILD_CC=$ac_cv_prog_BUILD_CC
4541if test -n "$BUILD_CC"; then
4542 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543echo "${ECHO_T}$BUILD_CC" >&6; }
4544else
4545 { echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6; }
4547fi
4548
4549
4550 if test -z "$BUILD_CC"; then
4551 # Extract the first word of "gcc", so it can be a program name with args.
4552set dummy gcc; ac_word=$2
4553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 if test -n "$BUILD_CC"; then
4559 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004567 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 +00004568 ac_cv_prog_BUILD_CC="gcc"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578BUILD_CC=$ac_cv_prog_BUILD_CC
4579if test -n "$BUILD_CC"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4581echo "${ECHO_T}$BUILD_CC" >&6; }
4582else
4583 { echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; }
4585fi
4586
4587
4588 if test -z "$BUILD_CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590set dummy cc; ac_word=$2
4591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 if test -n "$BUILD_CC"; then
4597 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4598else
4599 ac_prog_rejected=no
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004606 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 +00004607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4609 continue
4610 fi
4611 ac_cv_prog_BUILD_CC="cc"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616done
4617IFS=$as_save_IFS
4618
4619if test $ac_prog_rejected = yes; then
4620 # We found a bogon in the path, so make sure we never use it.
4621 set dummy $ac_cv_prog_BUILD_CC
4622 shift
4623 if test $# != 0; then
4624 # We chose a different compiler from the bogus one.
4625 # However, it has the same basename, so the bogon will be chosen
4626 # first if we set BUILD_CC to just the basename; use the full file name.
4627 shift
4628 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4629 fi
4630fi
4631fi
4632fi
4633BUILD_CC=$ac_cv_prog_BUILD_CC
4634if test -n "$BUILD_CC"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636echo "${ECHO_T}$BUILD_CC" >&6; }
4637else
4638 { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643 fi
4644 fi
4645 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4646echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4647 { (exit 1); exit 1; }; }
4648 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4649 rm -f conftest*
4650 echo 'int main () { return 0; }' > conftest.$ac_ext
4651 ac_cv_build_exeext=
4652 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4653 (eval $ac_build_link) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; then
4657 for file in conftest.*; do
4658 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004659 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004660 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4661 esac
4662 done
4663 else
4664 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4665echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4666 { (exit 1); exit 1; }; }
4667 fi
4668 rm -f conftest*
4669 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4670fi
4671fi
4672
4673BUILD_EXEEXT=""
4674test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4675{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4676echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4677ac_build_exeext=$BUILD_EXEEXT
4678
Jim Grosbach673612e2008-10-02 22:56:44 +00004679 ac_build_prefix=${build_alias}-
4680 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4681set dummy ${ac_build_prefix}g++; ac_word=$2
4682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687 if test -n "$BUILD_CXX"; then
4688 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004696 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 +00004697 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708if test -n "$BUILD_CXX"; then
4709 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710echo "${ECHO_T}$BUILD_CXX" >&6; }
4711else
4712 { echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6; }
4714fi
4715
4716
4717 if test -z "$BUILD_CXX"; then
4718 # Extract the first word of "g++", so it can be a program name with args.
4719set dummy g++; ac_word=$2
4720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725 if test -n "$BUILD_CXX"; then
4726 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4727else
4728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004734 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 +00004735 ac_cv_prog_BUILD_CXX="g++"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739done
4740done
4741IFS=$as_save_IFS
4742
4743fi
4744fi
4745BUILD_CXX=$ac_cv_prog_BUILD_CXX
4746if test -n "$BUILD_CXX"; then
4747 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4748echo "${ECHO_T}$BUILD_CXX" >&6; }
4749else
4750 { echo "$as_me:$LINENO: result: no" >&5
4751echo "${ECHO_T}no" >&6; }
4752fi
4753
4754
4755 if test -z "$BUILD_CXX"; then
4756 # Extract the first word of "c++", so it can be a program name with args.
4757set dummy c++; ac_word=$2
4758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 if test -n "$BUILD_CXX"; then
4764 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4765else
4766 ac_prog_rejected=no
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004773 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 +00004774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4775 ac_prog_rejected=yes
4776 continue
4777 fi
4778 ac_cv_prog_BUILD_CXX="c++"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782done
4783done
4784IFS=$as_save_IFS
4785
4786if test $ac_prog_rejected = yes; then
4787 # We found a bogon in the path, so make sure we never use it.
4788 set dummy $ac_cv_prog_BUILD_CXX
4789 shift
4790 if test $# != 0; then
4791 # We chose a different compiler from the bogus one.
4792 # However, it has the same basename, so the bogon will be chosen
4793 # first if we set BUILD_CXX to just the basename; use the full file name.
4794 shift
4795 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4796 fi
4797fi
4798fi
4799fi
4800BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801if test -n "$BUILD_CXX"; then
4802 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803echo "${ECHO_T}$BUILD_CXX" >&6; }
4804else
4805 { echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6; }
4807fi
4808
4809
4810 fi
4811 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004812else
4813 LLVM_CROSS_COMPILING=0
4814
4815fi
4816
Nick Lewycky5b28f862009-04-10 05:18:27 +00004817if 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 +00004818 cvsbuild="yes"
4819 optimize="no"
4820 CVSBUILD=CVSBUILD=1
4821
4822else
4823 cvsbuild="no"
4824 optimize="yes"
4825fi
4826
4827
4828# Check whether --enable-optimized was given.
4829if test "${enable_optimized+set}" = set; then
4830 enableval=$enable_optimized;
4831else
4832 enableval=$optimize
4833fi
4834
4835if test ${enableval} = "no" ; then
4836 ENABLE_OPTIMIZED=
4837
4838else
4839 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4840
4841fi
4842
David Greene2a5a12c2009-04-17 14:50:39 +00004843# Check whether --enable-profiling was given.
4844if test "${enable_profiling+set}" = set; then
4845 enableval=$enable_profiling;
4846else
4847 enableval="no"
4848fi
4849
4850if test ${enableval} = "no" ; then
4851 ENABLE_PROFILING=
4852
4853else
4854 ENABLE_PROFILING=ENABLE_PROFILING=1
4855
4856fi
4857
Reid Spencera773bd52006-08-04 18:18:08 +00004858# Check whether --enable-assertions was given.
4859if test "${enable_assertions+set}" = set; then
4860 enableval=$enable_assertions;
4861else
4862 enableval="yes"
4863fi
4864
4865if test ${enableval} = "yes" ; then
4866 DISABLE_ASSERTIONS=
4867
4868else
4869 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4870
4871fi
4872
David Greenea696d242007-06-28 19:36:08 +00004873# Check whether --enable-expensive-checks was given.
4874if test "${enable_expensive_checks+set}" = set; then
4875 enableval=$enable_expensive_checks;
4876else
4877 enableval="no"
4878fi
4879
4880if test ${enableval} = "yes" ; then
4881 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4882
4883 EXPENSIVE_CHECKS=yes
4884
4885else
4886 ENABLE_EXPENSIVE_CHECKS=
4887
4888 EXPENSIVE_CHECKS=no
4889
4890fi
4891
Reid Spencer8b2e1412006-11-17 03:32:33 +00004892# Check whether --enable-debug-runtime was given.
4893if test "${enable_debug_runtime+set}" = set; then
4894 enableval=$enable_debug_runtime;
4895else
4896 enableval=no
4897fi
4898
4899if test ${enableval} = "no" ; then
4900 DEBUG_RUNTIME=
4901
4902else
4903 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4904
4905fi
4906
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004907# Check whether --enable-debug-symbols was given.
4908if test "${enable_debug_symbols+set}" = set; then
4909 enableval=$enable_debug_symbols;
4910else
4911 enableval=no
4912fi
4913
4914if test ${enableval} = "no" ; then
4915 DEBUG_SYMBOLS=
4916
4917else
4918 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4919
4920fi
4921
Reid Spencera773bd52006-08-04 18:18:08 +00004922# Check whether --enable-jit was given.
4923if test "${enable_jit+set}" = set; then
4924 enableval=$enable_jit;
4925else
4926 enableval=default
4927fi
4928
4929if test ${enableval} = "no"
4930then
4931 JIT=
4932
4933else
4934 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004935 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004936 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004937 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004938 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004939 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004940 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004941 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004942 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004943 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004944 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004945 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004946 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004947 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004948 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004949 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004950 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004951 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004952 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004953 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004954 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004955 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004956 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004957 Blackfin) TARGET_HAS_JIT=0
4958 ;;
4959 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004960 ;;
4961 esac
4962fi
4963
4964# Check whether --enable-doxygen was given.
4965if test "${enable_doxygen+set}" = set; then
4966 enableval=$enable_doxygen;
4967else
4968 enableval=default
4969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_DOXYGEN=1
4973 ;;
4974 no) ENABLE_DOXYGEN=0
4975 ;;
4976 default) ENABLE_DOXYGEN=0
4977 ;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
4983# Check whether --enable-threads was given.
4984if test "${enable_threads+set}" = set; then
4985 enableval=$enable_threads;
4986else
Reid Spencer65c5d752006-11-05 17:08:18 +00004987 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004988fi
4989
4990case "$enableval" in
4991 yes) ENABLE_THREADS=1
4992 ;;
4993 no) ENABLE_THREADS=0
4994 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004995 default) ENABLE_THREADS=1
4996 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4998echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000esac
5001
Owen Andersona8603702009-05-19 22:18:56 +00005002cat >>confdefs.h <<_ACEOF
5003#define ENABLE_THREADS $ENABLE_THREADS
5004_ACEOF
5005
5006
Reid Spencer89b0d992006-12-16 22:07:52 +00005007# Check whether --enable-pic was given.
5008if test "${enable_pic+set}" = set; then
5009 enableval=$enable_pic;
5010else
5011 enableval=default
5012fi
5013
5014case "$enableval" in
5015 yes) ENABLE_PIC=1
5016 ;;
5017 no) ENABLE_PIC=0
5018 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005019 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005020 ;;
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5022echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024esac
5025
5026cat >>confdefs.h <<_ACEOF
5027#define ENABLE_PIC $ENABLE_PIC
5028_ACEOF
5029
5030
Reid Spencera773bd52006-08-04 18:18:08 +00005031TARGETS_TO_BUILD=""
5032# Check whether --enable-targets was given.
5033if test "${enable_targets+set}" = set; then
5034 enableval=$enable_targets;
5035else
5036 enableval=all
5037fi
5038
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005039if test "$enableval" = host-only ; then
5040 enableval=host
5041fi
Reid Spencera773bd52006-08-04 18:18:08 +00005042case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005043 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 +00005044 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5045 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005046 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5047 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5048 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5049 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5050 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5051 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5052 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5053 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5054 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5055 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5056 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5057 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5058 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5059 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5060 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5061 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005062 host) case "$llvm_cv_target_arch" in
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5072 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5073 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5074 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5075 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5076 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5077echo "$as_me: error: Can not set target to build" >&2;}
5078 { (exit 1); exit 1; }; } ;;
5079 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005080 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5081echo "$as_me: error: Unrecognized target $a_target" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5083 esac
5084 done
5085 ;;
5086esac
Reid Spencera773bd52006-08-04 18:18:08 +00005087TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5088
5089
Douglas Gregor0711c302009-06-17 00:43:20 +00005090# Determine whether we are building LLVM support for the native architecture.
5091# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5092for a_target in $TARGETS_TO_BUILD; do
5093 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005094 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005095
5096cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005097#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005098_ACEOF
5099
5100 fi
5101done
5102
Douglas Gregor1555a232009-06-16 20:12:29 +00005103# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005104# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005105LLVM_ENUM_TARGETS=""
5106LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005107LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005108for target_to_build in $TARGETS_TO_BUILD; do
5109 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5111 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5112 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005113 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5114 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5115 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005116done
5117
5118
5119
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005120
Reid Spencer65c5d752006-11-05 17:08:18 +00005121# Check whether --enable-cbe-printf-a was given.
5122if test "${enable_cbe_printf_a+set}" = set; then
5123 enableval=$enable_cbe_printf_a;
5124else
5125 enableval=default
5126fi
5127
5128case "$enableval" in
5129 yes) ENABLE_CBE_PRINTF_A=1
5130 ;;
5131 no) ENABLE_CBE_PRINTF_A=0
5132 ;;
5133 default) ENABLE_CBE_PRINTF_A=1
5134 ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5136echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140cat >>confdefs.h <<_ACEOF
5141#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5142_ACEOF
5143
5144
Reid Spencera773bd52006-08-04 18:18:08 +00005145
5146# Check whether --with-llvmgccdir was given.
5147if test "${with_llvmgccdir+set}" = set; then
5148 withval=$with_llvmgccdir;
5149else
5150 withval=default
5151fi
5152
5153case "$withval" in
5154 default) WITH_LLVMGCCDIR=default ;;
5155 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5157echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159esac
5160
5161
Devang Patel5d28b882007-12-04 22:54:47 +00005162# Check whether --with-llvmgcc was given.
5163if test "${with_llvmgcc+set}" = set; then
5164 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5165 WITH_LLVMGCCDIR=""
5166fi
5167
5168
5169
5170# Check whether --with-llvmgxx was given.
5171if test "${with_llvmgxx+set}" = set; then
5172 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5173 WITH_LLVMGCCDIR=""
5174fi
5175
Douglas Gregor01746742009-05-11 18:05:52 +00005176
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005177if test -n "$LLVMGCC"; then
5178 LLVMGCCCOMMAND="$LLVMGCC"
5179fi
5180
5181if test -n "$LLVMGXX"; then
5182 LLVMGXXCOMMAND="$LLVMGXX"
5183fi
Devang Patel5d28b882007-12-04 22:54:47 +00005184
5185if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5186 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5187echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5188 { (exit 1); exit 1; }; };
5189fi
5190
5191if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5192 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5193echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5194 { (exit 1); exit 1; }; };
5195fi
5196
5197
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005198# Check whether --with-optimize-option was given.
5199if test "${with_optimize_option+set}" = set; then
5200 withval=$with_optimize_option;
5201else
5202 withval=default
5203fi
5204
5205{ echo "$as_me:$LINENO: checking optimization flags" >&5
5206echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5207case "$withval" in
5208 default)
5209 case "$llvm_cv_os_type" in
5210 MingW) optimize_option=-O3 ;;
5211 *) optimize_option=-O2 ;;
5212 esac ;;
5213 *) optimize_option="$withval" ;;
5214esac
5215OPTIMIZE_OPTION=$optimize_option
5216
5217{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5218echo "${ECHO_T}$optimize_option" >&6; }
5219
5220
Reid Spencera773bd52006-08-04 18:18:08 +00005221# Check whether --with-extra-options was given.
5222if test "${with_extra_options+set}" = set; then
5223 withval=$with_extra_options;
5224else
5225 withval=default
5226fi
5227
5228case "$withval" in
5229 default) EXTRA_OPTIONS= ;;
5230 *) EXTRA_OPTIONS=$withval ;;
5231esac
5232EXTRA_OPTIONS=$EXTRA_OPTIONS
5233
5234
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005235# Check whether --enable-bindings was given.
5236if test "${enable_bindings+set}" = set; then
5237 enableval=$enable_bindings;
5238else
5239 enableval=default
5240fi
5241
5242BINDINGS_TO_BUILD=""
5243case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005244 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005245 all ) BINDINGS_TO_BUILD="ocaml" ;;
5246 none | no) BINDINGS_TO_BUILD="" ;;
5247 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5248 case "$a_binding" in
5249 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5250 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5251echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253 esac
5254 done
5255 ;;
5256esac
5257
Reid Spencera773bd52006-08-04 18:18:08 +00005258
Gordon Henriksenf0915682007-10-02 16:42:22 +00005259# Check whether --with-ocaml-libdir was given.
5260if test "${with_ocaml_libdir+set}" = set; then
5261 withval=$with_ocaml_libdir;
5262else
5263 withval=auto
5264fi
5265
5266case "$withval" in
5267 auto) with_ocaml_libdir="$withval" ;;
5268 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5270echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5272esac
5273
5274
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005275# Check whether --with-binutils-include was given.
5276if test "${with_binutils_include+set}" = set; then
5277 withval=$with_binutils_include;
5278else
5279 withval=default
5280fi
5281
5282case "$withval" in
5283 default) WITH_BINUTILS_INCDIR=default ;;
5284 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5285 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5286echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5288esac
5289if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5290 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5291
5292 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5293 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5294 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5295echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5296 { (exit 1); exit 1; }; };
5297 fi
5298fi
5299
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005300# Check whether --enable-libffi was given.
5301if test "${enable_libffi+set}" = set; then
5302 enableval=$enable_libffi;
5303else
5304 enableval=yes
5305fi
5306
5307case "$enableval" in
5308 yes) llvm_cv_enable_libffi="yes" ;;
5309 no) llvm_cv_enable_libffi="no" ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5313esac
5314
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005315if test "$llvm_cv_os_type" = "Win32" ; then
5316 llvmc_dynamic="yes"
5317else
5318 llvmc_dynamic="no"
5319fi
5320
5321# Check whether --enable-llvmc-dynamic was given.
5322if test "${enable_llvmc_dynamic+set}" = set; then
5323 enableval=$enable_llvmc_dynamic;
5324else
5325 enableval=$llvmc_dynamic
5326fi
5327
5328if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5330
5331else
5332 ENABLE_LLVMC_DYNAMIC=
5333
5334fi
5335
5336# Check whether --enable-llvmc-dynamic-plugins was given.
5337if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5338 enableval=$enable_llvmc_dynamic_plugins;
5339else
5340 enableval=yes
5341fi
5342
5343if test ${enableval} = "yes" ; then
5344 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5345
5346else
5347 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5348
5349fi
5350
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005351
Reid Spencera773bd52006-08-04 18:18:08 +00005352ac_ext=c
5353ac_cpp='$CPP $CPPFLAGS'
5354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5359# On Suns, sometimes $CPP names a directory.
5360if test -n "$CPP" && test -d "$CPP"; then
5361 CPP=
5362fi
5363if test -z "$CPP"; then
5364 if test "${ac_cv_prog_CPP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 # Double quotes because CPP needs to be expanded
5368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5369 do
5370 ac_preproc_ok=false
5371for ac_c_preproc_warn_flag in '' yes
5372do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385#ifdef __STDC__
5386# include <limits.h>
5387#else
5388# include <assert.h>
5389#endif
5390 Syntax error
5391_ACEOF
5392if { (ac_try="$ac_cpp conftest.$ac_ext"
5393case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5410 fi
5411else
5412 ac_cpp_err=yes
5413fi
5414if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005415 :
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 # Broken: fails on valid input.
5421continue
5422fi
5423
5424rm -f conftest.err conftest.$ac_ext
5425
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434#include <ac_nonexistent.h>
5435_ACEOF
5436if { (ac_try="$ac_cpp conftest.$ac_ext"
5437case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_c_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452 else
5453 ac_cpp_err=
5454 fi
5455else
5456 ac_cpp_err=yes
5457fi
5458if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005459 # Broken: success on invalid input.
5460continue
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 # Passes both tests.
5466ac_preproc_ok=:
5467break
5468fi
5469
5470rm -f conftest.err conftest.$ac_ext
5471
5472done
5473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474rm -f conftest.err conftest.$ac_ext
5475if $ac_preproc_ok; then
5476 break
5477fi
5478
5479 done
5480 ac_cv_prog_CPP=$CPP
5481
5482fi
5483 CPP=$ac_cv_prog_CPP
5484else
5485 ac_cv_prog_CPP=$CPP
5486fi
5487{ echo "$as_me:$LINENO: result: $CPP" >&5
5488echo "${ECHO_T}$CPP" >&6; }
5489ac_preproc_ok=false
5490for ac_c_preproc_warn_flag in '' yes
5491do
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
5498 cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h. */
5504#ifdef __STDC__
5505# include <limits.h>
5506#else
5507# include <assert.h>
5508#endif
5509 Syntax error
5510_ACEOF
5511if { (ac_try="$ac_cpp conftest.$ac_ext"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527 else
5528 ac_cpp_err=
5529 fi
5530else
5531 ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005534 :
5535else
5536 echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 # Broken: fails on valid input.
5540continue
5541fi
5542
5543rm -f conftest.err conftest.$ac_ext
5544
5545 # OK, works on sane cases. Now check whether nonexistent headers
5546 # can be detected and how.
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
5553#include <ac_nonexistent.h>
5554_ACEOF
5555if { (ac_try="$ac_cpp conftest.$ac_ext"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005567 (exit $ac_status); } >/dev/null; then
5568 if test -s conftest.err; then
5569 ac_cpp_err=$ac_c_preproc_warn_flag
5570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571 else
5572 ac_cpp_err=
5573 fi
5574else
5575 ac_cpp_err=yes
5576fi
5577if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005578 # Broken: success on invalid input.
5579continue
5580else
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584 # Passes both tests.
5585ac_preproc_ok=:
5586break
5587fi
5588
5589rm -f conftest.err conftest.$ac_ext
5590
5591done
5592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593rm -f conftest.err conftest.$ac_ext
5594if $ac_preproc_ok; then
5595 :
5596else
5597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598See \`config.log' for more details." >&5
5599echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5602fi
5603
5604ac_ext=c
5605ac_cpp='$CPP $CPPFLAGS'
5606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610ac_ext=c
5611ac_cpp='$CPP $CPPFLAGS'
5612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615if test -n "$ac_tool_prefix"; then
5616 for ac_prog in gcc
5617 do
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622if test "${ac_cv_prog_CC+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005634 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 +00005635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645CC=$ac_cv_prog_CC
5646if test -n "$CC"; then
5647 { echo "$as_me:$LINENO: result: $CC" >&5
5648echo "${ECHO_T}$CC" >&6; }
5649else
5650 { echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6; }
5652fi
5653
5654
5655 test -n "$CC" && break
5656 done
5657fi
5658if test -z "$CC"; then
5659 ac_ct_CC=$CC
5660 for ac_prog in gcc
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
5664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$ac_ct_CC"; then
5670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005678 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 +00005679 ac_cv_prog_ac_ct_CC="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690if test -n "$ac_ct_CC"; then
5691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692echo "${ECHO_T}$ac_ct_CC" >&6; }
5693else
5694 { echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6; }
5696fi
5697
5698
5699 test -n "$ac_ct_CC" && break
5700done
5701
5702 if test "x$ac_ct_CC" = x; then
5703 CC=""
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708whose name does not start with the host triplet. If you think this
5709configuration is useful to you, please write to autoconf@gnu.org." >&5
5710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711whose name does not start with the host triplet. If you think this
5712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713ac_tool_warned=yes ;;
5714esac
5715 CC=$ac_ct_CC
5716 fi
5717fi
5718
5719
5720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721See \`config.log' for more details." >&5
5722echo "$as_me: error: no acceptable C compiler found in \$PATH
5723See \`config.log' for more details." >&2;}
5724 { (exit 1); exit 1; }; }
5725
5726# Provide some information about the compiler.
5727echo "$as_me:$LINENO: checking for C compiler version" >&5
5728ac_compiler=`set X $ac_compile; echo $2`
5729{ (ac_try="$ac_compiler --version >&5"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739{ (ac_try="$ac_compiler -v >&5"
5740case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743esac
5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749{ (ac_try="$ac_compiler -V >&5"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
5759
5760{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765 cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h. */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h. */
5771
5772int
5773main ()
5774{
5775#ifndef __GNUC__
5776 choke me
5777#endif
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (ac_try="$ac_compile"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798 { (case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005817 ac_compiler_gnu=yes
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_compiler_gnu=no
5823fi
5824
5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826ac_cv_c_compiler_gnu=$ac_compiler_gnu
5827
5828fi
5829{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831GCC=`test $ac_compiler_gnu = yes && echo yes`
5832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
5834{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
5843 cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
5849
5850int
5851main ()
5852{
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext
5859if { (ac_try="$ac_compile"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005892 ac_cv_prog_cc_g=yes
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 CFLAGS=""
5898 cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
5904
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913rm -f conftest.$ac_objext
5914if { (ac_try="$ac_compile"
5915case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005947 :
5948else
5949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_c_werror_flag=$ac_save_c_werror_flag
5953 CFLAGS="-g"
5954 cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h. */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h. */
5960
5961int
5962main ()
5963{
5964
5965 ;
5966 return 0;
5967}
5968_ACEOF
5969rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006003 ac_cv_prog_cc_g=yes
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009fi
6010
6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012fi
6013
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_c_werror_flag=$ac_save_c_werror_flag
6019fi
6020{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6022if test "$ac_test_CFLAGS" = set; then
6023 CFLAGS=$ac_save_CFLAGS
6024elif test $ac_cv_prog_cc_g = yes; then
6025 if test "$GCC" = yes; then
6026 CFLAGS="-g -O2"
6027 else
6028 CFLAGS="-g"
6029 fi
6030else
6031 if test "$GCC" = yes; then
6032 CFLAGS="-O2"
6033 else
6034 CFLAGS=
6035 fi
6036fi
6037{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_cc_c89+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042 ac_cv_prog_cc_c89=no
6043ac_save_CC=$CC
6044cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
6050#include <stdarg.h>
6051#include <stdio.h>
6052#include <sys/types.h>
6053#include <sys/stat.h>
6054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055struct buf { int x; };
6056FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057static char *e (p, i)
6058 char **p;
6059 int i;
6060{
6061 return p[i];
6062}
6063static char *f (char * (*g) (char **, int), char **p, ...)
6064{
6065 char *s;
6066 va_list v;
6067 va_start (v,p);
6068 s = g (p, va_arg (v,int));
6069 va_end (v);
6070 return s;
6071}
6072
6073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6084#define FOO(x) 'x'
6085int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087int test (int i, double x);
6088struct s1 {int (*f) (int a);};
6089struct s2 {int (*f) (double a);};
6090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091int argc;
6092char **argv;
6093int
6094main ()
6095{
6096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103do
6104 CC="$ac_save_CC $ac_arg"
6105 rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006139 ac_cv_prog_cc_c89=$ac_arg
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext
6148 test "x$ac_cv_prog_cc_c89" != "xno" && break
6149done
6150rm -f conftest.$ac_ext
6151CC=$ac_save_CC
6152
6153fi
6154# AC_CACHE_VAL
6155case "x$ac_cv_prog_cc_c89" in
6156 x)
6157 { echo "$as_me:$LINENO: result: none needed" >&5
6158echo "${ECHO_T}none needed" >&6; } ;;
6159 xno)
6160 { echo "$as_me:$LINENO: result: unsupported" >&5
6161echo "${ECHO_T}unsupported" >&6; } ;;
6162 *)
6163 CC="$CC $ac_cv_prog_cc_c89"
6164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6166esac
6167
6168
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175ac_ext=cpp
6176ac_cpp='$CXXCPP $CPPFLAGS'
6177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6180if test -z "$CXX"; then
6181 if test -n "$CCC"; then
6182 CXX=$CCC
6183 else
6184 if test -n "$ac_tool_prefix"; then
6185 for ac_prog in g++
6186 do
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_CXX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 if test -n "$CXX"; then
6195 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006203 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 +00006204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
6209done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214CXX=$ac_cv_prog_CXX
6215if test -n "$CXX"; then
6216 { echo "$as_me:$LINENO: result: $CXX" >&5
6217echo "${ECHO_T}$CXX" >&6; }
6218else
6219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
6221fi
6222
6223
6224 test -n "$CXX" && break
6225 done
6226fi
6227if test -z "$CXX"; then
6228 ac_ct_CXX=$CXX
6229 for ac_prog in g++
6230do
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232set dummy $ac_prog; ac_word=$2
6233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 if test -n "$ac_ct_CXX"; then
6239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006247 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 +00006248 ac_cv_prog_ac_ct_CXX="$ac_prog"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252done
6253done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259if test -n "$ac_ct_CXX"; then
6260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261echo "${ECHO_T}$ac_ct_CXX" >&6; }
6262else
6263 { echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6; }
6265fi
6266
6267
6268 test -n "$ac_ct_CXX" && break
6269done
6270
6271 if test "x$ac_ct_CXX" = x; then
6272 CXX="g++"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277whose name does not start with the host triplet. If you think this
6278configuration is useful to you, please write to autoconf@gnu.org." >&5
6279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280whose name does not start with the host triplet. If you think this
6281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284 CXX=$ac_ct_CXX
6285 fi
6286fi
6287
6288 fi
6289fi
6290# Provide some information about the compiler.
6291echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292ac_compiler=`set X $ac_compile; echo $2`
6293{ (ac_try="$ac_compiler --version >&5"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
6298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compiler --version >&5") 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }
6303{ (ac_try="$ac_compiler -v >&5"
6304case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compiler -v >&5") 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }
6313{ (ac_try="$ac_compiler -V >&5"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compiler -V >&5") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }
6323
6324{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339#ifndef __GNUC__
6340 choke me
6341#endif
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext
6348if { (ac_try="$ac_compile"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compile") 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006381 ac_compiler_gnu=yes
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_compiler_gnu=no
6387fi
6388
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6391
6392fi
6393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395GXX=`test $ac_compiler_gnu = yes && echo yes`
6396ac_test_CXXFLAGS=${CXXFLAGS+set}
6397ac_save_CXXFLAGS=$CXXFLAGS
6398{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400if test "${ac_cv_prog_cxx_g+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag=yes
6405 ac_cv_prog_cxx_g=no
6406 CXXFLAGS="-g"
6407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413
6414int
6415main ()
6416{
6417
6418 ;
6419 return 0;
6420}
6421_ACEOF
6422rm -f conftest.$ac_objext
6423if { (ac_try="$ac_compile"
6424case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437 { (case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_try") 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006456 ac_cv_prog_cxx_g=yes
6457else
6458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 CXXFLAGS=""
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468
6469int
6470main ()
6471{
6472
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477rm -f conftest.$ac_objext
6478if { (ac_try="$ac_compile"
6479case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
6496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_try") 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006511 :
6512else
6513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6517 CXXFLAGS="-g"
6518 cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h. */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h. */
6524
6525int
6526main ()
6527{
6528
6529 ;
6530 return 0;
6531}
6532_ACEOF
6533rm -f conftest.$ac_objext
6534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551esac
6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006567 ac_cv_prog_cxx_g=yes
6568else
6569 echo "$as_me: failed program was:" >&5
6570sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
6573fi
6574
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583fi
6584{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586if test "$ac_test_CXXFLAGS" = set; then
6587 CXXFLAGS=$ac_save_CXXFLAGS
6588elif test $ac_cv_prog_cxx_g = yes; then
6589 if test "$GXX" = yes; then
6590 CXXFLAGS="-g -O2"
6591 else
6592 CXXFLAGS="-g"
6593 fi
6594else
6595 if test "$GXX" = yes; then
6596 CXXFLAGS="-O2"
6597 else
6598 CXXFLAGS=
6599 fi
6600fi
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
Reid Spencera773bd52006-08-04 18:18:08 +00006607
6608{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610if test "${lt_cv_path_NM+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613 if test -n "$NM"; then
6614 # Let the user override the test.
6615 lt_cv_path_NM="$NM"
6616else
6617 lt_nm_to_check="${ac_tool_prefix}nm"
6618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619 lt_nm_to_check="$lt_nm_to_check nm"
6620 fi
6621 for lt_tmp_nm in $lt_nm_to_check; do
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6624 IFS="$lt_save_ifs"
6625 test -z "$ac_dir" && ac_dir=.
6626 tmp_nm="$ac_dir/$lt_tmp_nm"
6627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628 # Check to see if the nm accepts a BSD-compat flag.
6629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630 # nm: unknown option "B" ignored
6631 # Tru64's nm complains that /dev/null is an invalid object file
6632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633 */dev/null* | *'Invalid file or object type'*)
6634 lt_cv_path_NM="$tmp_nm -B"
6635 break
6636 ;;
6637 *)
6638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6639 */dev/null*)
6640 lt_cv_path_NM="$tmp_nm -p"
6641 break
6642 ;;
6643 *)
6644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645 continue # so that we can try to find one that supports BSD flags
6646 ;;
6647 esac
6648 ;;
6649 esac
6650 fi
6651 done
6652 IFS="$lt_save_ifs"
6653 done
6654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6655fi
6656fi
6657{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6659NM="$lt_cv_path_NM"
6660
6661
6662
6663{ echo "$as_me:$LINENO: checking for GNU make" >&5
6664echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665if test "${llvm_cv_gnu_make_command+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 llvm_cv_gnu_make_command=''
6669 for a in "$MAKE" make gmake gnumake ; do
6670 if test -z "$a" ; then continue ; fi ;
6671 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6672 then
6673 llvm_cv_gnu_make_command=$a ;
6674 break;
6675 fi
6676 done
6677fi
6678{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6681 ifGNUmake='' ;
6682 else
6683 ifGNUmake='#' ;
6684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685echo "${ECHO_T}\"Not found\"" >&6; };
6686 fi
6687
6688
6689{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6691LN_S=$as_ln_s
6692if test "$LN_S" = "ln -s"; then
6693 { echo "$as_me:$LINENO: result: yes" >&5
6694echo "${ECHO_T}yes" >&6; }
6695else
6696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697echo "${ECHO_T}no, using $LN_S" >&6; }
6698fi
6699
6700# Extract the first word of "cmp", so it can be a program name with args.
6701set dummy cmp; ac_word=$2
6702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704if test "${ac_cv_path_CMP+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707 case $CMP in
6708 [\\/]* | ?:[\\/]*)
6709 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6710 ;;
6711 *)
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006718 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 +00006719 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723done
6724done
6725IFS=$as_save_IFS
6726
6727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6728 ;;
6729esac
6730fi
6731CMP=$ac_cv_path_CMP
6732if test -n "$CMP"; then
6733 { echo "$as_me:$LINENO: result: $CMP" >&5
6734echo "${ECHO_T}$CMP" >&6; }
6735else
6736 { echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6; }
6738fi
6739
6740
6741# Extract the first word of "cp", so it can be a program name with args.
6742set dummy cp; ac_word=$2
6743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_CP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748 case $CP in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006759 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 +00006760 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764done
6765done
6766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6769 ;;
6770esac
6771fi
6772CP=$ac_cv_path_CP
6773if test -n "$CP"; then
6774 { echo "$as_me:$LINENO: result: $CP" >&5
6775echo "${ECHO_T}$CP" >&6; }
6776else
6777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
6779fi
6780
6781
6782# Extract the first word of "date", so it can be a program name with args.
6783set dummy date; ac_word=$2
6784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786if test "${ac_cv_path_DATE+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789 case $DATE in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6792 ;;
6793 *)
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006800 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 +00006801 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806done
6807IFS=$as_save_IFS
6808
6809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6810 ;;
6811esac
6812fi
6813DATE=$ac_cv_path_DATE
6814if test -n "$DATE"; then
6815 { echo "$as_me:$LINENO: result: $DATE" >&5
6816echo "${ECHO_T}$DATE" >&6; }
6817else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
6820fi
6821
6822
6823# Extract the first word of "find", so it can be a program name with args.
6824set dummy find; ac_word=$2
6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_path_FIND+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830 case $FIND in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6833 ;;
6834 *)
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006841 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 +00006842 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846done
6847done
6848IFS=$as_save_IFS
6849
6850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6851 ;;
6852esac
6853fi
6854FIND=$ac_cv_path_FIND
6855if test -n "$FIND"; then
6856 { echo "$as_me:$LINENO: result: $FIND" >&5
6857echo "${ECHO_T}$FIND" >&6; }
6858else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863
6864# Extract the first word of "grep", so it can be a program name with args.
6865set dummy grep; ac_word=$2
6866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_GREP+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871 case $GREP in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006882 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 +00006883 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888done
6889IFS=$as_save_IFS
6890
6891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6892 ;;
6893esac
6894fi
6895GREP=$ac_cv_path_GREP
6896if test -n "$GREP"; then
6897 { echo "$as_me:$LINENO: result: $GREP" >&5
6898echo "${ECHO_T}$GREP" >&6; }
6899else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904
6905# Extract the first word of "mkdir", so it can be a program name with args.
6906set dummy mkdir; ac_word=$2
6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_MKDIR+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 case $MKDIR in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006923 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 +00006924 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6933 ;;
6934esac
6935fi
6936MKDIR=$ac_cv_path_MKDIR
6937if test -n "$MKDIR"; then
6938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939echo "${ECHO_T}$MKDIR" >&6; }
6940else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
6943fi
6944
6945
6946# Extract the first word of "mv", so it can be a program name with args.
6947set dummy mv; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_MV+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $MV in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006964 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 +00006965 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6974 ;;
6975esac
6976fi
6977MV=$ac_cv_path_MV
6978if test -n "$MV"; then
6979 { echo "$as_me:$LINENO: result: $MV" >&5
6980echo "${ECHO_T}$MV" >&6; }
6981else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
6984fi
6985
6986
6987if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992if test "${ac_cv_prog_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007004 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 +00007005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015RANLIB=$ac_cv_prog_RANLIB
7016if test -n "$RANLIB"; then
7017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018echo "${ECHO_T}$RANLIB" >&6; }
7019else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029set dummy ranlib; ac_word=$2
7030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007044 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 +00007045 ac_cv_prog_ac_ct_RANLIB="ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049done
7050done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056if test -n "$ac_ct_RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7059else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064 if test "x$ac_ct_RANLIB" = x; then
7065 RANLIB=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070whose name does not start with the host triplet. If you think this
7071configuration is useful to you, please write to autoconf@gnu.org." >&5
7072echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073whose name does not start with the host triplet. If you think this
7074configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081fi
7082
7083# Extract the first word of "rm", so it can be a program name with args.
7084set dummy rm; ac_word=$2
7085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087if test "${ac_cv_path_RM+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 case $RM in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7093 ;;
7094 *)
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007101 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 +00007102 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
7108IFS=$as_save_IFS
7109
7110 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7111 ;;
7112esac
7113fi
7114RM=$ac_cv_path_RM
7115if test -n "$RM"; then
7116 { echo "$as_me:$LINENO: result: $RM" >&5
7117echo "${ECHO_T}$RM" >&6; }
7118else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6; }
7121fi
7122
7123
7124# Extract the first word of "sed", so it can be a program name with args.
7125set dummy sed; ac_word=$2
7126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_path_SED+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131 case $SED in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7134 ;;
7135 *)
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007142 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 +00007143 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147done
7148done
7149IFS=$as_save_IFS
7150
7151 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7152 ;;
7153esac
7154fi
7155SED=$ac_cv_path_SED
7156if test -n "$SED"; then
7157 { echo "$as_me:$LINENO: result: $SED" >&5
7158echo "${ECHO_T}$SED" >&6; }
7159else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
7165# Extract the first word of "tar", so it can be a program name with args.
7166set dummy tar; ac_word=$2
7167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169if test "${ac_cv_path_TAR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 case $TAR in
7173 [\\/]* | ?:[\\/]*)
7174 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7175 ;;
7176 *)
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007183 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 +00007184 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190IFS=$as_save_IFS
7191
7192 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7193 ;;
7194esac
7195fi
7196TAR=$ac_cv_path_TAR
7197if test -n "$TAR"; then
7198 { echo "$as_me:$LINENO: result: $TAR" >&5
7199echo "${ECHO_T}$TAR" >&6; }
7200else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
7203fi
7204
7205
7206# Extract the first word of "pwd", so it can be a program name with args.
7207set dummy pwd; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_BINPWD+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $BINPWD in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007225 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7234 ;;
7235esac
7236fi
7237BINPWD=$ac_cv_path_BINPWD
7238if test -n "$BINPWD"; then
7239 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7240echo "${ECHO_T}$BINPWD" >&6; }
7241else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6; }
7244fi
7245
7246
7247
7248# Extract the first word of "Graphviz", so it can be a program name with args.
7249set dummy Graphviz; ac_word=$2
7250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255 case $GRAPHVIZ in
7256 [\\/]* | ?:[\\/]*)
7257 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7258 ;;
7259 *)
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007266 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 +00007267 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271done
7272done
7273IFS=$as_save_IFS
7274
7275 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7276 ;;
7277esac
7278fi
7279GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7280if test -n "$GRAPHVIZ"; then
7281 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7282echo "${ECHO_T}$GRAPHVIZ" >&6; }
7283else
7284 { echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6; }
7286fi
7287
7288
7289if test "$GRAPHVIZ" != "echo Graphviz" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_GRAPHVIZ 1
7293_ACEOF
7294
Jeff Cohen28783c32007-01-12 18:22:38 +00007295 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007296 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7297 fi
7298
7299cat >>confdefs.h <<_ACEOF
7300#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7301_ACEOF
7302
7303fi
7304# Extract the first word of "dot", so it can be a program name with args.
7305set dummy dot; ac_word=$2
7306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_path_DOT+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 case $DOT in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007322 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 +00007323 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329IFS=$as_save_IFS
7330
7331 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7332 ;;
7333esac
7334fi
7335DOT=$ac_cv_path_DOT
7336if test -n "$DOT"; then
7337 { echo "$as_me:$LINENO: result: $DOT" >&5
7338echo "${ECHO_T}$DOT" >&6; }
7339else
7340 { echo "$as_me:$LINENO: result: no" >&5
7341echo "${ECHO_T}no" >&6; }
7342fi
7343
7344
7345if test "$DOT" != "echo dot" ; then
7346
7347cat >>confdefs.h <<\_ACEOF
7348#define HAVE_DOT 1
7349_ACEOF
7350
Jeff Cohen28783c32007-01-12 18:22:38 +00007351 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007352 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7353 fi
7354
7355cat >>confdefs.h <<_ACEOF
7356#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7357_ACEOF
7358
7359fi
David Greenef0b9eff2009-07-09 17:16:26 +00007360# Extract the first word of "fdp", so it can be a program name with args.
7361set dummy fdp; ac_word=$2
7362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364if test "${ac_cv_path_FDP+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367 case $FDP in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7370 ;;
7371 *)
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7382 fi
7383done
7384done
7385IFS=$as_save_IFS
7386
7387 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7388 ;;
7389esac
7390fi
7391FDP=$ac_cv_path_FDP
7392if test -n "$FDP"; then
7393 { echo "$as_me:$LINENO: result: $FDP" >&5
7394echo "${ECHO_T}$FDP" >&6; }
7395else
7396 { echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6; }
7398fi
7399
7400
7401if test "$FDP" != "echo fdp" ; then
7402
7403cat >>confdefs.h <<\_ACEOF
7404#define HAVE_FDP 1
7405_ACEOF
7406
7407 if test "$llvm_cv_os_type" = "MingW" ; then
7408 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7409 fi
7410
7411cat >>confdefs.h <<_ACEOF
7412#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7413_ACEOF
7414
7415fi
7416# Extract the first word of "neato", so it can be a program name with args.
7417set dummy neato; ac_word=$2
7418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420if test "${ac_cv_path_NEATO+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 case $NEATO in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7426 ;;
7427 *)
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439done
7440done
7441IFS=$as_save_IFS
7442
7443 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7444 ;;
7445esac
7446fi
7447NEATO=$ac_cv_path_NEATO
7448if test -n "$NEATO"; then
7449 { echo "$as_me:$LINENO: result: $NEATO" >&5
7450echo "${ECHO_T}$NEATO" >&6; }
7451else
7452 { echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6; }
7454fi
7455
7456
7457if test "$NEATO" != "echo neato" ; then
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define HAVE_NEATO 1
7461_ACEOF
7462
7463 if test "$llvm_cv_os_type" = "MingW" ; then
7464 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7465 fi
7466
7467cat >>confdefs.h <<_ACEOF
7468#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7469_ACEOF
7470
7471fi
7472# Extract the first word of "twopi", so it can be a program name with args.
7473set dummy twopi; ac_word=$2
7474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476if test "${ac_cv_path_TWOPI+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478else
7479 case $TWOPI in
7480 [\\/]* | ?:[\\/]*)
7481 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7482 ;;
7483 *)
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495done
7496done
7497IFS=$as_save_IFS
7498
7499 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7500 ;;
7501esac
7502fi
7503TWOPI=$ac_cv_path_TWOPI
7504if test -n "$TWOPI"; then
7505 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7506echo "${ECHO_T}$TWOPI" >&6; }
7507else
7508 { echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6; }
7510fi
7511
7512
7513if test "$TWOPI" != "echo twopi" ; then
7514
7515cat >>confdefs.h <<\_ACEOF
7516#define HAVE_TWOPI 1
7517_ACEOF
7518
7519 if test "$llvm_cv_os_type" = "MingW" ; then
7520 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521 fi
7522
7523cat >>confdefs.h <<_ACEOF
7524#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7525_ACEOF
7526
7527fi
7528# Extract the first word of "circo", so it can be a program name with args.
7529set dummy circo; ac_word=$2
7530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_CIRCO+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 case $CIRCO in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551done
7552done
7553IFS=$as_save_IFS
7554
7555 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7556 ;;
7557esac
7558fi
7559CIRCO=$ac_cv_path_CIRCO
7560if test -n "$CIRCO"; then
7561 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7562echo "${ECHO_T}$CIRCO" >&6; }
7563else
7564 { echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6; }
7566fi
7567
7568
7569if test "$CIRCO" != "echo circo" ; then
7570
7571cat >>confdefs.h <<\_ACEOF
7572#define HAVE_CIRCO 1
7573_ACEOF
7574
7575 if test "$llvm_cv_os_type" = "MingW" ; then
7576 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577 fi
7578
7579cat >>confdefs.h <<_ACEOF
7580#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7581_ACEOF
7582
7583fi
Reid Spencera773bd52006-08-04 18:18:08 +00007584for ac_prog in gv gsview32
7585do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587set dummy $ac_prog; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_GV+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $GV in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007604 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 +00007605 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 ;;
7614esac
7615fi
7616GV=$ac_cv_path_GV
7617if test -n "$GV"; then
7618 { echo "$as_me:$LINENO: result: $GV" >&5
7619echo "${ECHO_T}$GV" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626 test -n "$GV" && break
7627done
7628test -n "$GV" || GV="echo gv"
7629
7630if test "$GV" != "echo gv" ; then
7631
7632cat >>confdefs.h <<\_ACEOF
7633#define HAVE_GV 1
7634_ACEOF
7635
Jeff Cohen28783c32007-01-12 18:22:38 +00007636 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007637 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7638 fi
7639
7640cat >>confdefs.h <<_ACEOF
7641#define LLVM_PATH_GV "$GV${EXEEXT}"
7642_ACEOF
7643
7644fi
7645# Extract the first word of "dotty", so it can be a program name with args.
7646set dummy dotty; ac_word=$2
7647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649if test "${ac_cv_path_DOTTY+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 case $DOTTY in
7653 [\\/]* | ?:[\\/]*)
7654 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7655 ;;
7656 *)
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007663 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 +00007664 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670IFS=$as_save_IFS
7671
7672 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7673 ;;
7674esac
7675fi
7676DOTTY=$ac_cv_path_DOTTY
7677if test -n "$DOTTY"; then
7678 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7679echo "${ECHO_T}$DOTTY" >&6; }
7680else
7681 { echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6; }
7683fi
7684
7685
7686if test "$DOTTY" != "echo dotty" ; then
7687
7688cat >>confdefs.h <<\_ACEOF
7689#define HAVE_DOTTY 1
7690_ACEOF
7691
Jeff Cohen28783c32007-01-12 18:22:38 +00007692 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007693 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7694 fi
7695
7696cat >>confdefs.h <<_ACEOF
7697#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7698_ACEOF
7699
7700fi
7701
7702
7703# Extract the first word of "perl", so it can be a program name with args.
7704set dummy perl; ac_word=$2
7705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707if test "${ac_cv_path_PERL+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710 case $PERL in
7711 [\\/]* | ?:[\\/]*)
7712 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7713 ;;
7714 *)
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007721 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 +00007722 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727done
7728IFS=$as_save_IFS
7729
7730 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7731 ;;
7732esac
7733fi
7734PERL=$ac_cv_path_PERL
7735if test -n "$PERL"; then
7736 { echo "$as_me:$LINENO: result: $PERL" >&5
7737echo "${ECHO_T}$PERL" >&6; }
7738else
7739 { echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6; }
7741fi
7742
7743
7744if test "$PERL" != "none"; then
7745 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7746echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7747 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7748 { echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6; }
7750 else
7751 PERL=none
7752 { echo "$as_me:$LINENO: result: not found" >&5
7753echo "${ECHO_T}not found" >&6; }
7754 fi
7755fi
7756
7757
7758if test x"$PERL" = xnone; then
7759 HAVE_PERL=0
7760
Reid Spencer59807fa2007-05-17 18:11:03 +00007761 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7762echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7763 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007764else
7765 HAVE_PERL=1
7766
7767fi
7768
7769# Find a good install program. We prefer a C program (faster),
7770# so one script is as good as another. But avoid the broken or
7771# incompatible versions:
7772# SysV /etc/install, /usr/sbin/install
7773# SunOS /usr/etc/install
7774# IRIX /sbin/install
7775# AIX /bin/install
7776# AmigaOS /C/install, which installs bootblocks on floppy discs
7777# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7778# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7779# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7780# OS/2's system install, which has a completely different semantic
7781# ./install, which can be erroneously created by make from ./install.sh.
7782{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7783echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7784if test -z "$INSTALL"; then
7785if test "${ac_cv_path_install+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 # Account for people who put trailing slashes in PATH elements.
7794case $as_dir/ in
7795 ./ | .// | /cC/* | \
7796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7797 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7798 /usr/ucb/* ) ;;
7799 *)
7800 # OSF1 and SCO ODT 3.0 have their own names for install.
7801 # Don't use installbsd from OSF since it installs stuff as root
7802 # by default.
7803 for ac_prog in ginstall scoinst install; do
7804 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007805 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 +00007806 if test $ac_prog = install &&
7807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7808 # AIX install. It has an incompatible calling convention.
7809 :
7810 elif test $ac_prog = install &&
7811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7812 # program-specific install script used by HP pwplus--don't use.
7813 :
7814 else
7815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7816 break 3
7817 fi
7818 fi
7819 done
7820 done
7821 ;;
7822esac
7823done
7824IFS=$as_save_IFS
7825
7826
7827fi
7828 if test "${ac_cv_path_install+set}" = set; then
7829 INSTALL=$ac_cv_path_install
7830 else
7831 # As a last resort, use the slow shell script. Don't cache a
7832 # value for INSTALL within a source directory, because that will
7833 # break other packages using the cache if that directory is
7834 # removed, or if the value is a relative name.
7835 INSTALL=$ac_install_sh
7836 fi
7837fi
7838{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7839echo "${ECHO_T}$INSTALL" >&6; }
7840
7841# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7842# It thinks the first close brace ends the variable substitution.
7843test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7844
7845test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7846
7847test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7848
7849
7850# Extract the first word of "bzip2", so it can be a program name with args.
7851set dummy bzip2; ac_word=$2
7852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7854if test "${ac_cv_path_BZIP2+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856else
7857 case $BZIP2 in
7858 [\\/]* | ?:[\\/]*)
7859 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7860 ;;
7861 *)
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007868 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 +00007869 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873done
7874done
7875IFS=$as_save_IFS
7876
Reid Spencera773bd52006-08-04 18:18:08 +00007877 ;;
7878esac
7879fi
7880BZIP2=$ac_cv_path_BZIP2
7881if test -n "$BZIP2"; then
7882 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7883echo "${ECHO_T}$BZIP2" >&6; }
7884else
7885 { echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6; }
7887fi
7888
7889
7890# Extract the first word of "doxygen", so it can be a program name with args.
7891set dummy doxygen; ac_word=$2
7892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894if test "${ac_cv_path_DOXYGEN+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 case $DOXYGEN in
7898 [\\/]* | ?:[\\/]*)
7899 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7900 ;;
7901 *)
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007908 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 +00007909 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914done
7915IFS=$as_save_IFS
7916
Reid Spencera773bd52006-08-04 18:18:08 +00007917 ;;
7918esac
7919fi
7920DOXYGEN=$ac_cv_path_DOXYGEN
7921if test -n "$DOXYGEN"; then
7922 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7923echo "${ECHO_T}$DOXYGEN" >&6; }
7924else
7925 { echo "$as_me:$LINENO: result: no" >&5
7926echo "${ECHO_T}no" >&6; }
7927fi
7928
7929
Reid Spencera773bd52006-08-04 18:18:08 +00007930# Extract the first word of "groff", so it can be a program name with args.
7931set dummy groff; ac_word=$2
7932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7934if test "${ac_cv_path_GROFF+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937 case $GROFF in
7938 [\\/]* | ?:[\\/]*)
7939 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7940 ;;
7941 *)
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007948 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 +00007949 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953done
7954done
7955IFS=$as_save_IFS
7956
Reid Spencera773bd52006-08-04 18:18:08 +00007957 ;;
7958esac
7959fi
7960GROFF=$ac_cv_path_GROFF
7961if test -n "$GROFF"; then
7962 { echo "$as_me:$LINENO: result: $GROFF" >&5
7963echo "${ECHO_T}$GROFF" >&6; }
7964else
7965 { echo "$as_me:$LINENO: result: no" >&5
7966echo "${ECHO_T}no" >&6; }
7967fi
7968
7969
7970# Extract the first word of "gzip", so it can be a program name with args.
7971set dummy gzip; ac_word=$2
7972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974if test "${ac_cv_path_GZIP+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977 case $GZIP in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007988 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 +00007989 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994done
7995IFS=$as_save_IFS
7996
Reid Spencera773bd52006-08-04 18:18:08 +00007997 ;;
7998esac
7999fi
8000GZIP=$ac_cv_path_GZIP
8001if test -n "$GZIP"; then
8002 { echo "$as_me:$LINENO: result: $GZIP" >&5
8003echo "${ECHO_T}$GZIP" >&6; }
8004else
8005 { echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6; }
8007fi
8008
8009
8010# Extract the first word of "pod2html", so it can be a program name with args.
8011set dummy pod2html; ac_word=$2
8012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014if test "${ac_cv_path_POD2HTML+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017 case $POD2HTML in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8020 ;;
8021 *)
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008028 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 +00008029 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033done
8034done
8035IFS=$as_save_IFS
8036
Reid Spencera773bd52006-08-04 18:18:08 +00008037 ;;
8038esac
8039fi
8040POD2HTML=$ac_cv_path_POD2HTML
8041if test -n "$POD2HTML"; then
8042 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8043echo "${ECHO_T}$POD2HTML" >&6; }
8044else
8045 { echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6; }
8047fi
8048
8049
8050# Extract the first word of "pod2man", so it can be a program name with args.
8051set dummy pod2man; ac_word=$2
8052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054if test "${ac_cv_path_POD2MAN+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056else
8057 case $POD2MAN in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8060 ;;
8061 *)
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008068 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 +00008069 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073done
8074done
8075IFS=$as_save_IFS
8076
Reid Spencera773bd52006-08-04 18:18:08 +00008077 ;;
8078esac
8079fi
8080POD2MAN=$ac_cv_path_POD2MAN
8081if test -n "$POD2MAN"; then
8082 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8083echo "${ECHO_T}$POD2MAN" >&6; }
8084else
8085 { echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6; }
8087fi
8088
8089
8090# Extract the first word of "runtest", so it can be a program name with args.
8091set dummy runtest; ac_word=$2
8092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094if test "${ac_cv_path_RUNTEST+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 case $RUNTEST in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8100 ;;
8101 *)
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008108 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 +00008109 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8112 fi
8113done
8114done
8115IFS=$as_save_IFS
8116
Reid Spencera773bd52006-08-04 18:18:08 +00008117 ;;
8118esac
8119fi
8120RUNTEST=$ac_cv_path_RUNTEST
8121if test -n "$RUNTEST"; then
8122 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8123echo "${ECHO_T}$RUNTEST" >&6; }
8124else
8125 { echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6; }
8127fi
8128
8129
8130
8131no_itcl=true
8132{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8133echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8134
8135# Check whether --with-tclinclude was given.
8136if test "${with_tclinclude+set}" = set; then
8137 withval=$with_tclinclude; with_tclinclude=${withval}
8138else
8139 with_tclinclude=''
8140fi
8141
8142if test "${ac_cv_path_tclsh+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145
8146if test x"${with_tclinclude}" != x ; then
8147 if test -f ${with_tclinclude}/tclsh ; then
8148 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8149 elif test -f ${with_tclinclude}/src/tclsh ; then
8150 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8151 else
8152 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8153echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8154 { (exit 1); exit 1; }; }
8155 fi
8156fi
8157
8158if test x"${ac_cv_path_tclsh}" = x ; then
8159 { echo "$as_me:$LINENO: result: none" >&5
8160echo "${ECHO_T}none" >&6; }
8161 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
8162do
8163 # Extract the first word of "$ac_prog", so it can be a program name with args.
8164set dummy $ac_prog; ac_word=$2
8165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167if test "${ac_cv_path_TCLSH+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 case $TCLSH in
8171 [\\/]* | ?:[\\/]*)
8172 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8173 ;;
8174 *)
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008181 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 +00008182 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186done
8187done
8188IFS=$as_save_IFS
8189
8190 ;;
8191esac
8192fi
8193TCLSH=$ac_cv_path_TCLSH
8194if test -n "$TCLSH"; then
8195 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8196echo "${ECHO_T}$TCLSH" >&6; }
8197else
8198 { echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6; }
8200fi
8201
8202
8203 test -n "$TCLSH" && break
8204done
8205
8206 if test x"${TCLSH}" = x ; then
8207 ac_cv_path_tclsh='';
8208 else
8209 ac_cv_path_tclsh="${TCLSH}";
8210 fi
8211else
8212 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8213echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8214 TCLSH="${ac_cv_path_tclsh}"
8215
8216fi
8217
8218fi
8219
8220# Extract the first word of "zip", so it can be a program name with args.
8221set dummy zip; ac_word=$2
8222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224if test "${ac_cv_path_ZIP+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 case $ZIP in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8230 ;;
8231 *)
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008239 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245IFS=$as_save_IFS
8246
Reid Spencera773bd52006-08-04 18:18:08 +00008247 ;;
8248esac
8249fi
8250ZIP=$ac_cv_path_ZIP
8251if test -n "$ZIP"; then
8252 { echo "$as_me:$LINENO: result: $ZIP" >&5
8253echo "${ECHO_T}$ZIP" >&6; }
8254else
8255 { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008260for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008261do
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266if test "${ac_cv_path_OCAMLC+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 case $OCAMLC in
8270 [\\/]* | ?:[\\/]*)
8271 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8272 ;;
8273 *)
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008280 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 +00008281 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285done
8286done
8287IFS=$as_save_IFS
8288
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008289 ;;
8290esac
8291fi
8292OCAMLC=$ac_cv_path_OCAMLC
8293if test -n "$OCAMLC"; then
8294 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8295echo "${ECHO_T}$OCAMLC" >&6; }
8296else
8297 { echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6; }
8299fi
8300
8301
Gordon Henriksene7072162008-03-07 18:20:01 +00008302 test -n "$OCAMLC" && break
8303done
8304
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008305for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008306do
8307 # Extract the first word of "$ac_prog", so it can be a program name with args.
8308set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8311if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 case $OCAMLOPT in
8315 [\\/]* | ?:[\\/]*)
8316 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8317 ;;
8318 *)
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008325 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 +00008326 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
8331done
8332IFS=$as_save_IFS
8333
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008334 ;;
8335esac
8336fi
8337OCAMLOPT=$ac_cv_path_OCAMLOPT
8338if test -n "$OCAMLOPT"; then
8339 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8340echo "${ECHO_T}$OCAMLOPT" >&6; }
8341else
8342 { echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6; }
8344fi
8345
8346
Gordon Henriksene7072162008-03-07 18:20:01 +00008347 test -n "$OCAMLOPT" && break
8348done
8349
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008350for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008351do
8352 # Extract the first word of "$ac_prog", so it can be a program name with args.
8353set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 case $OCAMLDEP in
8360 [\\/]* | ?:[\\/]*)
8361 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8362 ;;
8363 *)
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008370 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 +00008371 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376done
8377IFS=$as_save_IFS
8378
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008379 ;;
8380esac
8381fi
8382OCAMLDEP=$ac_cv_path_OCAMLDEP
8383if test -n "$OCAMLDEP"; then
8384 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8385echo "${ECHO_T}$OCAMLDEP" >&6; }
8386else
8387 { echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6; }
8389fi
8390
8391
Gordon Henriksene7072162008-03-07 18:20:01 +00008392 test -n "$OCAMLDEP" && break
8393done
8394
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008395for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008396do
8397 # Extract the first word of "$ac_prog", so it can be a program name with args.
8398set dummy $ac_prog; ac_word=$2
8399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404 case $OCAMLDOC in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008415 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 +00008416 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8419 fi
8420done
8421done
8422IFS=$as_save_IFS
8423
8424 ;;
8425esac
8426fi
8427OCAMLDOC=$ac_cv_path_OCAMLDOC
8428if test -n "$OCAMLDOC"; then
8429 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8430echo "${ECHO_T}$OCAMLDOC" >&6; }
8431else
8432 { echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6; }
8434fi
8435
8436
8437 test -n "$OCAMLDOC" && break
8438done
8439
Torok Edwincc499a42008-10-22 09:56:27 +00008440for ac_prog in gas as
8441do
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443set dummy $ac_prog; ac_word=$2
8444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446if test "${ac_cv_path_GAS+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 case $GAS in
8450 [\\/]* | ?:[\\/]*)
8451 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8452 ;;
8453 *)
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008460 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 +00008461 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465done
8466done
8467IFS=$as_save_IFS
8468
8469 ;;
8470esac
8471fi
8472GAS=$ac_cv_path_GAS
8473if test -n "$GAS"; then
8474 { echo "$as_me:$LINENO: result: $GAS" >&5
8475echo "${ECHO_T}$GAS" >&6; }
8476else
8477 { echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6; }
8479fi
8480
8481
8482 test -n "$GAS" && break
8483done
8484
Reid Spencera773bd52006-08-04 18:18:08 +00008485
8486{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8487echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8488if test "${llvm_cv_link_use_r+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491 ac_ext=c
8492ac_cpp='$CPP $CPPFLAGS'
8493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8495ac_compiler_gnu=$ac_cv_c_compiler_gnu
8496
8497 oldcflags="$CFLAGS"
8498 CFLAGS="$CFLAGS -Wl,-R."
8499 cat >conftest.$ac_ext <<_ACEOF
8500/* confdefs.h. */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h. */
8505
8506int
8507main ()
8508{
8509int main() { return 0; }
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (ac_try="$ac_link"
8516case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519esac
8520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008548 llvm_cv_link_use_r=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 llvm_cv_link_use_r=no
8554fi
8555
Bill Wendlingebcceee2009-04-18 11:20:33 +00008556rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008557 conftest$ac_exeext conftest.$ac_ext
8558 CFLAGS="$oldcflags"
8559 ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566fi
8567{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8568echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8569if test "$llvm_cv_link_use_r" = yes ; then
8570
8571cat >>confdefs.h <<\_ACEOF
8572#define HAVE_LINK_R 1
8573_ACEOF
8574
8575 fi
8576
8577
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008578{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8579echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8580if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 ac_ext=c
8584ac_cpp='$CPP $CPPFLAGS'
8585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588
8589 oldcflags="$CFLAGS"
8590 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8591 cat >conftest.$ac_ext <<_ACEOF
8592/* confdefs.h. */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h. */
8597
8598int
8599main ()
8600{
8601int main() { return 0; }
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
8607if { (ac_try="$ac_link"
8608case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_link") 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624esac
8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_try") 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest$ac_exeext'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008640 llvm_cv_link_use_export_dynamic=yes
8641else
8642 echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 llvm_cv_link_use_export_dynamic=no
8646fi
8647
Bill Wendlingebcceee2009-04-18 11:20:33 +00008648rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008649 conftest$ac_exeext conftest.$ac_ext
8650 CFLAGS="$oldcflags"
8651 ac_ext=c
8652ac_cpp='$CPP $CPPFLAGS'
8653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656
8657
8658fi
8659{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8660echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8661if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8662
8663cat >>confdefs.h <<\_ACEOF
8664#define HAVE_LINK_EXPORT_DYNAMIC 1
8665_ACEOF
8666
8667 fi
8668
8669
Reid Spencera773bd52006-08-04 18:18:08 +00008670
8671
8672{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8673echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8674if test "${ac_cv_c_const+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677 cat >conftest.$ac_ext <<_ACEOF
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
8683
8684int
8685main ()
8686{
8687/* FIXME: Include the comments suggested by Paul. */
8688#ifndef __cplusplus
8689 /* Ultrix mips cc rejects this. */
8690 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008691 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008692 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008693 char const *const *ccp;
8694 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008695 /* NEC SVR4.0.2 mips cc rejects this. */
8696 struct point {int x, y;};
8697 static struct point const zero = {0,0};
8698 /* AIX XL C 1.02.0.0 rejects this.
8699 It does not let you subtract one const X* pointer from another in
8700 an arm of an if-expression whose if-part is not a constant
8701 expression */
8702 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008703 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008704 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008705 ++ccp;
8706 p = (char**) ccp;
8707 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008708 { /* SCO 3.2v4 cc rejects this. */
8709 char *t;
8710 char const *s = 0 ? (char *) 0 : (char const *) 0;
8711
8712 *t++ = 0;
8713 if (s) return 0;
8714 }
8715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8716 int x[] = {25, 17};
8717 const int *foo = &x[0];
8718 ++foo;
8719 }
8720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8721 typedef const int *iptr;
8722 iptr p = 0;
8723 ++p;
8724 }
8725 { /* AIX XL C 1.02.0.0 rejects this saying
8726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8727 struct s { int j; const int *ap[3]; };
8728 struct s *b; b->j = 5;
8729 }
8730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8731 const int foo = 10;
8732 if (!foo) return 0;
8733 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008734 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008735#endif
8736
8737 ;
8738 return 0;
8739}
8740_ACEOF
8741rm -f conftest.$ac_objext
8742if { (ac_try="$ac_compile"
8743case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746esac
8747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756 { (case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_try") 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_try") 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008775 ac_cv_c_const=yes
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_cv_c_const=no
8781fi
8782
8783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784fi
8785{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8786echo "${ECHO_T}$ac_cv_c_const" >&6; }
8787if test $ac_cv_c_const = no; then
8788
8789cat >>confdefs.h <<\_ACEOF
8790#define const
8791_ACEOF
8792
8793fi
8794
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008795
8796
8797
8798
8799
8800ac_header_dirent=no
8801for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8802 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008803{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8804echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808 cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814#include <sys/types.h>
8815#include <$ac_hdr>
8816
8817int
8818main ()
8819{
8820if ((DIR *) 0)
8821return 0;
8822 ;
8823 return 0;
8824}
8825_ACEOF
8826rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008827if { (ac_try="$ac_compile"
8828case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831esac
8832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844esac
8845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try='test -s conftest.$ac_objext'
8851 { (case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854esac
8855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_try") 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008860 eval "$as_ac_Header=yes"
8861else
8862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
Reid Spencera773bd52006-08-04 18:18:08 +00008865 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866fi
Reid Spencera773bd52006-08-04 18:18:08 +00008867
8868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008869fi
Reid Spencera773bd52006-08-04 18:18:08 +00008870ac_res=`eval echo '${'$as_ac_Header'}'`
8871 { echo "$as_me:$LINENO: result: $ac_res" >&5
8872echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874 cat >>confdefs.h <<_ACEOF
8875#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8876_ACEOF
8877
8878ac_header_dirent=$ac_hdr; break
8879fi
8880
8881done
8882# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8883if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008884 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8885echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008886if test "${ac_cv_search_opendir+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888else
8889 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h. */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h. */
8896
Reid Spencera773bd52006-08-04 18:18:08 +00008897/* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900#ifdef __cplusplus
8901extern "C"
8902#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008903char opendir ();
8904int
8905main ()
8906{
Reid Spencera773bd52006-08-04 18:18:08 +00008907return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008908 ;
8909 return 0;
8910}
8911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008912for ac_lib in '' dir; do
8913 if test -z "$ac_lib"; then
8914 ac_res="none required"
8915 else
8916 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008918 fi
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920if { (ac_try="$ac_link"
8921case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924esac
8925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934 { (case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937esac
8938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_try") 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest$ac_exeext'
8944 { (case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8947esac
8948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_try") 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008953 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008958
8959fi
8960
Bill Wendlingebcceee2009-04-18 11:20:33 +00008961rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008962 conftest$ac_exeext
8963 if test "${ac_cv_search_opendir+set}" = set; then
8964 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008965fi
John Criswell7a73b802003-06-30 21:59:07 +00008966done
Reid Spencera773bd52006-08-04 18:18:08 +00008967if test "${ac_cv_search_opendir+set}" = set; then
8968 :
8969else
8970 ac_cv_search_opendir=no
8971fi
8972rm conftest.$ac_ext
8973LIBS=$ac_func_search_save_LIBS
8974fi
8975{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8976echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8977ac_res=$ac_cv_search_opendir
8978if test "$ac_res" != no; then
8979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008980
Reid Spencera773bd52006-08-04 18:18:08 +00008981fi
8982
8983else
8984 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986if test "${ac_cv_search_opendir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 ac_func_search_save_LIBS=$LIBS
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char opendir ();
9004int
9005main ()
9006{
9007return opendir ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012for ac_lib in '' x; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020if { (ac_try="$ac_link"
9021case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047esac
9048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009053 ac_cv_search_opendir=$ac_res
9054else
9055 echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059fi
9060
Bill Wendlingebcceee2009-04-18 11:20:33 +00009061rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009062 conftest$ac_exeext
9063 if test "${ac_cv_search_opendir+set}" = set; then
9064 break
9065fi
9066done
9067if test "${ac_cv_search_opendir+set}" = set; then
9068 :
9069else
9070 ac_cv_search_opendir=no
9071fi
9072rm conftest.$ac_ext
9073LIBS=$ac_func_search_save_LIBS
9074fi
9075{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077ac_res=$ac_cv_search_opendir
9078if test "$ac_res" != no; then
9079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080
9081fi
9082
9083fi
John Criswell7a73b802003-06-30 21:59:07 +00009084
9085
9086for ac_header in dlfcn.h
9087do
9088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009093 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009094fi
Reid Spencera773bd52006-08-04 18:18:08 +00009095ac_res=`eval echo '${'$as_ac_Header'}'`
9096 { echo "$as_me:$LINENO: result: $ac_res" >&5
9097echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009098else
Brian Gaeke0a621332004-09-08 20:38:05 +00009099 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009100{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009102cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009103/* confdefs.h. */
9104_ACEOF
9105cat confdefs.h >>conftest.$ac_ext
9106cat >>conftest.$ac_ext <<_ACEOF
9107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009108$ac_includes_default
9109#include <$ac_header>
9110_ACEOF
9111rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009112if { (ac_try="$ac_compile"
9113case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126 { (case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9129esac
9130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_try") 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_try") 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009145 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009146else
9147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009148sed 's/^/| /' conftest.$ac_ext >&5
9149
Reid Spencera773bd52006-08-04 18:18:08 +00009150 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009151fi
Reid Spencera773bd52006-08-04 18:18:08 +00009152
9153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009156
9157# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009160cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009161/* confdefs.h. */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */
9166#include <$ac_header>
9167_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009168if { (ac_try="$ac_cpp conftest.$ac_ext"
9169case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172esac
9173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009180 (exit $ac_status); } >/dev/null; then
9181 if test -s conftest.err; then
9182 ac_cpp_err=$ac_c_preproc_warn_flag
9183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9184 else
9185 ac_cpp_err=
9186 fi
9187else
9188 ac_cpp_err=yes
9189fi
9190if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009191 ac_header_preproc=yes
9192else
9193 echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 ac_header_preproc=no
9197fi
Reid Spencera773bd52006-08-04 18:18:08 +00009198
Brian Gaeke0a621332004-09-08 20:38:05 +00009199rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9201echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009202
9203# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9205 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9210 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009211 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009212 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009225 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009226## ----------------------------------- ##
9227## Report this to llvmbugs@cs.uiuc.edu ##
9228## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009229_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009230 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009231 ;;
9232esac
Reid Spencera773bd52006-08-04 18:18:08 +00009233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009238 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009239fi
Reid Spencera773bd52006-08-04 18:18:08 +00009240ac_res=`eval echo '${'$as_ac_Header'}'`
9241 { echo "$as_me:$LINENO: result: $ac_res" >&5
9242echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009243
9244fi
John Criswell7a73b802003-06-30 21:59:07 +00009245if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246 cat >>confdefs.h <<_ACEOF
9247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248_ACEOF
9249
9250fi
9251
9252done
9253
Reid Spencera773bd52006-08-04 18:18:08 +00009254# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009256 enableval=$enable_ltdl_install;
9257fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259
Bill Wendlingebcceee2009-04-18 11:20:33 +00009260
9261
9262if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009263 INSTALL_LTDL_TRUE=
9264 INSTALL_LTDL_FALSE='#'
9265else
9266 INSTALL_LTDL_TRUE='#'
9267 INSTALL_LTDL_FALSE=
9268fi
9269
Bill Wendlingebcceee2009-04-18 11:20:33 +00009270
9271
9272if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273 CONVENIENCE_LTDL_TRUE=
9274 CONVENIENCE_LTDL_FALSE='#'
9275else
9276 CONVENIENCE_LTDL_TRUE='#'
9277 CONVENIENCE_LTDL_FALSE=
9278fi
9279
9280
Reid Spencera773bd52006-08-04 18:18:08 +00009281{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9282echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283library_names_spec=
9284libname_spec='lib$name'
9285soname_spec=
9286shrext_cmds=".so"
9287postinstall_cmds=
9288postuninstall_cmds=
9289finish_cmds=
9290finish_eval=
9291shlibpath_var=
9292shlibpath_overrides_runpath=unknown
9293version_type=none
9294dynamic_linker="$host_os ld.so"
9295sys_lib_dlsearch_path_spec="/lib /usr/lib"
9296if test "$GCC" = yes; then
9297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9298 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9299 # if the path contains ";" then we assume it to be the separator
9300 # otherwise default to the standard path separator (i.e. ":") - it is
9301 # assumed that no part of a normal pathname contains ";" but that should
9302 # okay in the real world where ";" in dirpaths is itself problematic.
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9304 else
9305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9306 fi
9307else
9308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9309fi
9310need_lib_prefix=unknown
9311hardcode_into_libs=no
9312
9313# when you set need_version to no, make sure it does not cause -set_version
9314# flags to be left without arguments
9315need_version=unknown
9316
9317case $host_os in
9318aix3*)
9319 version_type=linux
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9321 shlibpath_var=LIBPATH
9322
9323 # AIX 3 has no versioning support, so we append a major version to the name.
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 ;;
9326
9327aix4* | aix5*)
9328 version_type=linux
9329 need_lib_prefix=no
9330 need_version=no
9331 hardcode_into_libs=yes
9332 if test "$host_cpu" = ia64; then
9333 # AIX 5 supports IA64
9334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 else
9337 # With GCC up to 2.95.x, collect2 would create an import file
9338 # for dependence libraries. The import file would start with
9339 # the line `#! .'. This would cause the generated library to
9340 # depend on `.', always an invalid library. This was fixed in
9341 # development snapshots of GCC prior to 3.0.
9342 case $host_os in
9343 aix4 | aix4.[01] | aix4.[01].*)
9344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9345 echo ' yes '
9346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9347 :
9348 else
9349 can_build_shared=no
9350 fi
9351 ;;
9352 esac
9353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9354 # soname into executable. Probably we can add versioning support to
9355 # collect2, so additional links can be useful in future.
9356 if test "$aix_use_runtimelinking" = yes; then
9357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9358 # instead of lib<name>.a to let people know that these are not
9359 # typical AIX shared libraries.
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 else
9362 # We preserve .a as extension for shared libraries through AIX4.2
9363 # and later when we are not doing run time linking.
9364 library_names_spec='${libname}${release}.a $libname.a'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 fi
9367 shlibpath_var=LIBPATH
9368 fi
9369 ;;
9370
9371amigaos*)
9372 library_names_spec='$libname.ixlibrary $libname.a'
9373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9374 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'
9375 ;;
9376
9377beos*)
9378 library_names_spec='${libname}${shared_ext}'
9379 dynamic_linker="$host_os ld.so"
9380 shlibpath_var=LIBRARY_PATH
9381 ;;
9382
9383bsdi[45]*)
9384 version_type=linux
9385 need_version=no
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9392 # the default ld.so.conf also contains /usr/contrib/lib and
9393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9394 # libtool to hard-code these into programs
9395 ;;
9396
9397cygwin* | mingw* | pw32*)
9398 version_type=windows
9399 shrext_cmds=".dll"
9400 need_version=no
9401 need_lib_prefix=no
9402
9403 case $GCC,$host_os in
9404 yes,cygwin* | yes,mingw* | yes,pw32*)
9405 library_names_spec='$libname.dll.a'
9406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9407 postinstall_cmds='base_file=`basename \${file}`~
9408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9409 dldir=$destdir/`dirname \$dlpath`~
9410 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009411 $install_prog $dir/$dlname \$dldir/$dlname~
9412 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9414 dlpath=$dir/\$dldll~
9415 $rm \$dlpath'
9416 shlibpath_overrides_runpath=yes
9417
9418 case $host_os in
9419 cygwin*)
9420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9423 ;;
9424 mingw*)
9425 # MinGW DLLs use traditional 'lib' prefix
9426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9429 # It is most probably a Windows format PATH printed by
9430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9431 # path with ; separators, and with drive letters. We can handle the
9432 # drive letters (cygwin fileutils understands them), so leave them,
9433 # especially as we might pass files found there to a mingw objdump,
9434 # which wouldn't understand a cygwinified path. Ahh.
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9436 else
9437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9438 fi
9439 ;;
9440 pw32*)
9441 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009442 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 +00009443 ;;
9444 esac
9445 ;;
9446
9447 *)
9448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9449 ;;
9450 esac
9451 dynamic_linker='Win32 ld.exe'
9452 # FIXME: first we should search . and the directory the executable is in
9453 shlibpath_var=PATH
9454 ;;
9455
9456darwin* | rhapsody*)
9457 dynamic_linker="$host_os dyld"
9458 version_type=darwin
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9462 soname_spec='${libname}${release}${major}$shared_ext'
9463 shlibpath_overrides_runpath=yes
9464 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009465 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9467 if test "$GCC" = yes; then
9468 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"`
9469 else
9470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9471 fi
9472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9473 ;;
9474
9475dgux*)
9476 version_type=linux
9477 need_lib_prefix=no
9478 need_version=no
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 ;;
9483
9484freebsd1*)
9485 dynamic_linker=no
9486 ;;
9487
9488kfreebsd*-gnu)
9489 version_type=linux
9490 need_lib_prefix=no
9491 need_version=no
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=no
9496 hardcode_into_libs=yes
9497 dynamic_linker='GNU ld.so'
9498 ;;
9499
Reid Spencera773bd52006-08-04 18:18:08 +00009500freebsd* | dragonfly*)
9501 # DragonFly does not have aout. When/if they implement a new
9502 # versioning mechanism, adjust this.
9503 if test -x /usr/bin/objformat; then
9504 objformat=`/usr/bin/objformat`
9505 else
9506 case $host_os in
9507 freebsd[123]*) objformat=aout ;;
9508 *) objformat=elf ;;
9509 esac
9510 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 version_type=freebsd-$objformat
9512 case $version_type in
9513 freebsd-elf*)
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515 need_version=no
9516 need_lib_prefix=no
9517 ;;
9518 freebsd-*)
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520 need_version=yes
9521 ;;
9522 esac
9523 shlibpath_var=LD_LIBRARY_PATH
9524 case $host_os in
9525 freebsd2*)
9526 shlibpath_overrides_runpath=yes
9527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009528 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534 shlibpath_overrides_runpath=no
9535 hardcode_into_libs=yes
9536 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009537 freebsd*) # from 4.6 on
9538 shlibpath_overrides_runpath=yes
9539 hardcode_into_libs=yes
9540 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541 esac
9542 ;;
9543
9544gnu*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 hardcode_into_libs=yes
9552 ;;
9553
9554hpux9* | hpux10* | hpux11*)
9555 # Give a soname corresponding to the major version so that dld.sl refuses to
9556 # link against other versions.
9557 version_type=sunos
9558 need_lib_prefix=no
9559 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009560 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561 ia64*)
9562 shrext_cmds='.so'
9563 hardcode_into_libs=yes
9564 dynamic_linker="$host_os dld.so"
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 if test "X$HPUX_IA64_MODE" = X32; then
9570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571 else
9572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573 fi
9574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575 ;;
9576 hppa*64*)
9577 shrext_cmds='.sl'
9578 hardcode_into_libs=yes
9579 dynamic_linker="$host_os dld.sl"
9580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586 ;;
9587 *)
9588 shrext_cmds='.sl'
9589 dynamic_linker="$host_os dld.sl"
9590 shlibpath_var=SHLIB_PATH
9591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 ;;
9595 esac
9596 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597 postinstall_cmds='chmod 555 $lib'
9598 ;;
9599
Reid Spencera773bd52006-08-04 18:18:08 +00009600interix3*)
9601 version_type=linux
9602 need_lib_prefix=no
9603 need_version=no
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=no
9609 hardcode_into_libs=yes
9610 ;;
9611
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612irix5* | irix6* | nonstopux*)
9613 case $host_os in
9614 nonstopux*) version_type=nonstopux ;;
9615 *)
9616 if test "$lt_cv_prog_gnu_ld" = yes; then
9617 version_type=linux
9618 else
9619 version_type=irix
9620 fi ;;
9621 esac
9622 need_lib_prefix=no
9623 need_version=no
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626 case $host_os in
9627 irix5* | nonstopux*)
9628 libsuff= shlibsuff=
9629 ;;
9630 *)
9631 case $LD in # libtool.m4 will add one of these switches to LD
9632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633 libsuff= shlibsuff= libmagic=32-bit;;
9634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635 libsuff=32 shlibsuff=N32 libmagic=N32;;
9636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638 *) libsuff= shlibsuff= libmagic=never-match;;
9639 esac
9640 ;;
9641 esac
9642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643 shlibpath_overrides_runpath=no
9644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9646 hardcode_into_libs=yes
9647 ;;
9648
9649# No shared lib support for Linux oldld, aout, or coff.
9650linux*oldld* | linux*aout* | linux*coff*)
9651 dynamic_linker=no
9652 ;;
9653
9654# This must be Linux ELF.
9655linux*)
9656 version_type=linux
9657 need_lib_prefix=no
9658 need_version=no
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 # This implies no fast_install, which is unacceptable.
9665 # Some rework will be needed to allow for fast_install
9666 # before this can be enabled.
9667 hardcode_into_libs=yes
9668
9669 # Append ld.so.conf contents to the search path
9670 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009671 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 +00009672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9673 fi
9674
9675 # We used to test for /lib/ld.so.1 and disable shared libraries on
9676 # powerpc, because MkLinux only supported shared libraries with the
9677 # GNU dynamic linker. Since this was broken with cross compilers,
9678 # most powerpc-linux boxes support dynamic linking these days and
9679 # people can always --disable-shared, the test was removed, and we
9680 # assume the GNU/Linux dynamic linker is in use.
9681 dynamic_linker='GNU/Linux ld.so'
9682 ;;
9683
9684knetbsd*-gnu)
9685 version_type=linux
9686 need_lib_prefix=no
9687 need_version=no
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=no
9692 hardcode_into_libs=yes
9693 dynamic_linker='GNU ld.so'
9694 ;;
9695
9696netbsd*)
9697 version_type=sunos
9698 need_lib_prefix=no
9699 need_version=no
9700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9703 dynamic_linker='NetBSD (a.out) ld.so'
9704 else
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 dynamic_linker='NetBSD ld.elf_so'
9708 fi
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=yes
9711 hardcode_into_libs=yes
9712 ;;
9713
9714newsos6)
9715 version_type=linux
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9719 ;;
9720
9721nto-qnx*)
9722 version_type=linux
9723 need_lib_prefix=no
9724 need_version=no
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes
9729 ;;
9730
9731openbsd*)
9732 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009733 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9736 case $host_os in
9737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9738 *) need_version=no ;;
9739 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9744 case $host_os in
9745 openbsd2.[89] | openbsd2.[89].*)
9746 shlibpath_overrides_runpath=no
9747 ;;
9748 *)
9749 shlibpath_overrides_runpath=yes
9750 ;;
9751 esac
9752 else
9753 shlibpath_overrides_runpath=yes
9754 fi
9755 ;;
9756
9757os2*)
9758 libname_spec='$name'
9759 shrext_cmds=".dll"
9760 need_lib_prefix=no
9761 library_names_spec='$libname${shared_ext} $libname.a'
9762 dynamic_linker='OS/2 ld.exe'
9763 shlibpath_var=LIBPATH
9764 ;;
9765
9766osf3* | osf4* | osf5*)
9767 version_type=osf
9768 need_lib_prefix=no
9769 need_version=no
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9775 ;;
9776
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777solaris*)
9778 version_type=linux
9779 need_lib_prefix=no
9780 need_version=no
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=yes
9785 hardcode_into_libs=yes
9786 # ldd complains unless libraries are executable
9787 postinstall_cmds='chmod +x $lib'
9788 ;;
9789
9790sunos4*)
9791 version_type=sunos
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=yes
9796 if test "$with_gnu_ld" = yes; then
9797 need_lib_prefix=no
9798 fi
9799 need_version=yes
9800 ;;
9801
Reid Spencera773bd52006-08-04 18:18:08 +00009802sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 version_type=linux
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 case $host_vendor in
9808 sni)
9809 shlibpath_overrides_runpath=no
9810 need_lib_prefix=no
9811 export_dynamic_flag_spec='${wl}-Blargedynsym'
9812 runpath_var=LD_RUN_PATH
9813 ;;
9814 siemens)
9815 need_lib_prefix=no
9816 ;;
9817 motorola)
9818 need_lib_prefix=no
9819 need_version=no
9820 shlibpath_overrides_runpath=no
9821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9822 ;;
9823 esac
9824 ;;
9825
9826sysv4*MP*)
9827 if test -d /usr/nec ;then
9828 version_type=linux
9829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9830 soname_spec='$libname${shared_ext}.$major'
9831 shlibpath_var=LD_LIBRARY_PATH
9832 fi
9833 ;;
9834
Reid Spencera773bd52006-08-04 18:18:08 +00009835sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9836 version_type=freebsd-elf
9837 need_lib_prefix=no
9838 need_version=no
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 hardcode_into_libs=yes
9843 if test "$with_gnu_ld" = yes; then
9844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9845 shlibpath_overrides_runpath=no
9846 else
9847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9848 shlibpath_overrides_runpath=yes
9849 case $host_os in
9850 sco3.2v5*)
9851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9852 ;;
9853 esac
9854 fi
9855 sys_lib_dlsearch_path_spec='/usr/lib'
9856 ;;
9857
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858uts4*)
9859 version_type=linux
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 ;;
9864
9865*)
9866 dynamic_linker=no
9867 ;;
9868esac
Reid Spencera773bd52006-08-04 18:18:08 +00009869{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9870echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871test "$dynamic_linker" = no && can_build_shared=no
9872
Reid Spencera773bd52006-08-04 18:18:08 +00009873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9874if test "$GCC" = yes; then
9875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9876fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877
Reid Spencera773bd52006-08-04 18:18:08 +00009878
9879{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9880echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881if test "${libltdl_cv_shlibext+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884
9885module=yes
9886eval libltdl_cv_shlibext=$shrext_cmds
9887
9888fi
Reid Spencera773bd52006-08-04 18:18:08 +00009889{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9890echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891if test -n "$libltdl_cv_shlibext"; then
9892
9893cat >>confdefs.h <<_ACEOF
9894#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9895_ACEOF
9896
9897fi
9898
9899
Reid Spencera773bd52006-08-04 18:18:08 +00009900{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9901echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902if test "${libltdl_cv_shlibpath_var+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904else
9905 libltdl_cv_shlibpath_var="$shlibpath_var"
9906fi
Reid Spencera773bd52006-08-04 18:18:08 +00009907{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9908echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909if test -n "$libltdl_cv_shlibpath_var"; then
9910
9911cat >>confdefs.h <<_ACEOF
9912#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9913_ACEOF
9914
9915fi
9916
9917
Reid Spencera773bd52006-08-04 18:18:08 +00009918{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9919echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920if test "${libltdl_cv_sys_search_path+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9924fi
Reid Spencera773bd52006-08-04 18:18:08 +00009925{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9926echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927if test -n "$libltdl_cv_sys_search_path"; then
9928 sys_search_path=
9929 for dir in $libltdl_cv_sys_search_path; do
9930 if test -z "$sys_search_path"; then
9931 sys_search_path="$dir"
9932 else
9933 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9934 fi
9935 done
9936
9937cat >>confdefs.h <<_ACEOF
9938#define LTDL_SYSSEARCHPATH "$sys_search_path"
9939_ACEOF
9940
9941fi
9942
Reid Spencera773bd52006-08-04 18:18:08 +00009943{ echo "$as_me:$LINENO: checking for objdir" >&5
9944echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945if test "${libltdl_cv_objdir+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948 libltdl_cv_objdir="$objdir"
9949 if test -n "$objdir"; then
9950 :
9951 else
9952 rm -f .libs 2>/dev/null
9953 mkdir .libs 2>/dev/null
9954 if test -d .libs; then
9955 libltdl_cv_objdir=.libs
9956 else
9957 # MS-DOS does not allow filenames that begin with a dot.
9958 libltdl_cv_objdir=_libs
9959 fi
9960 rmdir .libs 2>/dev/null
9961 fi
9962
9963fi
Reid Spencera773bd52006-08-04 18:18:08 +00009964{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9965echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966
9967cat >>confdefs.h <<_ACEOF
9968#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9969_ACEOF
9970
9971
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972
9973
9974
9975
9976# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009977{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9978echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982
9983# These are sane defaults that work on at least a few old systems.
9984# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9985
9986# Character class describing NM global symbol codes.
9987symcode='[BCDEGRST]'
9988
9989# Regexp to match symbols that can be accessed directly from C.
9990sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9991
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992# Transform an extracted symbol line into a proper C declaration
9993lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9994
9995# Transform an extracted symbol line into symbol name and symbol address
9996lt_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'"
9997
9998# Define system-specific variables.
9999case $host_os in
10000aix*)
10001 symcode='[BCDT]'
10002 ;;
10003cygwin* | mingw* | pw32*)
10004 symcode='[ABCDGISTW]'
10005 ;;
10006hpux*) # Its linker distinguishes data from code symbols
10007 if test "$host_cpu" = ia64; then
10008 symcode='[ABCDEGRST]'
10009 fi
10010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10011 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'"
10012 ;;
10013linux*)
10014 if test "$host_cpu" = ia64; then
10015 symcode='[ABCDGIRSTW]'
10016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10017 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'"
10018 fi
10019 ;;
10020irix* | nonstopux*)
10021 symcode='[BCDEGRST]'
10022 ;;
10023osf*)
10024 symcode='[BCDEGQRST]'
10025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010026solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027 symcode='[BDRT]'
10028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010029sco3.2v5*)
10030 symcode='[DT]'
10031 ;;
10032sysv4.2uw2*)
10033 symcode='[DT]'
10034 ;;
10035sysv5* | sco5v6* | unixware* | OpenUNIX*)
10036 symcode='[ABDT]'
10037 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038sysv4)
10039 symcode='[DFNSTU]'
10040 ;;
10041esac
10042
10043# Handle CRLF in mingw tool chain
10044opt_cr=
10045case $build_os in
10046mingw*)
10047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10048 ;;
10049esac
10050
10051# If we're using GNU nm, then use its standard symbol codes.
10052case `$NM -V 2>&1` in
10053*GNU* | *'with BFD'*)
10054 symcode='[ABCDGIRSTW]' ;;
10055esac
10056
10057# Try without a prefix undercore, then with it.
10058for ac_symprfx in "" "_"; do
10059
Reid Spencera773bd52006-08-04 18:18:08 +000010060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10061 symxfrm="\\1 $ac_symprfx\\2 \\2"
10062
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010064 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 +000010065
10066 # Check to see that the pipe works correctly.
10067 pipe_works=no
10068
10069 rm -f conftest*
10070 cat > conftest.$ac_ext <<EOF
10071#ifdef __cplusplus
10072extern "C" {
10073#endif
10074char nm_test_var;
10075void nm_test_func(){}
10076#ifdef __cplusplus
10077}
10078#endif
10079int main(){nm_test_var='a';nm_test_func();return(0);}
10080EOF
10081
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083 (eval $ac_compile) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; then
10087 # Now try to grab the symbols.
10088 nlist=conftest.nm
10089 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10090 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } && test -s "$nlist"; then
10094 # Try sorting and uniquifying the output.
10095 if sort "$nlist" | uniq > "$nlist"T; then
10096 mv -f "$nlist"T "$nlist"
10097 else
10098 rm -f "$nlist"T
10099 fi
10100
10101 # Make sure that we snagged all the symbols we need.
10102 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10103 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10104 cat <<EOF > conftest.$ac_ext
10105#ifdef __cplusplus
10106extern "C" {
10107#endif
10108
10109EOF
10110 # Now generate the symbol file.
10111 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10112
10113 cat <<EOF >> conftest.$ac_ext
10114#if defined (__STDC__) && __STDC__
10115# define lt_ptr_t void *
10116#else
10117# define lt_ptr_t char *
10118# define const
10119#endif
10120
10121/* The mapping between symbol names and symbols. */
10122const struct {
10123 const char *name;
10124 lt_ptr_t address;
10125}
10126lt_preloaded_symbols[] =
10127{
10128EOF
10129 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10130 cat <<\EOF >> conftest.$ac_ext
10131 {0, (lt_ptr_t) 0}
10132};
10133
10134#ifdef __cplusplus
10135}
10136#endif
10137EOF
10138 # Now try linking the two files.
10139 mv conftest.$ac_objext conftstm.$ac_objext
10140 lt_save_LIBS="$LIBS"
10141 lt_save_CFLAGS="$CFLAGS"
10142 LIBS="conftstm.$ac_objext"
10143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10149 pipe_works=yes
10150 fi
10151 LIBS="$lt_save_LIBS"
10152 CFLAGS="$lt_save_CFLAGS"
10153 else
10154 echo "cannot find nm_test_func in $nlist" >&5
10155 fi
10156 else
10157 echo "cannot find nm_test_var in $nlist" >&5
10158 fi
10159 else
10160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10161 fi
10162 else
10163 echo "$progname: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 fi
10166 rm -f conftest* conftst*
10167
10168 # Do not use the global_symbol_pipe unless it works.
10169 if test "$pipe_works" = yes; then
10170 break
10171 else
10172 lt_cv_sys_global_symbol_pipe=
10173 fi
10174done
10175
10176fi
10177
10178if test -z "$lt_cv_sys_global_symbol_pipe"; then
10179 lt_cv_sys_global_symbol_to_cdecl=
10180fi
10181if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010182 { echo "$as_me:$LINENO: result: failed" >&5
10183echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184else
Reid Spencera773bd52006-08-04 18:18:08 +000010185 { echo "$as_me:$LINENO: result: ok" >&5
10186echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187fi
10188
10189
Reid Spencera773bd52006-08-04 18:18:08 +000010190{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10191echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10196 libltdl_cv_preloaded_symbols=yes
10197 else
10198 libltdl_cv_preloaded_symbols=no
10199 fi
10200
10201fi
Reid Spencera773bd52006-08-04 18:18:08 +000010202{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10203echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10205
10206cat >>confdefs.h <<\_ACEOF
10207#define HAVE_PRELOADED_SYMBOLS 1
10208_ACEOF
10209
10210fi
10211
10212LIBADD_DL=
10213
10214ac_ext=c
10215ac_cpp='$CPP $CPPFLAGS'
10216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221{ echo "$as_me:$LINENO: checking for shl_load" >&5
10222echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223if test "${ac_cv_func_shl_load+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
10232/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234#define shl_load innocuous_shl_load
10235
10236/* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char shl_load (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10240
10241#ifdef __STDC__
10242# include <limits.h>
10243#else
10244# include <assert.h>
10245#endif
10246
10247#undef shl_load
10248
Reid Spencera773bd52006-08-04 18:18:08 +000010249/* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252#ifdef __cplusplus
10253extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255char shl_load ();
10256/* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010259#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261#endif
10262
10263int
10264main ()
10265{
Reid Spencera773bd52006-08-04 18:18:08 +000010266return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267 ;
10268 return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305 ac_cv_func_shl_load=yes
10306else
10307 echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
Reid Spencera773bd52006-08-04 18:18:08 +000010310 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311fi
Reid Spencera773bd52006-08-04 18:18:08 +000010312
Bill Wendlingebcceee2009-04-18 11:20:33 +000010313rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314 conftest$ac_exeext conftest.$ac_ext
10315fi
Reid Spencera773bd52006-08-04 18:18:08 +000010316{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10317echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318if test $ac_cv_func_shl_load = yes; then
10319
10320cat >>confdefs.h <<\_ACEOF
10321#define HAVE_SHL_LOAD 1
10322_ACEOF
10323
10324else
Reid Spencera773bd52006-08-04 18:18:08 +000010325 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10326echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330 ac_check_lib_save_LIBS=$LIBS
10331LIBS="-ldld $LIBS"
10332cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h. */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h. */
10338
Reid Spencera773bd52006-08-04 18:18:08 +000010339/* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342#ifdef __cplusplus
10343extern "C"
10344#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345char shl_load ();
10346int
10347main ()
10348{
Reid Spencera773bd52006-08-04 18:18:08 +000010349return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350 ;
10351 return 0;
10352}
10353_ACEOF
10354rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010355if { (ac_try="$ac_link"
10356case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10359esac
10360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010367 (exit $ac_status); } &&
10368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382esac
10383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_try") 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388 ac_cv_lib_dld_shl_load=yes
10389else
10390 echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
Reid Spencera773bd52006-08-04 18:18:08 +000010393 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394fi
Reid Spencera773bd52006-08-04 18:18:08 +000010395
Bill Wendlingebcceee2009-04-18 11:20:33 +000010396rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397 conftest$ac_exeext conftest.$ac_ext
10398LIBS=$ac_check_lib_save_LIBS
10399fi
Reid Spencera773bd52006-08-04 18:18:08 +000010400{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10401echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402if test $ac_cv_lib_dld_shl_load = yes; then
10403
10404cat >>confdefs.h <<\_ACEOF
10405#define HAVE_SHL_LOAD 1
10406_ACEOF
10407
10408 LIBADD_DL="$LIBADD_DL -ldld"
10409else
Reid Spencera773bd52006-08-04 18:18:08 +000010410 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10411echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415 ac_check_lib_save_LIBS=$LIBS
10416LIBS="-ldl $LIBS"
10417cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h. */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */
10423
Reid Spencera773bd52006-08-04 18:18:08 +000010424/* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427#ifdef __cplusplus
10428extern "C"
10429#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430char dlopen ();
10431int
10432main ()
10433{
Reid Spencera773bd52006-08-04 18:18:08 +000010434return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 ;
10436 return 0;
10437}
10438_ACEOF
10439rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010440if { (ac_try="$ac_link"
10441case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444esac
10445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454 { (case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457esac
10458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_try") 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest$ac_exeext'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467esac
10468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473 ac_cv_lib_dl_dlopen=yes
10474else
10475 echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
Reid Spencera773bd52006-08-04 18:18:08 +000010478 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479fi
Reid Spencera773bd52006-08-04 18:18:08 +000010480
Bill Wendlingebcceee2009-04-18 11:20:33 +000010481rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482 conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
10484fi
Reid Spencera773bd52006-08-04 18:18:08 +000010485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10486echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487if test $ac_cv_lib_dl_dlopen = yes; then
10488
10489cat >>confdefs.h <<\_ACEOF
10490#define HAVE_LIBDL 1
10491_ACEOF
10492
10493 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10494else
10495 cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501#if HAVE_DLFCN_H
10502# include <dlfcn.h>
10503#endif
10504
10505int
10506main ()
10507{
10508dlopen(0, 0);
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547
10548cat >>confdefs.h <<\_ACEOF
10549#define HAVE_LIBDL 1
10550_ACEOF
10551 libltdl_cv_func_dlopen="yes"
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
Reid Spencera773bd52006-08-04 18:18:08 +000010556 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10557echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10560else
10561 ac_check_lib_save_LIBS=$LIBS
10562LIBS="-lsvld $LIBS"
10563cat >conftest.$ac_ext <<_ACEOF
10564/* confdefs.h. */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h. */
10569
Reid Spencera773bd52006-08-04 18:18:08 +000010570/* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573#ifdef __cplusplus
10574extern "C"
10575#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576char dlopen ();
10577int
10578main ()
10579{
Reid Spencera773bd52006-08-04 18:18:08 +000010580return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581 ;
10582 return 0;
10583}
10584_ACEOF
10585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010586if { (ac_try="$ac_link"
10587case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603esac
10604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619 ac_cv_lib_svld_dlopen=yes
10620else
10621 echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
Reid Spencera773bd52006-08-04 18:18:08 +000010624 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625fi
Reid Spencera773bd52006-08-04 18:18:08 +000010626
Bill Wendlingebcceee2009-04-18 11:20:33 +000010627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628 conftest$ac_exeext conftest.$ac_ext
10629LIBS=$ac_check_lib_save_LIBS
10630fi
Reid Spencera773bd52006-08-04 18:18:08 +000010631{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10632echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633if test $ac_cv_lib_svld_dlopen = yes; then
10634
10635cat >>confdefs.h <<\_ACEOF
10636#define HAVE_LIBDL 1
10637_ACEOF
10638
10639 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10640else
Reid Spencera773bd52006-08-04 18:18:08 +000010641 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10642echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645else
10646 ac_check_lib_save_LIBS=$LIBS
10647LIBS="-ldld $LIBS"
10648cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
10654
Reid Spencera773bd52006-08-04 18:18:08 +000010655/* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658#ifdef __cplusplus
10659extern "C"
10660#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661char dld_link ();
10662int
10663main ()
10664{
Reid Spencera773bd52006-08-04 18:18:08 +000010665return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 ;
10667 return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010671if { (ac_try="$ac_link"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685 { (case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_try") 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest$ac_exeext'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698esac
10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010704 ac_cv_lib_dld_dld_link=yes
10705else
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
Reid Spencera773bd52006-08-04 18:18:08 +000010709 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710fi
Reid Spencera773bd52006-08-04 18:18:08 +000010711
Bill Wendlingebcceee2009-04-18 11:20:33 +000010712rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 conftest$ac_exeext conftest.$ac_ext
10714LIBS=$ac_check_lib_save_LIBS
10715fi
Reid Spencera773bd52006-08-04 18:18:08 +000010716{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10717echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718if test $ac_cv_lib_dld_dld_link = yes; then
10719
10720cat >>confdefs.h <<\_ACEOF
10721#define HAVE_DLD 1
10722_ACEOF
10723
10724 LIBADD_DL="$LIBADD_DL -ldld"
10725else
Reid Spencera773bd52006-08-04 18:18:08 +000010726 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10727echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730else
10731 cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739#define _dyld_func_lookup innocuous__dyld_func_lookup
10740
10741/* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char _dyld_func_lookup (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10745
10746#ifdef __STDC__
10747# include <limits.h>
10748#else
10749# include <assert.h>
10750#endif
10751
10752#undef _dyld_func_lookup
10753
Reid Spencera773bd52006-08-04 18:18:08 +000010754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757#ifdef __cplusplus
10758extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760char _dyld_func_lookup ();
10761/* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010764#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766#endif
10767
10768int
10769main ()
10770{
Reid Spencera773bd52006-08-04 18:18:08 +000010771return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010777if { (ac_try="$ac_link"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810 ac_cv_func__dyld_func_lookup=yes
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
Reid Spencera773bd52006-08-04 18:18:08 +000010815 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816fi
Reid Spencera773bd52006-08-04 18:18:08 +000010817
Bill Wendlingebcceee2009-04-18 11:20:33 +000010818rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 conftest$ac_exeext conftest.$ac_ext
10820fi
Reid Spencera773bd52006-08-04 18:18:08 +000010821{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10822echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823if test $ac_cv_func__dyld_func_lookup = yes; then
10824
10825cat >>confdefs.h <<\_ACEOF
10826#define HAVE_DYLD 1
10827_ACEOF
10828
10829fi
10830
10831
10832fi
10833
10834
10835fi
10836
10837
10838fi
Reid Spencera773bd52006-08-04 18:18:08 +000010839
Bill Wendlingebcceee2009-04-18 11:20:33 +000010840rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841 conftest$ac_exeext conftest.$ac_ext
10842
10843fi
10844
10845
10846fi
10847
10848
10849fi
10850
10851
10852if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10853then
10854 lt_save_LIBS="$LIBS"
10855 LIBS="$LIBS $LIBADD_DL"
10856
10857for ac_func in dlerror
10858do
10859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873#define $ac_func innocuous_$ac_func
10874
10875/* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10879
10880#ifdef __STDC__
10881# include <limits.h>
10882#else
10883# include <assert.h>
10884#endif
10885
10886#undef $ac_func
10887
Reid Spencera773bd52006-08-04 18:18:08 +000010888/* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891#ifdef __cplusplus
10892extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894char $ac_func ();
10895/* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010898#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900#endif
10901
10902int
10903main ()
10904{
Reid Spencera773bd52006-08-04 18:18:08 +000010905return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906 ;
10907 return 0;
10908}
10909_ACEOF
10910rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010911if { (ac_try="$ac_link"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10925 { (case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
10929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_try") 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944 eval "$as_ac_var=yes"
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
Reid Spencera773bd52006-08-04 18:18:08 +000010949 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950fi
Reid Spencera773bd52006-08-04 18:18:08 +000010951
Bill Wendlingebcceee2009-04-18 11:20:33 +000010952rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953 conftest$ac_exeext conftest.$ac_ext
10954fi
Reid Spencera773bd52006-08-04 18:18:08 +000010955ac_res=`eval echo '${'$as_ac_var'}'`
10956 { echo "$as_me:$LINENO: result: $ac_res" >&5
10957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958if test `eval echo '${'$as_ac_var'}'` = yes; then
10959 cat >>confdefs.h <<_ACEOF
10960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10961_ACEOF
10962
10963fi
10964done
10965
10966 LIBS="$lt_save_LIBS"
10967fi
10968ac_ext=c
10969ac_cpp='$CPP $CPPFLAGS'
10970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10972ac_compiler_gnu=$ac_cv_c_compiler_gnu
10973
10974
10975
Reid Spencera773bd52006-08-04 18:18:08 +000010976{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10977echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980else
10981 ac_cv_sys_symbol_underscore=no
10982 cat > conftest.$ac_ext <<EOF
10983void nm_test_func(){}
10984int main(){nm_test_func;return 0;}
10985EOF
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; then
10991 # Now try to grab the symbols.
10992 ac_nlist=conftest.nm
10993 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10994 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && test -s "$ac_nlist"; then
10998 # See whether the symbols have a leading underscore.
10999 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11000 ac_cv_sys_symbol_underscore=yes
11001 else
11002 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11003 :
11004 else
11005 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11006 fi
11007 fi
11008 else
11009 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11010 fi
11011 else
11012 echo "configure: failed program was:" >&5
11013 cat conftest.c >&5
11014 fi
11015 rm -rf conftest*
11016
11017fi
Reid Spencera773bd52006-08-04 18:18:08 +000011018{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11019echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020
11021
11022if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11023 if test x"$libltdl_cv_func_dlopen" = xyes ||
11024 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011025 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11026echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027if test "${libltdl_cv_need_uscore+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 libltdl_cv_need_uscore=unknown
11031 save_LIBS="$LIBS"
11032 LIBS="$LIBS $LIBADD_DL"
11033 if test "$cross_compiling" = yes; then :
11034 libltdl_cv_need_uscore=cross
11035else
11036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037 lt_status=$lt_dlunknown
11038 cat > conftest.$ac_ext <<EOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000011039#line 11039 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040#include "confdefs.h"
11041
11042#if HAVE_DLFCN_H
11043#include <dlfcn.h>
11044#endif
11045
11046#include <stdio.h>
11047
11048#ifdef RTLD_GLOBAL
11049# define LT_DLGLOBAL RTLD_GLOBAL
11050#else
11051# ifdef DL_GLOBAL
11052# define LT_DLGLOBAL DL_GLOBAL
11053# else
11054# define LT_DLGLOBAL 0
11055# endif
11056#endif
11057
11058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059 find out it does not work in some platform. */
11060#ifndef LT_DLLAZY_OR_NOW
11061# ifdef RTLD_LAZY
11062# define LT_DLLAZY_OR_NOW RTLD_LAZY
11063# else
11064# ifdef DL_LAZY
11065# define LT_DLLAZY_OR_NOW DL_LAZY
11066# else
11067# ifdef RTLD_NOW
11068# define LT_DLLAZY_OR_NOW RTLD_NOW
11069# else
11070# ifdef DL_NOW
11071# define LT_DLLAZY_OR_NOW DL_NOW
11072# else
11073# define LT_DLLAZY_OR_NOW 0
11074# endif
11075# endif
11076# endif
11077# endif
11078#endif
11079
11080#ifdef __cplusplus
11081extern "C" void exit (int);
11082#endif
11083
11084void fnord() { int i=42;}
11085int main ()
11086{
11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088 int status = $lt_dlunknown;
11089
11090 if (self)
11091 {
11092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094 /* dlclose (self); */
11095 }
Reid Spencera773bd52006-08-04 18:18:08 +000011096 else
11097 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098
11099 exit (status);
11100}
11101EOF
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011107 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 lt_status=$?
11109 case x$lt_status in
11110 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11111 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011112 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 esac
11114 else :
11115 # compilation failed
11116
11117 fi
11118fi
11119rm -fr conftest*
11120
11121 LIBS="$save_LIBS"
11122
11123fi
Reid Spencera773bd52006-08-04 18:18:08 +000011124{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11125echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126 fi
11127fi
11128
11129if test x"$libltdl_cv_need_uscore" = xyes; then
11130
11131cat >>confdefs.h <<\_ACEOF
11132#define NEED_USCORE 1
11133_ACEOF
11134
11135fi
11136
11137
Reid Spencera773bd52006-08-04 18:18:08 +000011138{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11139echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143 # PORTME does your system automatically load deplibs for dlopen?
11144 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11145 # For now, we just catch OSes we know something about -- in the
11146 # future, we'll try test this programmatically.
11147 libltdl_cv_sys_dlopen_deplibs=unknown
11148 case "$host_os" in
11149 aix3*|aix4.1.*|aix4.2.*)
11150 # Unknown whether this is true for these versions of AIX, but
11151 # we want this `case' here to explicitly catch those versions.
11152 libltdl_cv_sys_dlopen_deplibs=unknown
11153 ;;
11154 aix[45]*)
11155 libltdl_cv_sys_dlopen_deplibs=yes
11156 ;;
11157 darwin*)
11158 # Assuming the user has installed a libdl from somewhere, this is true
11159 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11160 libltdl_cv_sys_dlopen_deplibs=yes
11161 ;;
11162 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11163 # GNU and its variants, using gnu ld.so (Glibc)
11164 libltdl_cv_sys_dlopen_deplibs=yes
11165 ;;
11166 hpux10*|hpux11*)
11167 libltdl_cv_sys_dlopen_deplibs=yes
11168 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011169 interix*)
11170 libltdl_cv_sys_dlopen_deplibs=yes
11171 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172 irix[12345]*|irix6.[01]*)
11173 # Catch all versions of IRIX before 6.2, and indicate that we don't
11174 # know how it worked for any of those versions.
11175 libltdl_cv_sys_dlopen_deplibs=unknown
11176 ;;
11177 irix*)
11178 # The case above catches anything before 6.2, and it's known that
11179 # at 6.2 and later dlopen does load deplibs.
11180 libltdl_cv_sys_dlopen_deplibs=yes
11181 ;;
11182 netbsd*)
11183 libltdl_cv_sys_dlopen_deplibs=yes
11184 ;;
11185 openbsd*)
11186 libltdl_cv_sys_dlopen_deplibs=yes
11187 ;;
11188 osf[1234]*)
11189 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11190 # it did *not* use an RPATH in a shared library to find objects the
11191 # library depends on, so we explictly say `no'.
11192 libltdl_cv_sys_dlopen_deplibs=no
11193 ;;
11194 osf5.0|osf5.0a|osf5.1)
11195 # dlopen *does* load deplibs and with the right loader patch applied
11196 # it even uses RPATH in a shared library to search for shared objects
11197 # that the library depends on, but there's no easy way to know if that
11198 # patch is installed. Since this is the case, all we can really
11199 # say is unknown -- it depends on the patch being installed. If
11200 # it is, this changes to `yes'. Without it, it would be `no'.
11201 libltdl_cv_sys_dlopen_deplibs=unknown
11202 ;;
11203 osf*)
11204 # the two cases above should catch all versions of osf <= 5.1. Read
11205 # the comments above for what we know about them.
11206 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11207 # is used to find them so we can finally say `yes'.
11208 libltdl_cv_sys_dlopen_deplibs=yes
11209 ;;
11210 solaris*)
11211 libltdl_cv_sys_dlopen_deplibs=yes
11212 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11214 libltdl_cv_sys_dlopen_deplibs=yes
11215 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216 esac
11217
11218fi
Reid Spencera773bd52006-08-04 18:18:08 +000011219{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11220echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11222
11223cat >>confdefs.h <<\_ACEOF
11224#define LTDL_DLOPEN_DEPLIBS 1
11225_ACEOF
11226
11227fi
11228
11229
11230for ac_header in argz.h
11231do
11232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238fi
Reid Spencera773bd52006-08-04 18:18:08 +000011239ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242else
11243 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_includes_default
11253#include <$ac_header>
11254_ACEOF
11255rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011256if { (ac_try="$ac_compile"
11257case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289 ac_header_compiler=yes
11290else
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
Reid Spencera773bd52006-08-04 18:18:08 +000011294 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295fi
Reid Spencera773bd52006-08-04 18:18:08 +000011296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300
11301# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11330 fi
11331else
11332 ac_cpp_err=yes
11333fi
11334if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335 ac_header_preproc=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_header_preproc=no
11341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346
11347# So? What about this header?
11348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 yes:no: )
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11355 ;;
11356 no:yes:* )
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011369 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370## ----------------------------------- ##
11371## Report this to llvmbugs@cs.uiuc.edu ##
11372## ----------------------------------- ##
11373_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011374 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375 ;;
11376esac
Reid Spencera773bd52006-08-04 18:18:08 +000011377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 eval "$as_ac_Header=\$ac_header_preproc"
11383fi
Reid Spencera773bd52006-08-04 18:18:08 +000011384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387
11388fi
11389if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392_ACEOF
11393
11394fi
11395
11396done
11397
11398
Reid Spencera773bd52006-08-04 18:18:08 +000011399{ echo "$as_me:$LINENO: checking for error_t" >&5
11400echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401if test "${ac_cv_type_error_t+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#if HAVE_ARGZ_H
11411# include <argz.h>
11412#endif
11413
Reid Spencera773bd52006-08-04 18:18:08 +000011414typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415int
11416main ()
11417{
Reid Spencera773bd52006-08-04 18:18:08 +000011418if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011420if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421 return 0;
11422 ;
11423 return 0;
11424}
11425_ACEOF
11426rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011427if { (ac_try="$ac_compile"
11428case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444esac
11445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454esac
11455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 ac_cv_type_error_t=yes
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
Reid Spencera773bd52006-08-04 18:18:08 +000011465 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466fi
Reid Spencera773bd52006-08-04 18:18:08 +000011467
11468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469fi
Reid Spencera773bd52006-08-04 18:18:08 +000011470{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11471echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472if test $ac_cv_type_error_t = yes; then
11473
11474cat >>confdefs.h <<_ACEOF
11475#define HAVE_ERROR_T 1
11476_ACEOF
11477
11478
11479else
11480
11481cat >>confdefs.h <<\_ACEOF
11482#define error_t int
11483_ACEOF
11484
11485fi
11486
11487
11488
11489
11490
11491
11492
11493for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11494do
11495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500else
11501 cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11509#define $ac_func innocuous_$ac_func
11510
11511/* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func (); below.
11513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514 <limits.h> exists even on freestanding compilers. */
11515
11516#ifdef __STDC__
11517# include <limits.h>
11518#else
11519# include <assert.h>
11520#endif
11521
11522#undef $ac_func
11523
Reid Spencera773bd52006-08-04 18:18:08 +000011524/* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527#ifdef __cplusplus
11528extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530char $ac_func ();
11531/* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011534#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536#endif
11537
11538int
11539main ()
11540{
Reid Spencera773bd52006-08-04 18:18:08 +000011541return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011547if { (ac_try="$ac_link"
11548case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564esac
11565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580 eval "$as_ac_var=yes"
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
Reid Spencera773bd52006-08-04 18:18:08 +000011585 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586fi
Reid Spencera773bd52006-08-04 18:18:08 +000011587
Bill Wendlingebcceee2009-04-18 11:20:33 +000011588rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589 conftest$ac_exeext conftest.$ac_ext
11590fi
Reid Spencera773bd52006-08-04 18:18:08 +000011591ac_res=`eval echo '${'$as_ac_var'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594if test `eval echo '${'$as_ac_var'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597_ACEOF
11598
11599fi
11600done
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11630 stdio.h unistd.h
11631do
11632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638fi
Reid Spencera773bd52006-08-04 18:18:08 +000011639ac_res=`eval echo '${'$as_ac_Header'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642else
11643 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011644{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652$ac_includes_default
11653#include <$ac_header>
11654_ACEOF
11655rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011656if { (ac_try="$ac_compile"
11657case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest.$ac_objext'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683esac
11684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689 ac_header_compiler=yes
11690else
11691 echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
Reid Spencera773bd52006-08-04 18:18:08 +000011694 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695fi
Reid Spencera773bd52006-08-04 18:18:08 +000011696
11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11699echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700
11701# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011702{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704cat >conftest.$ac_ext <<_ACEOF
11705/* confdefs.h. */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h. */
11710#include <$ac_header>
11711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011712if { (ac_try="$ac_cpp conftest.$ac_ext"
11713case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011724 (exit $ac_status); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
11727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11728 else
11729 ac_cpp_err=
11730 fi
11731else
11732 ac_cpp_err=yes
11733fi
11734if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735 ac_header_preproc=yes
11736else
11737 echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_header_preproc=no
11741fi
Reid Spencera773bd52006-08-04 18:18:08 +000011742
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011744{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11745echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746
11747# So? What about this header?
11748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11749 yes:no: )
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11754 ac_header_preproc=yes
11755 ;;
11756 no:yes:* )
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011769 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770## ----------------------------------- ##
11771## Report this to llvmbugs@cs.uiuc.edu ##
11772## ----------------------------------- ##
11773_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011774 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775 ;;
11776esac
Reid Spencera773bd52006-08-04 18:18:08 +000011777{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 eval "$as_ac_Header=\$ac_header_preproc"
11783fi
Reid Spencera773bd52006-08-04 18:18:08 +000011784ac_res=`eval echo '${'$as_ac_Header'}'`
11785 { echo "$as_me:$LINENO: result: $ac_res" >&5
11786echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787
11788fi
11789if test `eval echo '${'$as_ac_Header'}'` = yes; then
11790 cat >>confdefs.h <<_ACEOF
11791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11792_ACEOF
11793
11794fi
11795
11796done
11797
11798
11799
11800
11801
11802for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11803do
11804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810fi
Reid Spencera773bd52006-08-04 18:18:08 +000011811ac_res=`eval echo '${'$as_ac_Header'}'`
11812 { echo "$as_me:$LINENO: result: $ac_res" >&5
11813echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814else
11815 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011816{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818cat >conftest.$ac_ext <<_ACEOF
11819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
11824$ac_includes_default
11825#include <$ac_header>
11826_ACEOF
11827rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011828if { (ac_try="$ac_compile"
11829case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855esac
11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861 ac_header_compiler=yes
11862else
11863 echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
Reid Spencera773bd52006-08-04 18:18:08 +000011866 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867fi
Reid Spencera773bd52006-08-04 18:18:08 +000011868
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872
11873# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011874{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
11882#include <$ac_header>
11883_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011884if { (ac_try="$ac_cpp conftest.$ac_ext"
11885case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888esac
11889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011896 (exit $ac_status); } >/dev/null; then
11897 if test -s conftest.err; then
11898 ac_cpp_err=$ac_c_preproc_warn_flag
11899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11900 else
11901 ac_cpp_err=
11902 fi
11903else
11904 ac_cpp_err=yes
11905fi
11906if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907 ac_header_preproc=yes
11908else
11909 echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912 ac_header_preproc=no
11913fi
Reid Spencera773bd52006-08-04 18:18:08 +000011914
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011916{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918
11919# So? What about this header?
11920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921 yes:no: )
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11926 ac_header_preproc=yes
11927 ;;
11928 no:yes:* )
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011941 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942## ----------------------------------- ##
11943## Report this to llvmbugs@cs.uiuc.edu ##
11944## ----------------------------------- ##
11945_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011946 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 ;;
11948esac
Reid Spencera773bd52006-08-04 18:18:08 +000011949{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953else
11954 eval "$as_ac_Header=\$ac_header_preproc"
11955fi
Reid Spencera773bd52006-08-04 18:18:08 +000011956ac_res=`eval echo '${'$as_ac_Header'}'`
11957 { echo "$as_me:$LINENO: result: $ac_res" >&5
11958echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959
11960fi
11961if test `eval echo '${'$as_ac_Header'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11964_ACEOF
11965
11966fi
11967
11968done
11969
11970
11971
11972for ac_header in string.h strings.h
11973do
11974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980fi
Reid Spencera773bd52006-08-04 18:18:08 +000011981ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984else
11985 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011986{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h. */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h. */
11994$ac_includes_default
11995#include <$ac_header>
11996_ACEOF
11997rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011998if { (ac_try="$ac_compile"
11999case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031 ac_header_compiler=yes
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
Reid Spencera773bd52006-08-04 18:18:08 +000012036 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037fi
Reid Spencera773bd52006-08-04 18:18:08 +000012038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042
12043# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077 ac_header_preproc=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_header_preproc=no
12083fi
Reid Spencera773bd52006-08-04 18:18:08 +000012084
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012088
12089# So? What about this header?
12090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 yes:no: )
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12097 ;;
12098 no:yes:* )
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012111 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112## ----------------------------------- ##
12113## Report this to llvmbugs@cs.uiuc.edu ##
12114## ----------------------------------- ##
12115_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012116 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117 ;;
12118esac
Reid Spencera773bd52006-08-04 18:18:08 +000012119{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 eval "$as_ac_Header=\$ac_header_preproc"
12125fi
Reid Spencera773bd52006-08-04 18:18:08 +000012126ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129
12130fi
12131if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134_ACEOF
12135 break
12136fi
12137
12138done
12139
12140
12141
12142
12143for ac_func in strchr index
12144do
12145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159#define $ac_func innocuous_$ac_func
12160
12161/* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char $ac_func (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12165
12166#ifdef __STDC__
12167# include <limits.h>
12168#else
12169# include <assert.h>
12170#endif
12171
12172#undef $ac_func
12173
Reid Spencera773bd52006-08-04 18:18:08 +000012174/* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177#ifdef __cplusplus
12178extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180char $ac_func ();
12181/* The GNU C library defines this for functions which it implements
12182 to always fail with ENOSYS. Some functions are actually named
12183 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012184#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012185choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186#endif
12187
12188int
12189main ()
12190{
Reid Spencera773bd52006-08-04 18:18:08 +000012191return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230 eval "$as_ac_var=yes"
12231else
12232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
Reid Spencera773bd52006-08-04 18:18:08 +000012235 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012236fi
Reid Spencera773bd52006-08-04 18:18:08 +000012237
Bill Wendlingebcceee2009-04-18 11:20:33 +000012238rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239 conftest$ac_exeext conftest.$ac_ext
12240fi
Reid Spencera773bd52006-08-04 18:18:08 +000012241ac_res=`eval echo '${'$as_ac_var'}'`
12242 { echo "$as_me:$LINENO: result: $ac_res" >&5
12243echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244if test `eval echo '${'$as_ac_var'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12247_ACEOF
12248 break
12249fi
12250done
12251
12252
12253
12254for ac_func in strrchr rindex
12255do
12256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012257{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262 cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12270#define $ac_func innocuous_$ac_func
12271
12272/* System header to define __stub macros and hopefully few prototypes,
12273 which can conflict with char $ac_func (); below.
12274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12275 <limits.h> exists even on freestanding compilers. */
12276
12277#ifdef __STDC__
12278# include <limits.h>
12279#else
12280# include <assert.h>
12281#endif
12282
12283#undef $ac_func
12284
Reid Spencera773bd52006-08-04 18:18:08 +000012285/* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288#ifdef __cplusplus
12289extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012290#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291char $ac_func ();
12292/* The GNU C library defines this for functions which it implements
12293 to always fail with ENOSYS. Some functions are actually named
12294 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012295#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012296choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012297#endif
12298
12299int
12300main ()
12301{
Reid Spencera773bd52006-08-04 18:18:08 +000012302return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012303 ;
12304 return 0;
12305}
12306_ACEOF
12307rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012308if { (ac_try="$ac_link"
12309case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312esac
12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322 { (case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325esac
12326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_try") 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335esac
12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_try") 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341 eval "$as_ac_var=yes"
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
Reid Spencera773bd52006-08-04 18:18:08 +000012346 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347fi
Reid Spencera773bd52006-08-04 18:18:08 +000012348
Bill Wendlingebcceee2009-04-18 11:20:33 +000012349rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350 conftest$ac_exeext conftest.$ac_ext
12351fi
Reid Spencera773bd52006-08-04 18:18:08 +000012352ac_res=`eval echo '${'$as_ac_var'}'`
12353 { echo "$as_me:$LINENO: result: $ac_res" >&5
12354echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012355if test `eval echo '${'$as_ac_var'}'` = yes; then
12356 cat >>confdefs.h <<_ACEOF
12357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12358_ACEOF
12359 break
12360fi
12361done
12362
12363
12364
12365for ac_func in memcpy bcopy
12366do
12367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
12379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12381#define $ac_func innocuous_$ac_func
12382
12383/* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char $ac_func (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12387
12388#ifdef __STDC__
12389# include <limits.h>
12390#else
12391# include <assert.h>
12392#endif
12393
12394#undef $ac_func
12395
Reid Spencera773bd52006-08-04 18:18:08 +000012396/* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399#ifdef __cplusplus
12400extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402char $ac_func ();
12403/* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012406#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012408#endif
12409
12410int
12411main ()
12412{
Reid Spencera773bd52006-08-04 18:18:08 +000012413return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012419if { (ac_try="$ac_link"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436esac
12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012452 eval "$as_ac_var=yes"
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
Reid Spencera773bd52006-08-04 18:18:08 +000012457 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012458fi
Reid Spencera773bd52006-08-04 18:18:08 +000012459
Bill Wendlingebcceee2009-04-18 11:20:33 +000012460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461 conftest$ac_exeext conftest.$ac_ext
12462fi
Reid Spencera773bd52006-08-04 18:18:08 +000012463ac_res=`eval echo '${'$as_ac_var'}'`
12464 { echo "$as_me:$LINENO: result: $ac_res" >&5
12465echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466if test `eval echo '${'$as_ac_var'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12469_ACEOF
12470 break
12471fi
12472done
12473
12474
12475
12476for ac_func in memmove strcmp
12477do
12478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12492#define $ac_func innocuous_$ac_func
12493
12494/* System header to define __stub macros and hopefully few prototypes,
12495 which can conflict with char $ac_func (); below.
12496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12497 <limits.h> exists even on freestanding compilers. */
12498
12499#ifdef __STDC__
12500# include <limits.h>
12501#else
12502# include <assert.h>
12503#endif
12504
12505#undef $ac_func
12506
Reid Spencera773bd52006-08-04 18:18:08 +000012507/* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510#ifdef __cplusplus
12511extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012512#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513char $ac_func ();
12514/* The GNU C library defines this for functions which it implements
12515 to always fail with ENOSYS. Some functions are actually named
12516 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012517#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012519#endif
12520
12521int
12522main ()
12523{
Reid Spencera773bd52006-08-04 18:18:08 +000012524return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012525 ;
12526 return 0;
12527}
12528_ACEOF
12529rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012530if { (ac_try="$ac_link"
12531case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557esac
12558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563 eval "$as_ac_var=yes"
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
Reid Spencera773bd52006-08-04 18:18:08 +000012568 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012569fi
Reid Spencera773bd52006-08-04 18:18:08 +000012570
Bill Wendlingebcceee2009-04-18 11:20:33 +000012571rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572 conftest$ac_exeext conftest.$ac_ext
12573fi
Reid Spencera773bd52006-08-04 18:18:08 +000012574ac_res=`eval echo '${'$as_ac_var'}'`
12575 { echo "$as_me:$LINENO: result: $ac_res" >&5
12576echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577if test `eval echo '${'$as_ac_var'}'` = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12580_ACEOF
12581
12582fi
12583done
12584
12585
12586
12587
12588for ac_func in closedir opendir readdir
12589do
12590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012591{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12604#define $ac_func innocuous_$ac_func
12605
12606/* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func (); below.
12608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609 <limits.h> exists even on freestanding compilers. */
12610
12611#ifdef __STDC__
12612# include <limits.h>
12613#else
12614# include <assert.h>
12615#endif
12616
12617#undef $ac_func
12618
Reid Spencera773bd52006-08-04 18:18:08 +000012619/* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622#ifdef __cplusplus
12623extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012624#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625char $ac_func ();
12626/* The GNU C library defines this for functions which it implements
12627 to always fail with ENOSYS. Some functions are actually named
12628 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012629#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012630choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631#endif
12632
12633int
12634main ()
12635{
Reid Spencera773bd52006-08-04 18:18:08 +000012636return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012642if { (ac_try="$ac_link"
12643case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646esac
12647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
12660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012675 eval "$as_ac_var=yes"
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
Reid Spencera773bd52006-08-04 18:18:08 +000012680 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012681fi
Reid Spencera773bd52006-08-04 18:18:08 +000012682
Bill Wendlingebcceee2009-04-18 11:20:33 +000012683rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684 conftest$ac_exeext conftest.$ac_ext
12685fi
Reid Spencera773bd52006-08-04 18:18:08 +000012686ac_res=`eval echo '${'$as_ac_var'}'`
12687 { echo "$as_me:$LINENO: result: $ac_res" >&5
12688echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689if test `eval echo '${'$as_ac_var'}'` = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12692_ACEOF
12693
12694fi
12695done
12696
12697
Reid Spencera773bd52006-08-04 18:18:08 +000012698# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012699if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012700 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701 case $enableval in
12702 yes) enable_shared=yes ;;
12703 no) enable_shared=no ;;
12704 *)
12705 enable_shared=no
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708 for pkg in $enableval; do
12709 IFS="$lt_save_ifs"
12710 if test "X$pkg" = "X$p"; then
12711 enable_shared=yes
12712 fi
12713 done
12714 IFS="$lt_save_ifs"
12715 ;;
12716 esac
12717else
12718 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012719fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012720
Reid Spencera773bd52006-08-04 18:18:08 +000012721
12722# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012724 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012725 case $enableval in
12726 yes) enable_static=yes ;;
12727 no) enable_static=no ;;
12728 *)
12729 enable_static=no
12730 # Look at the argument we got. We use all the common list separators.
12731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12732 for pkg in $enableval; do
12733 IFS="$lt_save_ifs"
12734 if test "X$pkg" = "X$p"; then
12735 enable_static=yes
12736 fi
12737 done
12738 IFS="$lt_save_ifs"
12739 ;;
12740 esac
12741else
12742 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012743fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012744
Reid Spencera773bd52006-08-04 18:18:08 +000012745
12746# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012747if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012748 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749 case $enableval in
12750 yes) enable_fast_install=yes ;;
12751 no) enable_fast_install=no ;;
12752 *)
12753 enable_fast_install=no
12754 # Look at the argument we got. We use all the common list separators.
12755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12756 for pkg in $enableval; do
12757 IFS="$lt_save_ifs"
12758 if test "X$pkg" = "X$p"; then
12759 enable_fast_install=yes
12760 fi
12761 done
12762 IFS="$lt_save_ifs"
12763 ;;
12764 esac
12765else
12766 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012767fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768
Reid Spencera773bd52006-08-04 18:18:08 +000012769
12770{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12771echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012772if test "${lt_cv_path_SED+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775 # Loop through the user's path and test for sed and gsed.
12776# Then use that list of sed's as ones to test for truncation.
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for lt_ac_prog in sed gsed; do
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12785 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12786 fi
12787 done
12788 done
12789done
12790lt_ac_max=0
12791lt_ac_count=0
12792# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12793# along with /bin/sed that truncates output.
12794for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012795 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012796 cat /dev/null > conftest.in
12797 lt_ac_count=0
12798 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12799 # Check for GNU sed and select it if it is found.
12800 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12801 lt_cv_path_SED=$lt_ac_sed
12802 break
12803 fi
12804 while true; do
12805 cat conftest.in conftest.in >conftest.tmp
12806 mv conftest.tmp conftest.in
12807 cp conftest.in conftest.nl
12808 echo >>conftest.nl
12809 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12810 cmp -s conftest.out conftest.nl || break
12811 # 10000 chars as input seems more than enough
12812 test $lt_ac_count -gt 10 && break
12813 lt_ac_count=`expr $lt_ac_count + 1`
12814 if test $lt_ac_count -gt $lt_ac_max; then
12815 lt_ac_max=$lt_ac_count
12816 lt_cv_path_SED=$lt_ac_sed
12817 fi
12818 done
12819done
12820
12821fi
12822
12823SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012824{ echo "$as_me:$LINENO: result: $SED" >&5
12825echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012826
12827
Reid Spencera773bd52006-08-04 18:18:08 +000012828# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012829if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012831else
12832 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012833fi
12834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012835ac_prog=ld
12836if test "$GCC" = yes; then
12837 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012838 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12839echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012840 case $host in
12841 *-*-mingw*)
12842 # gcc leaves a trailing carriage return which upsets mingw
12843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12844 *)
12845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12846 esac
12847 case $ac_prog in
12848 # Accept absolute paths.
12849 [\\/]* | ?:[\\/]*)
12850 re_direlt='/[^/][^/]*/\.\./'
12851 # Canonicalize the pathname of ld
12852 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12853 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12854 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12855 done
12856 test -z "$LD" && LD="$ac_prog"
12857 ;;
12858 "")
12859 # If it fails, then pretend we aren't using GCC.
12860 ac_prog=ld
12861 ;;
12862 *)
12863 # If it is relative, then search for the first ld in PATH.
12864 with_gnu_ld=unknown
12865 ;;
12866 esac
12867elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012868 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12869echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012870else
Reid Spencera773bd52006-08-04 18:18:08 +000012871 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12872echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012873fi
12874if test "${lt_cv_path_LD+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
12877 if test -z "$LD"; then
12878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12879 for ac_dir in $PATH; do
12880 IFS="$lt_save_ifs"
12881 test -z "$ac_dir" && ac_dir=.
12882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12883 lt_cv_path_LD="$ac_dir/$ac_prog"
12884 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012885 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012886 # Break only if it was the GNU/non-GNU ld that we prefer.
12887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12888 *GNU* | *'with BFD'*)
12889 test "$with_gnu_ld" != no && break
12890 ;;
12891 *)
12892 test "$with_gnu_ld" != yes && break
12893 ;;
12894 esac
12895 fi
12896 done
12897 IFS="$lt_save_ifs"
12898else
12899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12900fi
12901fi
12902
12903LD="$lt_cv_path_LD"
12904if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012905 { echo "$as_me:$LINENO: result: $LD" >&5
12906echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012907else
Reid Spencera773bd52006-08-04 18:18:08 +000012908 { echo "$as_me:$LINENO: result: no" >&5
12909echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910fi
12911test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12912echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12913 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012914{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12915echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012916if test "${lt_cv_prog_gnu_ld+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918else
Reid Spencera773bd52006-08-04 18:18:08 +000012919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920case `$LD -v 2>&1 </dev/null` in
12921*GNU* | *'with BFD'*)
12922 lt_cv_prog_gnu_ld=yes
12923 ;;
12924*)
12925 lt_cv_prog_gnu_ld=no
12926 ;;
12927esac
12928fi
Reid Spencera773bd52006-08-04 18:18:08 +000012929{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12930echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931with_gnu_ld=$lt_cv_prog_gnu_ld
12932
12933
Reid Spencera773bd52006-08-04 18:18:08 +000012934{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12935echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012936if test "${lt_cv_ld_reload_flag+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 lt_cv_ld_reload_flag='-r'
12940fi
Reid Spencera773bd52006-08-04 18:18:08 +000012941{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12942echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012943reload_flag=$lt_cv_ld_reload_flag
12944case $reload_flag in
12945"" | " "*) ;;
12946*) reload_flag=" $reload_flag" ;;
12947esac
12948reload_cmds='$LD$reload_flag -o $output$reload_objs'
12949case $host_os in
12950 darwin*)
12951 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012952 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012953 else
12954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12955 fi
12956 ;;
12957esac
12958
Reid Spencera773bd52006-08-04 18:18:08 +000012959{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12960echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012961if test "${lt_cv_deplibs_check_method+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else
12964 lt_cv_file_magic_cmd='$MAGIC_CMD'
12965lt_cv_file_magic_test_file=
12966lt_cv_deplibs_check_method='unknown'
12967# Need to set the preceding variable on all platforms that support
12968# interlibrary dependencies.
12969# 'none' -- dependencies not supported.
12970# `unknown' -- same as none, but documents that we really don't know.
12971# 'pass_all' -- all dependencies passed with no checks.
12972# 'test_compile' -- check by making test program.
12973# 'file_magic [[regex]]' -- check by looking for files in library path
12974# which responds to the $file_magic_cmd with a given extended regex.
12975# If you have `file' or equivalent on your system and you're not sure
12976# whether `pass_all' will *always* work, you probably want this one.
12977
12978case $host_os in
12979aix4* | aix5*)
12980 lt_cv_deplibs_check_method=pass_all
12981 ;;
12982
12983beos*)
12984 lt_cv_deplibs_check_method=pass_all
12985 ;;
12986
12987bsdi[45]*)
12988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12989 lt_cv_file_magic_cmd='/usr/bin/file -L'
12990 lt_cv_file_magic_test_file=/shlib/libc.so
12991 ;;
12992
12993cygwin*)
12994 # func_win32_libid is a shell function defined in ltmain.sh
12995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12996 lt_cv_file_magic_cmd='func_win32_libid'
12997 ;;
12998
12999mingw* | pw32*)
13000 # Base MSYS/MinGW do not provide the 'file' command needed by
13001 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13002 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13003 lt_cv_file_magic_cmd='$OBJDUMP -f'
13004 ;;
13005
13006darwin* | rhapsody*)
13007 lt_cv_deplibs_check_method=pass_all
13008 ;;
13009
Reid Spencera773bd52006-08-04 18:18:08 +000013010freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13012 case $host_cpu in
13013 i*86 )
13014 # Not sure whether the presence of OpenBSD here was a mistake.
13015 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000013016 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 +000013017 lt_cv_file_magic_cmd=/usr/bin/file
13018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13019 ;;
13020 esac
13021 else
13022 lt_cv_deplibs_check_method=pass_all
13023 fi
13024 ;;
13025
13026gnu*)
13027 lt_cv_deplibs_check_method=pass_all
13028 ;;
13029
13030hpux10.20* | hpux11*)
13031 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013032 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013033 ia64*)
13034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13036 ;;
13037 hppa*64*)
13038 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]'
13039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13040 ;;
13041 *)
13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13044 ;;
13045 esac
13046 ;;
13047
Reid Spencera773bd52006-08-04 18:18:08 +000013048interix3*)
13049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13051 ;;
13052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013053irix5* | irix6* | nonstopux*)
13054 case $LD in
13055 *-32|*"-32 ") libmagic=32-bit;;
13056 *-n32|*"-n32 ") libmagic=N32;;
13057 *-64|*"-64 ") libmagic=64-bit;;
13058 *) libmagic=never-match;;
13059 esac
13060 lt_cv_deplibs_check_method=pass_all
13061 ;;
13062
13063# This must be Linux ELF.
13064linux*)
13065 lt_cv_deplibs_check_method=pass_all
13066 ;;
13067
13068netbsd*)
13069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13071 else
13072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13073 fi
13074 ;;
13075
13076newos6*)
13077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13078 lt_cv_file_magic_cmd=/usr/bin/file
13079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13080 ;;
13081
13082nto-qnx*)
13083 lt_cv_deplibs_check_method=unknown
13084 ;;
13085
13086openbsd*)
13087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13089 else
13090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13091 fi
13092 ;;
13093
13094osf3* | osf4* | osf5*)
13095 lt_cv_deplibs_check_method=pass_all
13096 ;;
13097
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013098solaris*)
13099 lt_cv_deplibs_check_method=pass_all
13100 ;;
13101
Reid Spencera773bd52006-08-04 18:18:08 +000013102sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013103 case $host_vendor in
13104 motorola)
13105 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]'
13106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13107 ;;
13108 ncr)
13109 lt_cv_deplibs_check_method=pass_all
13110 ;;
13111 sequent)
13112 lt_cv_file_magic_cmd='/bin/file'
13113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13114 ;;
13115 sni)
13116 lt_cv_file_magic_cmd='/bin/file'
13117 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13118 lt_cv_file_magic_test_file=/lib/libc.so
13119 ;;
13120 siemens)
13121 lt_cv_deplibs_check_method=pass_all
13122 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013123 pc)
13124 lt_cv_deplibs_check_method=pass_all
13125 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013126 esac
13127 ;;
13128
Reid Spencera773bd52006-08-04 18:18:08 +000013129sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013130 lt_cv_deplibs_check_method=pass_all
13131 ;;
13132esac
13133
13134fi
Reid Spencera773bd52006-08-04 18:18:08 +000013135{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13136echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013137file_magic_cmd=$lt_cv_file_magic_cmd
13138deplibs_check_method=$lt_cv_deplibs_check_method
13139test -z "$deplibs_check_method" && deplibs_check_method=unknown
13140
13141
13142
13143# If no C compiler was specified, use CC.
13144LTCC=${LTCC-"$CC"}
13145
Reid Spencera773bd52006-08-04 18:18:08 +000013146# If no C compiler flags were specified, use CFLAGS.
13147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13148
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013149# Allow CC to be a program name with arguments.
13150compiler=$CC
13151
Reid Spencera773bd52006-08-04 18:18:08 +000013152# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013153if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013154 enableval=$enable_libtool_lock;
13155fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013156
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13158
13159# Some flags need to be propagated to the compiler or linker for good
13160# libtool support.
13161case $host in
13162ia64-*-hpux*)
13163 # Find out which ABI we are using.
13164 echo 'int i;' > conftest.$ac_ext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; then
13170 case `/usr/bin/file conftest.$ac_objext` in
13171 *ELF-32*)
13172 HPUX_IA64_MODE="32"
13173 ;;
13174 *ELF-64*)
13175 HPUX_IA64_MODE="64"
13176 ;;
13177 esac
13178 fi
13179 rm -rf conftest*
13180 ;;
13181*-*-irix6*)
13182 # Find out which ABI we are using.
Daniel Dunbar1fce9482009-11-04 04:32:50 +000013183 echo '#line 13183 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; then
13189 if test "$lt_cv_prog_gnu_ld" = yes; then
13190 case `/usr/bin/file conftest.$ac_objext` in
13191 *32-bit*)
13192 LD="${LD-ld} -melf32bsmip"
13193 ;;
13194 *N32*)
13195 LD="${LD-ld} -melf32bmipn32"
13196 ;;
13197 *64-bit*)
13198 LD="${LD-ld} -melf64bmip"
13199 ;;
13200 esac
13201 else
13202 case `/usr/bin/file conftest.$ac_objext` in
13203 *32-bit*)
13204 LD="${LD-ld} -32"
13205 ;;
13206 *N32*)
13207 LD="${LD-ld} -n32"
13208 ;;
13209 *64-bit*)
13210 LD="${LD-ld} -64"
13211 ;;
13212 esac
13213 fi
13214 fi
13215 rm -rf conftest*
13216 ;;
13217
13218x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013226 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013227 *32-bit*)
13228 case $host in
13229 x86_64-*linux*)
13230 LD="${LD-ld} -m elf_i386"
13231 ;;
13232 ppc64-*linux*|powerpc64-*linux*)
13233 LD="${LD-ld} -m elf32ppclinux"
13234 ;;
13235 s390x-*linux*)
13236 LD="${LD-ld} -m elf_s390"
13237 ;;
13238 sparc64-*linux*)
13239 LD="${LD-ld} -m elf32_sparc"
13240 ;;
13241 esac
13242 ;;
13243 *64-bit*)
13244 case $host in
13245 x86_64-*linux*)
13246 LD="${LD-ld} -m elf_x86_64"
13247 ;;
13248 ppc*-*linux*|powerpc*-*linux*)
13249 LD="${LD-ld} -m elf64ppc"
13250 ;;
13251 s390*-*linux*)
13252 LD="${LD-ld} -m elf64_s390"
13253 ;;
13254 sparc*-*linux*)
13255 LD="${LD-ld} -m elf64_sparc"
13256 ;;
13257 esac
13258 ;;
13259 esac
13260 fi
13261 rm -rf conftest*
13262 ;;
13263
13264*-*-sco3.2v5*)
13265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13266 SAVE_CFLAGS="$CFLAGS"
13267 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013268 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013270if test "${lt_cv_cc_needs_belf+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273 ac_ext=c
13274ac_cpp='$CPP $CPPFLAGS'
13275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278
13279 cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285
Reid Spencera773bd52006-08-04 18:18:08 +000013286int
13287main ()
13288{
13289
13290 ;
13291 return 0;
13292}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013293_ACEOF
13294rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013295if { (ac_try="$ac_link"
13296case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309 { (case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312esac
13313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_try") 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest$ac_exeext'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013328 lt_cv_cc_needs_belf=yes
13329else
13330 echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
Reid Spencera773bd52006-08-04 18:18:08 +000013333 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013334fi
Reid Spencera773bd52006-08-04 18:18:08 +000013335
Bill Wendlingebcceee2009-04-18 11:20:33 +000013336rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013337 conftest$ac_exeext conftest.$ac_ext
13338 ac_ext=c
13339ac_cpp='$CPP $CPPFLAGS'
13340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343
13344fi
Reid Spencera773bd52006-08-04 18:18:08 +000013345{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13346echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13349 CFLAGS="$SAVE_CFLAGS"
13350 fi
13351 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013352sparc*-*solaris*)
13353 # Find out which ABI we are using.
13354 echo 'int i;' > conftest.$ac_ext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; then
13360 case `/usr/bin/file conftest.o` in
13361 *64-bit*)
13362 case $lt_cv_prog_gnu_ld in
13363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13364 *) LD="${LD-ld} -64" ;;
13365 esac
13366 ;;
13367 esac
13368 fi
13369 rm -rf conftest*
13370 ;;
13371
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013372
13373esac
13374
13375need_locks="$enable_libtool_lock"
13376
13377
Reid Spencer2706f8c2004-09-19 23:53:36 +000013378
13379
13380if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13381 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13382 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013383 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013384ac_cpp='$CXXCPP $CPPFLAGS'
13385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013388{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13389echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013390if test -z "$CXXCPP"; then
13391 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
John Criswell47fdd832003-07-14 16:52:07 +000013394 # Double quotes because CXXCPP needs to be expanded
13395 for CXXCPP in "$CXX -E" "/lib/cpp"
13396 do
13397 ac_preproc_ok=false
13398for ac_cxx_preproc_warn_flag in '' yes
13399do
13400 # Use a header file that comes with gcc, so configuring glibc
13401 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013404 # On the NeXT, cc -E runs the code through the compiler's parser,
13405 # not just through cpp. "Syntax error" is here to catch this case.
13406 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412#ifdef __STDC__
13413# include <limits.h>
13414#else
13415# include <assert.h>
13416#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013417 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013419if { (ac_try="$ac_cpp conftest.$ac_ext"
13420case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013426 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013427 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013431 (exit $ac_status); } >/dev/null; then
13432 if test -s conftest.err; then
13433 ac_cpp_err=$ac_cxx_preproc_warn_flag
13434 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13435 else
13436 ac_cpp_err=
13437 fi
13438else
13439 ac_cpp_err=yes
13440fi
13441if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013442 :
13443else
13444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013445sed 's/^/| /' conftest.$ac_ext >&5
13446
John Criswell47fdd832003-07-14 16:52:07 +000013447 # Broken: fails on valid input.
13448continue
13449fi
Reid Spencera773bd52006-08-04 18:18:08 +000013450
John Criswell47fdd832003-07-14 16:52:07 +000013451rm -f conftest.err conftest.$ac_ext
13452
Reid Spencera773bd52006-08-04 18:18:08 +000013453 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013454 # can be detected and how.
13455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013461#include <ac_nonexistent.h>
13462_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013463if { (ac_try="$ac_cpp conftest.$ac_ext"
13464case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467esac
13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013470 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013471 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_cxx_preproc_warn_flag
13478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13479 else
13480 ac_cpp_err=
13481 fi
13482else
13483 ac_cpp_err=yes
13484fi
13485if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013486 # Broken: success on invalid input.
13487continue
13488else
13489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013490sed 's/^/| /' conftest.$ac_ext >&5
13491
John Criswell47fdd832003-07-14 16:52:07 +000013492 # Passes both tests.
13493ac_preproc_ok=:
13494break
13495fi
Reid Spencera773bd52006-08-04 18:18:08 +000013496
John Criswell47fdd832003-07-14 16:52:07 +000013497rm -f conftest.err conftest.$ac_ext
13498
13499done
13500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13501rm -f conftest.err conftest.$ac_ext
13502if $ac_preproc_ok; then
13503 break
John Criswell7a73b802003-06-30 21:59:07 +000013504fi
13505
John Criswell47fdd832003-07-14 16:52:07 +000013506 done
13507 ac_cv_prog_CXXCPP=$CXXCPP
13508
13509fi
13510 CXXCPP=$ac_cv_prog_CXXCPP
13511else
13512 ac_cv_prog_CXXCPP=$CXXCPP
13513fi
Reid Spencera773bd52006-08-04 18:18:08 +000013514{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13515echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013516ac_preproc_ok=false
13517for ac_cxx_preproc_warn_flag in '' yes
13518do
13519 # Use a header file that comes with gcc, so configuring glibc
13520 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013523 # On the NeXT, cc -E runs the code through the compiler's parser,
13524 # not just through cpp. "Syntax error" is here to catch this case.
13525 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531#ifdef __STDC__
13532# include <limits.h>
13533#else
13534# include <assert.h>
13535#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013537_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013538if { (ac_try="$ac_cpp conftest.$ac_ext"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013545 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013546 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013550 (exit $ac_status); } >/dev/null; then
13551 if test -s conftest.err; then
13552 ac_cpp_err=$ac_cxx_preproc_warn_flag
13553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13554 else
13555 ac_cpp_err=
13556 fi
13557else
13558 ac_cpp_err=yes
13559fi
13560if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013561 :
13562else
13563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013564sed 's/^/| /' conftest.$ac_ext >&5
13565
John Criswell47fdd832003-07-14 16:52:07 +000013566 # Broken: fails on valid input.
13567continue
13568fi
Reid Spencera773bd52006-08-04 18:18:08 +000013569
John Criswell47fdd832003-07-14 16:52:07 +000013570rm -f conftest.err conftest.$ac_ext
13571
Reid Spencera773bd52006-08-04 18:18:08 +000013572 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013573 # can be detected and how.
13574 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013575/* confdefs.h. */
13576_ACEOF
13577cat confdefs.h >>conftest.$ac_ext
13578cat >>conftest.$ac_ext <<_ACEOF
13579/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013580#include <ac_nonexistent.h>
13581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013582if { (ac_try="$ac_cpp conftest.$ac_ext"
13583case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013589 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013590 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013594 (exit $ac_status); } >/dev/null; then
13595 if test -s conftest.err; then
13596 ac_cpp_err=$ac_cxx_preproc_warn_flag
13597 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13598 else
13599 ac_cpp_err=
13600 fi
13601else
13602 ac_cpp_err=yes
13603fi
13604if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013605 # Broken: success on invalid input.
13606continue
13607else
13608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013609sed 's/^/| /' conftest.$ac_ext >&5
13610
John Criswell47fdd832003-07-14 16:52:07 +000013611 # Passes both tests.
13612ac_preproc_ok=:
13613break
13614fi
Reid Spencera773bd52006-08-04 18:18:08 +000013615
John Criswell47fdd832003-07-14 16:52:07 +000013616rm -f conftest.err conftest.$ac_ext
13617
13618done
13619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13620rm -f conftest.err conftest.$ac_ext
13621if $ac_preproc_ok; then
13622 :
13623else
John Criswell0c38eaf2003-09-10 15:17:25 +000013624 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13625See \`config.log' for more details." >&5
13626echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13627See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013628 { (exit 1); exit 1; }; }
13629fi
13630
Reid Spencera773bd52006-08-04 18:18:08 +000013631ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013632ac_cpp='$CXXCPP $CPPFLAGS'
13633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13636
Reid Spencer2706f8c2004-09-19 23:53:36 +000013637fi
13638
John Criswell47fdd832003-07-14 16:52:07 +000013639
13640ac_ext=f
13641ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13642ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13643ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13644if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013645 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 +000013646 do
13647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013651if test "${ac_cv_prog_F77+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654 if test -n "$F77"; then
13655 ac_cv_prog_F77="$F77" # Let the user override the test.
13656else
13657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658for as_dir in $PATH
13659do
13660 IFS=$as_save_IFS
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013663 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 +000013664 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13666 break 2
13667 fi
13668done
13669done
Reid Spencera773bd52006-08-04 18:18:08 +000013670IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013671
13672fi
13673fi
13674F77=$ac_cv_prog_F77
13675if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013676 { echo "$as_me:$LINENO: result: $F77" >&5
13677echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013678else
Reid Spencera773bd52006-08-04 18:18:08 +000013679 { echo "$as_me:$LINENO: result: no" >&5
13680echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013681fi
13682
Reid Spencera773bd52006-08-04 18:18:08 +000013683
John Criswell47fdd832003-07-14 16:52:07 +000013684 test -n "$F77" && break
13685 done
13686fi
13687if test -z "$F77"; then
13688 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013689 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 +000013690do
13691 # Extract the first word of "$ac_prog", so it can be a program name with args.
13692set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013695if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698 if test -n "$ac_ct_F77"; then
13699 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013707 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 +000013708 ac_cv_prog_ac_ct_F77="$ac_prog"
13709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13711 fi
13712done
13713done
Reid Spencera773bd52006-08-04 18:18:08 +000013714IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013715
13716fi
13717fi
13718ac_ct_F77=$ac_cv_prog_ac_ct_F77
13719if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013720 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13721echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013722else
Reid Spencera773bd52006-08-04 18:18:08 +000013723 { echo "$as_me:$LINENO: result: no" >&5
13724echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013725fi
13726
Reid Spencera773bd52006-08-04 18:18:08 +000013727
John Criswell47fdd832003-07-14 16:52:07 +000013728 test -n "$ac_ct_F77" && break
13729done
13730
Reid Spencera773bd52006-08-04 18:18:08 +000013731 if test "x$ac_ct_F77" = x; then
13732 F77=""
13733 else
13734 case $cross_compiling:$ac_tool_warned in
13735yes:)
13736{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13737whose name does not start with the host triplet. If you think this
13738configuration is useful to you, please write to autoconf@gnu.org." >&5
13739echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13740whose name does not start with the host triplet. If you think this
13741configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13742ac_tool_warned=yes ;;
13743esac
13744 F77=$ac_ct_F77
13745 fi
John Criswell47fdd832003-07-14 16:52:07 +000013746fi
13747
13748
13749# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013750echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013751ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013752{ (ac_try="$ac_compiler --version >&5"
13753case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013762{ (ac_try="$ac_compiler -v >&5"
13763case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013772{ (ac_try="$ac_compiler -V >&5"
13773case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013782rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013783
13784# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013785# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013786ac_save_ext=$ac_ext
13787ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013788{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13789echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013790if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792else
13793 cat >conftest.$ac_ext <<_ACEOF
13794 program main
13795#ifndef __GNUC__
13796 choke me
13797#endif
13798
13799 end
13800_ACEOF
13801rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13816 { (case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819esac
13820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_try") 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829esac
13830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013835 ac_compiler_gnu=yes
13836else
13837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013838sed 's/^/| /' conftest.$ac_ext >&5
13839
Reid Spencera773bd52006-08-04 18:18:08 +000013840 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013841fi
Reid Spencera773bd52006-08-04 18:18:08 +000013842
13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013844ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13845
13846fi
Reid Spencera773bd52006-08-04 18:18:08 +000013847{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13848echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013849ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013850ac_test_FFLAGS=${FFLAGS+set}
13851ac_save_FFLAGS=$FFLAGS
13852FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013853{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13854echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013855if test "${ac_cv_prog_f77_g+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857else
13858 FFLAGS=-g
13859cat >conftest.$ac_ext <<_ACEOF
13860 program main
13861
13862 end
13863_ACEOF
13864rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013865if { (ac_try="$ac_compile"
13866case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013872 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13879 { (case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_try") 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013898 ac_cv_prog_f77_g=yes
13899else
13900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013901sed 's/^/| /' conftest.$ac_ext >&5
13902
Reid Spencera773bd52006-08-04 18:18:08 +000013903 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013904fi
Reid Spencera773bd52006-08-04 18:18:08 +000013905
13906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013907
13908fi
Reid Spencera773bd52006-08-04 18:18:08 +000013909{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13910echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013911if test "$ac_test_FFLAGS" = set; then
13912 FFLAGS=$ac_save_FFLAGS
13913elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013915 FFLAGS="-g -O2"
13916 else
13917 FFLAGS="-g"
13918 fi
13919else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013920 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013921 FFLAGS="-O2"
13922 else
13923 FFLAGS=
13924 fi
13925fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013926
13927G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013928ac_ext=c
13929ac_cpp='$CPP $CPPFLAGS'
13930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933
13934
13935
13936# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13937
13938# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013939{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13940echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013941if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943else
13944 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013945 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013946
13947 case $build_os in
13948 msdosdjgpp*)
13949 # On DJGPP, this test can blow up pretty badly due to problems in libc
13950 # (any single argument exceeding 2000 bytes causes a buffer overrun
13951 # during glob expansion). Even if it were fixed, the result of this
13952 # check would be larger than it should be.
13953 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13954 ;;
13955
13956 gnu*)
13957 # Under GNU Hurd, this test is not required because there is
13958 # no limit to the length of command line arguments.
13959 # Libtool will interpret -1 as no limit whatsoever
13960 lt_cv_sys_max_cmd_len=-1;
13961 ;;
13962
13963 cygwin* | mingw*)
13964 # On Win9x/ME, this test blows up -- it succeeds, but takes
13965 # about 5 minutes as the teststring grows exponentially.
13966 # Worse, since 9x/ME are not pre-emptively multitasking,
13967 # you end up with a "frozen" computer, even though with patience
13968 # the test eventually succeeds (with a max line length of 256k).
13969 # Instead, let's just punt: use the minimum linelength reported by
13970 # all of the supported platforms: 8192 (on NT/2K/XP).
13971 lt_cv_sys_max_cmd_len=8192;
13972 ;;
13973
Reid Spencer2706f8c2004-09-19 23:53:36 +000013974 amigaos*)
13975 # On AmigaOS with pdksh, this test takes hours, literally.
13976 # So we just punt and use a minimum line length of 8192.
13977 lt_cv_sys_max_cmd_len=8192;
13978 ;;
13979
Reid Spencera773bd52006-08-04 18:18:08 +000013980 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013981 # This has been around since 386BSD, at least. Likely further.
13982 if test -x /sbin/sysctl; then
13983 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13984 elif test -x /usr/sbin/sysctl; then
13985 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13986 else
Reid Spencera773bd52006-08-04 18:18:08 +000013987 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013988 fi
13989 # And add a safety zone
13990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013992 ;;
13993
Reid Spencera773bd52006-08-04 18:18:08 +000013994 interix*)
13995 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13996 lt_cv_sys_max_cmd_len=196608
13997 ;;
13998
13999 osf*)
14000 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14001 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14002 # nice to cause kernel panics so lets avoid the loop below.
14003 # First set a reasonable default.
14004 lt_cv_sys_max_cmd_len=16384
14005 #
14006 if test -x /sbin/sysconfig; then
14007 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14008 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14009 esac
14010 fi
14011 ;;
14012 sco3.2v5*)
14013 lt_cv_sys_max_cmd_len=102400
14014 ;;
14015 sysv5* | sco5v6* | sysv4.2uw2*)
14016 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14017 if test -n "$kargmax"; then
14018 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14019 else
14020 lt_cv_sys_max_cmd_len=32768
14021 fi
14022 ;;
14023 *)
John Criswell47fdd832003-07-14 16:52:07 +000014024 # If test is not a shell built-in, we'll probably end up computing a
14025 # maximum length that is only half of the actual maximum length, but
14026 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14028 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14029 = "XX$teststring") >/dev/null 2>&1 &&
14030 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014031 lt_cv_sys_max_cmd_len=$new_result &&
14032 test $i != 17 # 1/2 MB should be enough
14033 do
14034 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014035 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014036 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014037 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014038 # Add a significant safety factor because C++ compilers can tack on massive
14039 # amounts of additional arguments before passing them to the linker.
14040 # It appears as though 1/2 is a usable value.
14041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14042 ;;
14043 esac
14044
14045fi
14046
14047if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014048 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14049echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014050else
Reid Spencera773bd52006-08-04 18:18:08 +000014051 { echo "$as_me:$LINENO: result: none" >&5
14052echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014053fi
14054
14055
14056
14057
14058# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014059{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14060echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014061if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063else
14064
14065# These are sane defaults that work on at least a few old systems.
14066# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14067
14068# Character class describing NM global symbol codes.
14069symcode='[BCDEGRST]'
14070
14071# Regexp to match symbols that can be accessed directly from C.
14072sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14073
John Criswell47fdd832003-07-14 16:52:07 +000014074# Transform an extracted symbol line into a proper C declaration
14075lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14076
14077# Transform an extracted symbol line into symbol name and symbol address
14078lt_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'"
14079
14080# Define system-specific variables.
14081case $host_os in
14082aix*)
14083 symcode='[BCDT]'
14084 ;;
14085cygwin* | mingw* | pw32*)
14086 symcode='[ABCDGISTW]'
14087 ;;
14088hpux*) # Its linker distinguishes data from code symbols
14089 if test "$host_cpu" = ia64; then
14090 symcode='[ABCDEGRST]'
14091 fi
14092 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14093 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'"
14094 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014095linux*)
14096 if test "$host_cpu" = ia64; then
14097 symcode='[ABCDGIRSTW]'
14098 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14099 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'"
14100 fi
14101 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014102irix* | nonstopux*)
14103 symcode='[BCDEGRST]'
14104 ;;
14105osf*)
14106 symcode='[BCDEGQRST]'
14107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014108solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014109 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014110 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014111sco3.2v5*)
14112 symcode='[DT]'
14113 ;;
14114sysv4.2uw2*)
14115 symcode='[DT]'
14116 ;;
14117sysv5* | sco5v6* | unixware* | OpenUNIX*)
14118 symcode='[ABDT]'
14119 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014120sysv4)
14121 symcode='[DFNSTU]'
14122 ;;
14123esac
14124
14125# Handle CRLF in mingw tool chain
14126opt_cr=
14127case $build_os in
14128mingw*)
14129 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14130 ;;
14131esac
14132
14133# If we're using GNU nm, then use its standard symbol codes.
14134case `$NM -V 2>&1` in
14135*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014136 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014137esac
14138
14139# Try without a prefix undercore, then with it.
14140for ac_symprfx in "" "_"; do
14141
Reid Spencera773bd52006-08-04 18:18:08 +000014142 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14143 symxfrm="\\1 $ac_symprfx\\2 \\2"
14144
John Criswell47fdd832003-07-14 16:52:07 +000014145 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014146 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 +000014147
14148 # Check to see that the pipe works correctly.
14149 pipe_works=no
14150
14151 rm -f conftest*
14152 cat > conftest.$ac_ext <<EOF
14153#ifdef __cplusplus
14154extern "C" {
14155#endif
14156char nm_test_var;
14157void nm_test_func(){}
14158#ifdef __cplusplus
14159}
14160#endif
14161int main(){nm_test_var='a';nm_test_func();return(0);}
14162EOF
14163
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; then
14169 # Now try to grab the symbols.
14170 nlist=conftest.nm
14171 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14172 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && test -s "$nlist"; then
14176 # Try sorting and uniquifying the output.
14177 if sort "$nlist" | uniq > "$nlist"T; then
14178 mv -f "$nlist"T "$nlist"
14179 else
14180 rm -f "$nlist"T
14181 fi
14182
14183 # Make sure that we snagged all the symbols we need.
14184 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14185 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14186 cat <<EOF > conftest.$ac_ext
14187#ifdef __cplusplus
14188extern "C" {
14189#endif
14190
14191EOF
14192 # Now generate the symbol file.
14193 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14194
14195 cat <<EOF >> conftest.$ac_ext
14196#if defined (__STDC__) && __STDC__
14197# define lt_ptr_t void *
14198#else
14199# define lt_ptr_t char *
14200# define const
14201#endif
14202
14203/* The mapping between symbol names and symbols. */
14204const struct {
14205 const char *name;
14206 lt_ptr_t address;
14207}
14208lt_preloaded_symbols[] =
14209{
14210EOF
14211 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14212 cat <<\EOF >> conftest.$ac_ext
14213 {0, (lt_ptr_t) 0}
14214};
14215
14216#ifdef __cplusplus
14217}
14218#endif
14219EOF
14220 # Now try linking the two files.
14221 mv conftest.$ac_objext conftstm.$ac_objext
14222 lt_save_LIBS="$LIBS"
14223 lt_save_CFLAGS="$CFLAGS"
14224 LIBS="conftstm.$ac_objext"
14225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14231 pipe_works=yes
14232 fi
14233 LIBS="$lt_save_LIBS"
14234 CFLAGS="$lt_save_CFLAGS"
14235 else
14236 echo "cannot find nm_test_func in $nlist" >&5
14237 fi
14238 else
14239 echo "cannot find nm_test_var in $nlist" >&5
14240 fi
14241 else
14242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14243 fi
14244 else
14245 echo "$progname: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 fi
14248 rm -f conftest* conftst*
14249
14250 # Do not use the global_symbol_pipe unless it works.
14251 if test "$pipe_works" = yes; then
14252 break
14253 else
14254 lt_cv_sys_global_symbol_pipe=
14255 fi
14256done
14257
14258fi
14259
14260if test -z "$lt_cv_sys_global_symbol_pipe"; then
14261 lt_cv_sys_global_symbol_to_cdecl=
14262fi
14263if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014264 { echo "$as_me:$LINENO: result: failed" >&5
14265echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014266else
Reid Spencera773bd52006-08-04 18:18:08 +000014267 { echo "$as_me:$LINENO: result: ok" >&5
14268echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014269fi
14270
Reid Spencera773bd52006-08-04 18:18:08 +000014271{ echo "$as_me:$LINENO: checking for objdir" >&5
14272echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273if test "${lt_cv_objdir+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275else
14276 rm -f .libs 2>/dev/null
14277mkdir .libs 2>/dev/null
14278if test -d .libs; then
14279 lt_cv_objdir=.libs
14280else
14281 # MS-DOS does not allow filenames that begin with a dot.
14282 lt_cv_objdir=_libs
14283fi
14284rmdir .libs 2>/dev/null
14285fi
Reid Spencera773bd52006-08-04 18:18:08 +000014286{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14287echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014288objdir=$lt_cv_objdir
14289
14290
14291
14292
14293
14294case $host_os in
14295aix3*)
14296 # AIX sometimes has problems with the GCC collect2 program. For some
14297 # reason, if we set the COLLECT_NAMES environment variable, the problems
14298 # vanish in a puff of smoke.
14299 if test "X${COLLECT_NAMES+set}" != Xset; then
14300 COLLECT_NAMES=
14301 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014302 fi
14303 ;;
14304esac
14305
John Criswell47fdd832003-07-14 16:52:07 +000014306# Sed substitution that helps us do robust quoting. It backslashifies
14307# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014308Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014309sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14310
14311# Same as above, but do not quote variable references.
14312double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14313
14314# Sed substitution to delay expansion of an escaped shell variable in a
14315# double_quote_subst'ed string.
14316delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14317
14318# Sed substitution to avoid accidental globbing in evaled expressions
14319no_glob_subst='s/\*/\\\*/g'
14320
14321# Constants:
14322rm="rm -f"
14323
14324# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014325default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014326can_build_shared=yes
14327
Reid Spencera773bd52006-08-04 18:18:08 +000014328# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014329# which needs '.lib').
14330libext=a
14331ltmain="$ac_aux_dir/ltmain.sh"
14332ofile="$default_ofile"
14333with_gnu_ld="$lt_cv_prog_gnu_ld"
14334
14335if test -n "$ac_tool_prefix"; then
14336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14337set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014340if test "${ac_cv_prog_AR+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342else
14343 if test -n "$AR"; then
14344 ac_cv_prog_AR="$AR" # Let the user override the test.
14345else
14346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347for as_dir in $PATH
14348do
14349 IFS=$as_save_IFS
14350 test -z "$as_dir" && as_dir=.
14351 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014352 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 +000014353 ac_cv_prog_AR="${ac_tool_prefix}ar"
14354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14355 break 2
14356 fi
14357done
14358done
Reid Spencera773bd52006-08-04 18:18:08 +000014359IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014360
14361fi
14362fi
14363AR=$ac_cv_prog_AR
14364if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014365 { echo "$as_me:$LINENO: result: $AR" >&5
14366echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014367else
Reid Spencera773bd52006-08-04 18:18:08 +000014368 { echo "$as_me:$LINENO: result: no" >&5
14369echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014370fi
14371
Reid Spencera773bd52006-08-04 18:18:08 +000014372
John Criswell47fdd832003-07-14 16:52:07 +000014373fi
14374if test -z "$ac_cv_prog_AR"; then
14375 ac_ct_AR=$AR
14376 # Extract the first word of "ar", so it can be a program name with args.
14377set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014380if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 if test -n "$ac_ct_AR"; then
14384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14385else
14386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387for as_dir in $PATH
14388do
14389 IFS=$as_save_IFS
14390 test -z "$as_dir" && as_dir=.
14391 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014392 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 +000014393 ac_cv_prog_ac_ct_AR="ar"
14394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14395 break 2
14396 fi
14397done
14398done
Reid Spencera773bd52006-08-04 18:18:08 +000014399IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014400
John Criswell47fdd832003-07-14 16:52:07 +000014401fi
14402fi
14403ac_ct_AR=$ac_cv_prog_ac_ct_AR
14404if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014405 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14406echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014407else
Reid Spencera773bd52006-08-04 18:18:08 +000014408 { echo "$as_me:$LINENO: result: no" >&5
14409echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014410fi
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412 if test "x$ac_ct_AR" = x; then
14413 AR="false"
14414 else
14415 case $cross_compiling:$ac_tool_warned in
14416yes:)
14417{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14418whose name does not start with the host triplet. If you think this
14419configuration is useful to you, please write to autoconf@gnu.org." >&5
14420echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14421whose name does not start with the host triplet. If you think this
14422configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14423ac_tool_warned=yes ;;
14424esac
14425 AR=$ac_ct_AR
14426 fi
John Criswell47fdd832003-07-14 16:52:07 +000014427else
14428 AR="$ac_cv_prog_AR"
14429fi
14430
John Criswell7a73b802003-06-30 21:59:07 +000014431if test -n "$ac_tool_prefix"; then
14432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014436if test "${ac_cv_prog_RANLIB+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438else
14439 if test -n "$RANLIB"; then
14440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14441else
14442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443for as_dir in $PATH
14444do
14445 IFS=$as_save_IFS
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014448 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 +000014449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 break 2
14452 fi
14453done
14454done
Reid Spencera773bd52006-08-04 18:18:08 +000014455IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014456
14457fi
14458fi
14459RANLIB=$ac_cv_prog_RANLIB
14460if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014461 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14462echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014463else
Reid Spencera773bd52006-08-04 18:18:08 +000014464 { echo "$as_me:$LINENO: result: no" >&5
14465echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014466fi
14467
Reid Spencera773bd52006-08-04 18:18:08 +000014468
John Criswell7a73b802003-06-30 21:59:07 +000014469fi
14470if test -z "$ac_cv_prog_RANLIB"; then
14471 ac_ct_RANLIB=$RANLIB
14472 # Extract the first word of "ranlib", so it can be a program name with args.
14473set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479 if test -n "$ac_ct_RANLIB"; then
14480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14481else
14482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483for as_dir in $PATH
14484do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014488 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 +000014489 ac_cv_prog_ac_ct_RANLIB="ranlib"
14490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 break 2
14492 fi
14493done
14494done
Reid Spencera773bd52006-08-04 18:18:08 +000014495IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014496
John Criswell7a73b802003-06-30 21:59:07 +000014497fi
14498fi
14499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14500if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014501 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14502echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014503else
Reid Spencera773bd52006-08-04 18:18:08 +000014504 { echo "$as_me:$LINENO: result: no" >&5
14505echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014506fi
14507
Reid Spencera773bd52006-08-04 18:18:08 +000014508 if test "x$ac_ct_RANLIB" = x; then
14509 RANLIB=":"
14510 else
14511 case $cross_compiling:$ac_tool_warned in
14512yes:)
14513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14514whose name does not start with the host triplet. If you think this
14515configuration is useful to you, please write to autoconf@gnu.org." >&5
14516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14517whose name does not start with the host triplet. If you think this
14518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14519ac_tool_warned=yes ;;
14520esac
14521 RANLIB=$ac_ct_RANLIB
14522 fi
John Criswell7a73b802003-06-30 21:59:07 +000014523else
14524 RANLIB="$ac_cv_prog_RANLIB"
14525fi
14526
14527if test -n "$ac_tool_prefix"; then
14528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14529set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014532if test "${ac_cv_prog_STRIP+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 if test -n "$STRIP"; then
14536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14537else
14538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539for as_dir in $PATH
14540do
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014544 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 +000014545 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14548 fi
14549done
14550done
Reid Spencera773bd52006-08-04 18:18:08 +000014551IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014552
14553fi
14554fi
14555STRIP=$ac_cv_prog_STRIP
14556if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014557 { echo "$as_me:$LINENO: result: $STRIP" >&5
14558echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014559else
Reid Spencera773bd52006-08-04 18:18:08 +000014560 { echo "$as_me:$LINENO: result: no" >&5
14561echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014562fi
14563
Reid Spencera773bd52006-08-04 18:18:08 +000014564
John Criswell7a73b802003-06-30 21:59:07 +000014565fi
14566if test -z "$ac_cv_prog_STRIP"; then
14567 ac_ct_STRIP=$STRIP
14568 # Extract the first word of "strip", so it can be a program name with args.
14569set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014572if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574else
14575 if test -n "$ac_ct_STRIP"; then
14576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14577else
14578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579for as_dir in $PATH
14580do
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014584 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 +000014585 ac_cv_prog_ac_ct_STRIP="strip"
14586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14588 fi
14589done
14590done
Reid Spencera773bd52006-08-04 18:18:08 +000014591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014592
John Criswell7a73b802003-06-30 21:59:07 +000014593fi
14594fi
14595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14596if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014597 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14598echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014599else
Reid Spencera773bd52006-08-04 18:18:08 +000014600 { echo "$as_me:$LINENO: result: no" >&5
14601echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014602fi
14603
Reid Spencera773bd52006-08-04 18:18:08 +000014604 if test "x$ac_ct_STRIP" = x; then
14605 STRIP=":"
14606 else
14607 case $cross_compiling:$ac_tool_warned in
14608yes:)
14609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14610whose name does not start with the host triplet. If you think this
14611configuration is useful to you, please write to autoconf@gnu.org." >&5
14612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14613whose name does not start with the host triplet. If you think this
14614configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14615ac_tool_warned=yes ;;
14616esac
14617 STRIP=$ac_ct_STRIP
14618 fi
John Criswell7a73b802003-06-30 21:59:07 +000014619else
14620 STRIP="$ac_cv_prog_STRIP"
14621fi
14622
14623
John Criswell7a73b802003-06-30 21:59:07 +000014624old_CC="$CC"
14625old_CFLAGS="$CFLAGS"
14626
14627# Set sane defaults for various variables
14628test -z "$AR" && AR=ar
14629test -z "$AR_FLAGS" && AR_FLAGS=cru
14630test -z "$AS" && AS=as
14631test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014632test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014633test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014634test -z "$DLLTOOL" && DLLTOOL=dlltool
14635test -z "$LD" && LD=ld
14636test -z "$LN_S" && LN_S="ln -s"
14637test -z "$MAGIC_CMD" && MAGIC_CMD=file
14638test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014639test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014640test -z "$OBJDUMP" && OBJDUMP=objdump
14641test -z "$RANLIB" && RANLIB=:
14642test -z "$STRIP" && STRIP=:
14643test -z "$ac_objext" && ac_objext=o
14644
John Criswell7a73b802003-06-30 21:59:07 +000014645# Determine commands to create old-style static archives.
14646old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14647old_postinstall_cmds='chmod 644 $oldlib'
14648old_postuninstall_cmds=
14649
14650if test -n "$RANLIB"; then
14651 case $host_os in
14652 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014653 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014654 ;;
14655 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014657 ;;
14658 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014659 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014660fi
14661
Reid Spencera773bd52006-08-04 18:18:08 +000014662for cc_temp in $compiler""; do
14663 case $cc_temp in
14664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14666 \-*) ;;
14667 *) break;;
14668 esac
14669done
14670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14671
Reid Spencer2706f8c2004-09-19 23:53:36 +000014672
John Criswell47fdd832003-07-14 16:52:07 +000014673# Only perform the check for file, if the check method requires it
14674case $deplibs_check_method in
14675file_magic*)
14676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014677 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14678echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014679if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014681else
John Criswell47fdd832003-07-14 16:52:07 +000014682 case $MAGIC_CMD in
14683[\\/*] | ?:[\\/]*)
14684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14685 ;;
14686*)
14687 lt_save_MAGIC_CMD="$MAGIC_CMD"
14688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14690 for ac_dir in $ac_dummy; do
14691 IFS="$lt_save_ifs"
14692 test -z "$ac_dir" && ac_dir=.
14693 if test -f $ac_dir/${ac_tool_prefix}file; then
14694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14695 if test -n "$file_magic_test_file"; then
14696 case $deplibs_check_method in
14697 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14701 $EGREP "$file_magic_regex" > /dev/null; then
14702 :
14703 else
14704 cat <<EOF 1>&2
14705
14706*** Warning: the command libtool uses to detect shared libraries,
14707*** $file_magic_cmd, produces output that libtool cannot recognize.
14708*** The result is that libtool may fail to recognize shared libraries
14709*** as such. This will affect the creation of libtool libraries that
14710*** depend on shared libraries, but programs linked with such libtool
14711*** libraries will work regardless of this problem. Nevertheless, you
14712*** may want to report the problem to your system manager and/or to
14713*** bug-libtool@gnu.org
14714
14715EOF
14716 fi ;;
14717 esac
14718 fi
14719 break
14720 fi
14721 done
14722 IFS="$lt_save_ifs"
14723 MAGIC_CMD="$lt_save_MAGIC_CMD"
14724 ;;
14725esac
John Criswell7a73b802003-06-30 21:59:07 +000014726fi
John Criswell7a73b802003-06-30 21:59:07 +000014727
John Criswell47fdd832003-07-14 16:52:07 +000014728MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14729if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014730 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14731echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014732else
Reid Spencera773bd52006-08-04 18:18:08 +000014733 { echo "$as_me:$LINENO: result: no" >&5
14734echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014735fi
John Criswell7a73b802003-06-30 21:59:07 +000014736
John Criswell47fdd832003-07-14 16:52:07 +000014737if test -z "$lt_cv_path_MAGIC_CMD"; then
14738 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014739 { echo "$as_me:$LINENO: checking for file" >&5
14740echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014741if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743else
14744 case $MAGIC_CMD in
14745[\\/*] | ?:[\\/]*)
14746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14747 ;;
14748*)
14749 lt_save_MAGIC_CMD="$MAGIC_CMD"
14750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14752 for ac_dir in $ac_dummy; do
14753 IFS="$lt_save_ifs"
14754 test -z "$ac_dir" && ac_dir=.
14755 if test -f $ac_dir/file; then
14756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14757 if test -n "$file_magic_test_file"; then
14758 case $deplibs_check_method in
14759 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14763 $EGREP "$file_magic_regex" > /dev/null; then
14764 :
14765 else
14766 cat <<EOF 1>&2
14767
14768*** Warning: the command libtool uses to detect shared libraries,
14769*** $file_magic_cmd, produces output that libtool cannot recognize.
14770*** The result is that libtool may fail to recognize shared libraries
14771*** as such. This will affect the creation of libtool libraries that
14772*** depend on shared libraries, but programs linked with such libtool
14773*** libraries will work regardless of this problem. Nevertheless, you
14774*** may want to report the problem to your system manager and/or to
14775*** bug-libtool@gnu.org
14776
14777EOF
14778 fi ;;
14779 esac
14780 fi
14781 break
14782 fi
14783 done
14784 IFS="$lt_save_ifs"
14785 MAGIC_CMD="$lt_save_MAGIC_CMD"
14786 ;;
14787esac
14788fi
14789
14790MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014792 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14793echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014794else
Reid Spencera773bd52006-08-04 18:18:08 +000014795 { echo "$as_me:$LINENO: result: no" >&5
14796echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014797fi
14798
14799 else
14800 MAGIC_CMD=:
14801 fi
14802fi
14803
14804 fi
14805 ;;
14806esac
14807
Reid Spencer17795972004-11-18 09:47:37 +000014808enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014809enable_win32_dll=no
14810
Reid Spencera773bd52006-08-04 18:18:08 +000014811# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014812if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014813 enableval=$enable_libtool_lock;
14814fi
John Criswell47fdd832003-07-14 16:52:07 +000014815
John Criswell47fdd832003-07-14 16:52:07 +000014816test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14817
John Criswell7a73b802003-06-30 21:59:07 +000014818
Reid Spencera773bd52006-08-04 18:18:08 +000014819# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014820if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014821 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014822else
14823 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014824fi
14825
John Criswell7a73b802003-06-30 21:59:07 +000014826test -z "$pic_mode" && pic_mode=default
14827
John Criswell47fdd832003-07-14 16:52:07 +000014828# Use C for the default configuration in the libtool script
14829tagname=
14830lt_save_CC="$CC"
14831ac_ext=c
14832ac_cpp='$CPP $CPPFLAGS'
14833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836
14837
14838# Source file extension for C test sources.
14839ac_ext=c
14840
14841# Object file extension for compiled C test sources.
14842objext=o
14843objext=$objext
14844
14845# Code to be used in simple compile tests
14846lt_simple_compile_test_code="int some_variable = 0;\n"
14847
14848# Code to be used in simple link tests
14849lt_simple_link_test_code='int main(){return(0);}\n'
14850
14851
14852# If no C compiler was specified, use CC.
14853LTCC=${LTCC-"$CC"}
14854
Reid Spencera773bd52006-08-04 18:18:08 +000014855# If no C compiler flags were specified, use CFLAGS.
14856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14857
John Criswell47fdd832003-07-14 16:52:07 +000014858# Allow CC to be a program name with arguments.
14859compiler=$CC
14860
14861
Reid Spencera773bd52006-08-04 18:18:08 +000014862# save warnings/boilerplate of simple test code
14863ac_outfile=conftest.$ac_objext
14864printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14866_lt_compiler_boilerplate=`cat conftest.err`
14867$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014868
Reid Spencera773bd52006-08-04 18:18:08 +000014869ac_outfile=conftest.$ac_objext
14870printf "$lt_simple_link_test_code" >conftest.$ac_ext
14871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14872_lt_linker_boilerplate=`cat conftest.err`
14873$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014874
14875
John Criswell47fdd832003-07-14 16:52:07 +000014876
14877lt_prog_compiler_no_builtin_flag=
14878
14879if test "$GCC" = yes; then
14880 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14881
Reid Spencer2706f8c2004-09-19 23:53:36 +000014882
Reid Spencera773bd52006-08-04 18:18:08 +000014883{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14884echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887else
14888 lt_cv_prog_compiler_rtti_exceptions=no
14889 ac_outfile=conftest.$ac_objext
14890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14891 lt_compiler_flag="-fno-rtti -fno-exceptions"
14892 # Insert the option either (1) after the last *FLAGS variable, or
14893 # (2) before a word containing "conftest.", or (3) at the end.
14894 # Note that $ac_compile itself does not contain backslashes and begins
14895 # with a dollar sign (not a hyphen), so the echo should work correctly.
14896 # The option is referenced via a variable to avoid confusing sed.
14897 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000014901 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014902 (eval "$lt_compile" 2>conftest.err)
14903 ac_status=$?
14904 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000014905 echo "$as_me:14905: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014906 if (exit $ac_status) && test -s "$ac_outfile"; then
14907 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014908 # So say no if there are warnings other than the usual output.
14909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014912 lt_cv_prog_compiler_rtti_exceptions=yes
14913 fi
14914 fi
14915 $rm conftest*
14916
14917fi
Reid Spencera773bd52006-08-04 18:18:08 +000014918{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14919echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014920
14921if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14922 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14923else
14924 :
14925fi
14926
14927fi
14928
14929lt_prog_compiler_wl=
14930lt_prog_compiler_pic=
14931lt_prog_compiler_static=
14932
Reid Spencera773bd52006-08-04 18:18:08 +000014933{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14934echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014935
14936 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014937 lt_prog_compiler_wl='-Wl,'
14938 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014939
14940 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014941 aix*)
14942 # All AIX code is PIC.
14943 if test "$host_cpu" = ia64; then
14944 # AIX 5 now supports IA64 processor
14945 lt_prog_compiler_static='-Bstatic'
14946 fi
John Criswell7a73b802003-06-30 21:59:07 +000014947 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014948
John Criswell7a73b802003-06-30 21:59:07 +000014949 amigaos*)
14950 # FIXME: we need at least 68020 code to build shared libraries, but
14951 # adding the `-m68020' flag to GCC prevents building anything better,
14952 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014954 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014955
14956 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014957 # PIC is the default for these OSes.
14958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014959
14960 mingw* | pw32* | os2*)
14961 # This hack is so that the source file can tell whether it is being
14962 # built for inclusion in a dll (and should export symbols for example).
14963 lt_prog_compiler_pic='-DDLL_EXPORT'
14964 ;;
14965
John Criswell7a73b802003-06-30 21:59:07 +000014966 darwin* | rhapsody*)
14967 # PIC is the default on this platform
14968 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014969 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014970 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014971
Reid Spencera773bd52006-08-04 18:18:08 +000014972 interix3*)
14973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14974 # Instead, we relocate shared libraries at runtime.
14975 ;;
14976
John Criswell47fdd832003-07-14 16:52:07 +000014977 msdosdjgpp*)
14978 # Just because we use GCC doesn't mean we suddenly get shared libraries
14979 # on systems that don't support them.
14980 lt_prog_compiler_can_build_shared=no
14981 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014982 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014983
John Criswell7a73b802003-06-30 21:59:07 +000014984 sysv4*MP*)
14985 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014986 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014987 fi
14988 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014989
14990 hpux*)
14991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014993 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014994 hppa*64*|ia64*)
14995 # +Z the default
14996 ;;
14997 *)
14998 lt_prog_compiler_pic='-fPIC'
14999 ;;
15000 esac
15001 ;;
15002
John Criswell7a73b802003-06-30 21:59:07 +000015003 *)
John Criswell47fdd832003-07-14 16:52:07 +000015004 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000015005 ;;
15006 esac
15007 else
John Criswell47fdd832003-07-14 16:52:07 +000015008 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000015009 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015010 aix*)
15011 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015012 if test "$host_cpu" = ia64; then
15013 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000015014 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015015 else
John Criswell47fdd832003-07-14 16:52:07 +000015016 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000015017 fi
15018 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015019 darwin*)
15020 # PIC is the default on this platform
15021 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000015022 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023 xlc*)
15024 lt_prog_compiler_pic='-qnocommon'
15025 lt_prog_compiler_wl='-Wl,'
15026 ;;
15027 esac
15028 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015029
John Criswell47fdd832003-07-14 16:52:07 +000015030 mingw* | pw32* | os2*)
15031 # This hack is so that the source file can tell whether it is being
15032 # built for inclusion in a dll (and should export symbols for example).
15033 lt_prog_compiler_pic='-DDLL_EXPORT'
15034 ;;
15035
John Criswell7a73b802003-06-30 21:59:07 +000015036 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015037 lt_prog_compiler_wl='-Wl,'
15038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015040 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015041 hppa*64*|ia64*)
15042 # +Z the default
15043 ;;
15044 *)
15045 lt_prog_compiler_pic='+Z'
15046 ;;
15047 esac
15048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15049 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015050 ;;
15051
John Criswell47fdd832003-07-14 16:52:07 +000015052 irix5* | irix6* | nonstopux*)
15053 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015054 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015055 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015056 ;;
15057
15058 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 ;;
15062
15063 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015064 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015065 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015066 lt_prog_compiler_wl='-Wl,'
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-static'
15069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015070 pgcc* | pgf77* | pgf90* | pgf95*)
15071 # Portland Group compilers (*not* the Pentium gcc compiler,
15072 # which looks to be a dead project)
15073 lt_prog_compiler_wl='-Wl,'
15074 lt_prog_compiler_pic='-fpic'
15075 lt_prog_compiler_static='-Bstatic'
15076 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015077 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015078 lt_prog_compiler_wl='-Wl,'
15079 # All Alpha code is PIC.
15080 lt_prog_compiler_static='-non_shared'
15081 ;;
15082 esac
John Criswell7a73b802003-06-30 21:59:07 +000015083 ;;
15084
15085 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015086 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015087 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015088 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015089 ;;
15090
John Criswell7a73b802003-06-30 21:59:07 +000015091 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015092 lt_prog_compiler_pic='-KPIC'
15093 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015094 case $cc_basename in
15095 f77* | f90* | f95*)
15096 lt_prog_compiler_wl='-Qoption ld ';;
15097 *)
15098 lt_prog_compiler_wl='-Wl,';;
15099 esac
John Criswell7a73b802003-06-30 21:59:07 +000015100 ;;
15101
15102 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015103 lt_prog_compiler_wl='-Qoption ld '
15104 lt_prog_compiler_pic='-PIC'
15105 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015106 ;;
15107
Reid Spencera773bd52006-08-04 18:18:08 +000015108 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015109 lt_prog_compiler_wl='-Wl,'
15110 lt_prog_compiler_pic='-KPIC'
15111 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015112 ;;
15113
15114 sysv4*MP*)
15115 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015116 lt_prog_compiler_pic='-Kconform_pic'
15117 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015118 fi
15119 ;;
15120
Reid Spencera773bd52006-08-04 18:18:08 +000015121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15122 lt_prog_compiler_wl='-Wl,'
15123 lt_prog_compiler_pic='-KPIC'
15124 lt_prog_compiler_static='-Bstatic'
15125 ;;
15126
15127 unicos*)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_can_build_shared=no
15130 ;;
15131
John Criswell47fdd832003-07-14 16:52:07 +000015132 uts4*)
15133 lt_prog_compiler_pic='-pic'
15134 lt_prog_compiler_static='-Bstatic'
15135 ;;
15136
John Criswell7a73b802003-06-30 21:59:07 +000015137 *)
John Criswell47fdd832003-07-14 16:52:07 +000015138 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015139 ;;
15140 esac
15141 fi
15142
Reid Spencera773bd52006-08-04 18:18:08 +000015143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15144echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015145
John Criswell47fdd832003-07-14 16:52:07 +000015146#
15147# Check to make sure the PIC flag actually works.
15148#
15149if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015150
Reid Spencera773bd52006-08-04 18:18:08 +000015151{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015153if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155else
John Criswell47fdd832003-07-14 16:52:07 +000015156 lt_prog_compiler_pic_works=no
15157 ac_outfile=conftest.$ac_objext
15158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15160 # Insert the option either (1) after the last *FLAGS variable, or
15161 # (2) before a word containing "conftest.", or (3) at the end.
15162 # Note that $ac_compile itself does not contain backslashes and begins
15163 # with a dollar sign (not a hyphen), so the echo should work correctly.
15164 # The option is referenced via a variable to avoid confusing sed.
15165 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000015169 (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015170 (eval "$lt_compile" 2>conftest.err)
15171 ac_status=$?
15172 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000015173 echo "$as_me:15173: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015174 if (exit $ac_status) && test -s "$ac_outfile"; then
15175 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015176 # So say no if there are warnings other than the usual output.
15177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015180 lt_prog_compiler_pic_works=yes
15181 fi
15182 fi
15183 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015184
John Criswell47fdd832003-07-14 16:52:07 +000015185fi
Reid Spencera773bd52006-08-04 18:18:08 +000015186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15187echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015188
John Criswell47fdd832003-07-14 16:52:07 +000015189if test x"$lt_prog_compiler_pic_works" = xyes; then
15190 case $lt_prog_compiler_pic in
15191 "" | " "*) ;;
15192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15193 esac
John Criswell7a73b802003-06-30 21:59:07 +000015194else
John Criswell47fdd832003-07-14 16:52:07 +000015195 lt_prog_compiler_pic=
15196 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015197fi
15198
John Criswell7a73b802003-06-30 21:59:07 +000015199fi
Reid Spencera773bd52006-08-04 18:18:08 +000015200case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015201 # For platforms which do not support PIC, -DPIC is meaningless:
15202 *djgpp*)
15203 lt_prog_compiler_pic=
15204 ;;
15205 *)
15206 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15207 ;;
15208esac
John Criswell7a73b802003-06-30 21:59:07 +000015209
Reid Spencera773bd52006-08-04 18:18:08 +000015210#
15211# Check to make sure the static flag actually works.
15212#
15213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15214{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15216if test "${lt_prog_compiler_static_works+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 lt_prog_compiler_static_works=no
15220 save_LDFLAGS="$LDFLAGS"
15221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15222 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15224 # The linker can only warn and ignore the option if not recognized
15225 # So say no if there are warnings
15226 if test -s conftest.err; then
15227 # Append any errors to the config.log.
15228 cat conftest.err 1>&5
15229 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15231 if diff conftest.exp conftest.er2 >/dev/null; then
15232 lt_prog_compiler_static_works=yes
15233 fi
15234 else
15235 lt_prog_compiler_static_works=yes
15236 fi
15237 fi
15238 $rm conftest*
15239 LDFLAGS="$save_LDFLAGS"
15240
15241fi
15242{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15243echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15244
15245if test x"$lt_prog_compiler_static_works" = xyes; then
15246 :
15247else
15248 lt_prog_compiler_static=
15249fi
15250
15251
15252{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015254if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
John Criswell47fdd832003-07-14 16:52:07 +000015257 lt_cv_prog_compiler_c_o=no
15258 $rm -r conftest 2>/dev/null
15259 mkdir conftest
15260 cd conftest
15261 mkdir out
15262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015263
John Criswell47fdd832003-07-14 16:52:07 +000015264 lt_compiler_flag="-o out/conftest2.$ac_objext"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000015273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015274 (eval "$lt_compile" 2>out/conftest.err)
15275 ac_status=$?
15276 cat out/conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000015277 echo "$as_me:15277: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15279 then
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015285 lt_cv_prog_compiler_c_o=yes
15286 fi
15287 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015288 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015289 $rm conftest*
15290 # SGI C++ compiler will create directory out/ii_files/ for
15291 # template instantiation
15292 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15293 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015294 cd ..
15295 rmdir conftest
15296 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015297
15298fi
Reid Spencera773bd52006-08-04 18:18:08 +000015299{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15300echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015301
John Criswell7a73b802003-06-30 21:59:07 +000015302
John Criswell7a73b802003-06-30 21:59:07 +000015303hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015304if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015305 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015306 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015308 hard_links=yes
15309 $rm conftest*
15310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15311 touch conftest.a
15312 ln conftest.a conftest.b 2>&5 || hard_links=no
15313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015314 { echo "$as_me:$LINENO: result: $hard_links" >&5
15315echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015316 if test "$hard_links" = no; then
15317 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15319 need_locks=warn
15320 fi
15321else
15322 need_locks=no
15323fi
John Criswell7a73b802003-06-30 21:59:07 +000015324
Reid Spencera773bd52006-08-04 18:18:08 +000015325{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015327
15328 runpath_var=
15329 allow_undefined_flag=
15330 enable_shared_with_static_runtimes=no
15331 archive_cmds=
15332 archive_expsym_cmds=
15333 old_archive_From_new_cmds=
15334 old_archive_from_expsyms_cmds=
15335 export_dynamic_flag_spec=
15336 whole_archive_flag_spec=
15337 thread_safe_flag_spec=
15338 hardcode_libdir_flag_spec=
15339 hardcode_libdir_flag_spec_ld=
15340 hardcode_libdir_separator=
15341 hardcode_direct=no
15342 hardcode_minus_L=no
15343 hardcode_shlibpath_var=unsupported
15344 link_all_deplibs=unknown
15345 hardcode_automatic=no
15346 module_cmds=
15347 module_expsym_cmds=
15348 always_export_symbols=no
15349 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15350 # include_expsyms should be a list of space-separated symbols to be *always*
15351 # included in the symbol list
15352 include_expsyms=
15353 # exclude_expsyms can be an extended regexp of symbols to exclude
15354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15356 # as well as any symbol that contains `d'.
15357 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15359 # platforms (ab)use it in PIC code, but their linkers get confused if
15360 # the symbol is explicitly referenced. Since portable code cannot
15361 # rely on this symbol name, it's probably fine to never include it in
15362 # preloaded symbol tables.
15363 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015364 # Just being paranoid about ensuring that cc_basename is set.
15365 for cc_temp in $compiler""; do
15366 case $cc_temp in
15367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15369 \-*) ;;
15370 *) break;;
15371 esac
15372done
15373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015374
15375 case $host_os in
15376 cygwin* | mingw* | pw32*)
15377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15378 # When not using gcc, we currently assume that we are using
15379 # Microsoft Visual C++.
15380 if test "$GCC" != yes; then
15381 with_gnu_ld=no
15382 fi
15383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015384 interix*)
15385 # we just hope/assume this is gcc and not c89 (= MSVC++)
15386 with_gnu_ld=yes
15387 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015388 openbsd*)
15389 with_gnu_ld=no
15390 ;;
15391 esac
15392
15393 ld_shlibs=yes
15394 if test "$with_gnu_ld" = yes; then
15395 # If archive_cmds runs LD, not CC, wlarc should be empty
15396 wlarc='${wl}'
15397
Reid Spencera773bd52006-08-04 18:18:08 +000015398 # Set some defaults for GNU ld with shared library support. These
15399 # are reset later if shared libraries are not supported. Putting them
15400 # here allows them to be overridden if necessary.
15401 runpath_var=LD_RUN_PATH
15402 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15403 export_dynamic_flag_spec='${wl}--export-dynamic'
15404 # ancient GNU ld didn't support --whole-archive et. al.
15405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15407 else
15408 whole_archive_flag_spec=
15409 fi
15410 supports_anon_versioning=no
15411 case `$LD -v 2>/dev/null` in
15412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15415 *\ 2.11.*) ;; # other 2.11 versions
15416 *) supports_anon_versioning=yes ;;
15417 esac
15418
John Criswell47fdd832003-07-14 16:52:07 +000015419 # See if GNU ld supports shared libraries.
15420 case $host_os in
15421 aix3* | aix4* | aix5*)
15422 # On AIX/PPC, the GNU linker is very broken
15423 if test "$host_cpu" != ia64; then
15424 ld_shlibs=no
15425 cat <<EOF 1>&2
15426
15427*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15428*** to be unable to reliably create shared libraries on AIX.
15429*** Therefore, libtool is disabling shared libraries support. If you
15430*** really care for shared libraries, you may want to modify your PATH
15431*** so that a non-GNU linker is found, and then restart.
15432
15433EOF
15434 fi
15435 ;;
15436
15437 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 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 +000015439 hardcode_libdir_flag_spec='-L$libdir'
15440 hardcode_minus_L=yes
15441
15442 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15443 # that the semantics of dynamic libraries on AmigaOS, at least up
15444 # to version 4, is to share data among multiple programs linked
15445 # with the same dynamic library. Since this doesn't match the
15446 # behavior of shared libraries on other platforms, we can't use
15447 # them.
15448 ld_shlibs=no
15449 ;;
15450
15451 beos*)
15452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15453 allow_undefined_flag=unsupported
15454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15455 # support --undefined. This deserves some investigation. FIXME
15456 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457 else
15458 ld_shlibs=no
15459 fi
15460 ;;
15461
15462 cygwin* | mingw* | pw32*)
15463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15464 # as there is no search path for DLLs.
15465 hardcode_libdir_flag_spec='-L$libdir'
15466 allow_undefined_flag=unsupported
15467 always_export_symbols=no
15468 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015469 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 +000015470
15471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015472 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 +000015473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15477 else
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015480 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015481 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15482 else
15483 ld_shlibs=no
15484 fi
15485 ;;
15486
15487 interix3*)
15488 hardcode_direct=no
15489 hardcode_shlibpath_var=no
15490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15491 export_dynamic_flag_spec='${wl}-E'
15492 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15493 # Instead, shared libraries are loaded at an image base (0x10000000 by
15494 # default) and relocated if they conflict, which is a slow very memory
15495 # consuming and fragmenting process. To avoid this, we pick a random,
15496 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15497 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15499 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'
15500 ;;
15501
15502 linux*)
15503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504 tmp_addflag=
15505 case $cc_basename,$host_cpu in
15506 pgcc*) # Portland Group C compiler
15507 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'
15508 tmp_addflag=' $pic_flag'
15509 ;;
15510 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15511 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'
15512 tmp_addflag=' $pic_flag -Mnomain' ;;
15513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15514 tmp_addflag=' -i_dynamic' ;;
15515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15516 tmp_addflag=' -i_dynamic -nofor_main' ;;
15517 ifc* | ifort*) # Intel Fortran compiler
15518 tmp_addflag=' -nofor_main' ;;
15519 esac
15520 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15521
15522 if test $supports_anon_versioning = yes; then
15523 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15525 $echo "local: *; };" >> $output_objdir/$libname.ver~
15526 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15527 fi
John Criswell47fdd832003-07-14 16:52:07 +000015528 else
15529 ld_shlibs=no
15530 fi
15531 ;;
15532
15533 netbsd*)
15534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15535 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15536 wlarc=
15537 else
15538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540 fi
15541 ;;
15542
Reid Spencera773bd52006-08-04 18:18:08 +000015543 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15545 ld_shlibs=no
15546 cat <<EOF 1>&2
15547
15548*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15549*** create shared libraries on Solaris systems. Therefore, libtool
15550*** is disabling shared libraries support. We urge you to upgrade GNU
15551*** binutils to release 2.9.1 or newer. Another option is to modify
15552*** your PATH or compiler configuration so that the native linker is
15553*** used, and then restart.
15554
15555EOF
15556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15559 else
15560 ld_shlibs=no
15561 fi
15562 ;;
15563
Reid Spencera773bd52006-08-04 18:18:08 +000015564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15565 case `$LD -v 2>&1` in
15566 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15567 ld_shlibs=no
15568 cat <<_LT_EOF 1>&2
15569
15570*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15571*** reliably create shared libraries on SCO systems. Therefore, libtool
15572*** is disabling shared libraries support. We urge you to upgrade GNU
15573*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15574*** your PATH or compiler configuration so that the native linker is
15575*** used, and then restart.
15576
15577_LT_EOF
15578 ;;
15579 *)
15580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15584 else
15585 ld_shlibs=no
15586 fi
15587 ;;
15588 esac
15589 ;;
15590
John Criswell47fdd832003-07-14 16:52:07 +000015591 sunos4*)
15592 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15593 wlarc=
15594 hardcode_direct=yes
15595 hardcode_shlibpath_var=no
15596 ;;
15597
15598 *)
15599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15602 else
15603 ld_shlibs=no
15604 fi
15605 ;;
15606 esac
15607
Reid Spencera773bd52006-08-04 18:18:08 +000015608 if test "$ld_shlibs" = no; then
15609 runpath_var=
15610 hardcode_libdir_flag_spec=
15611 export_dynamic_flag_spec=
15612 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015613 fi
15614 else
15615 # PORTME fill in a description of your system's linker (not GNU ld)
15616 case $host_os in
15617 aix3*)
15618 allow_undefined_flag=unsupported
15619 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015620 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 +000015621 # Note: this linker hardcodes the directories in LIBPATH if there
15622 # are no directories specified by -L.
15623 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015624 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015625 # Neither direct hardcoding nor static linking is supported with a
15626 # broken collect2.
15627 hardcode_direct=unsupported
15628 fi
15629 ;;
15630
15631 aix4* | aix5*)
15632 if test "$host_cpu" = ia64; then
15633 # On IA64, the linker does run time linking by default, so we don't
15634 # have to do anything special.
15635 aix_use_runtimelinking=no
15636 exp_sym_flag='-Bexport'
15637 no_entry_flag=""
15638 else
15639 # If we're using GNU nm, then we don't want the "-C" option.
15640 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15641 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15642 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'
15643 else
15644 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'
15645 fi
15646 aix_use_runtimelinking=no
15647
15648 # Test if we are trying to use run time linking or normal
15649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15650 # need to do runtime linking.
15651 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15652 for ld_flag in $LDFLAGS; do
15653 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15654 aix_use_runtimelinking=yes
15655 break
15656 fi
15657 done
Reid Spencera773bd52006-08-04 18:18:08 +000015658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015659 esac
15660
15661 exp_sym_flag='-bexport'
15662 no_entry_flag='-bnoentry'
15663 fi
15664
15665 # When large executables or shared objects are built, AIX ld can
15666 # have problems creating the table of contents. If linking a library
15667 # or program results in "error TOC overflow" add -mminimal-toc to
15668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15670
15671 archive_cmds=''
15672 hardcode_direct=yes
15673 hardcode_libdir_separator=':'
15674 link_all_deplibs=yes
15675
15676 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015677 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015678 # We only want to do this on AIX 4.2 and lower, the check
15679 # below for broken collect2 doesn't work under 4.3+
15680 collect2name=`${CC} -print-prog-name=collect2`
15681 if test -f "$collect2name" && \
15682 strings "$collect2name" | grep resolve_lib_name >/dev/null
15683 then
15684 # We have reworked collect2
15685 hardcode_direct=yes
15686 else
15687 # We have old collect2
15688 hardcode_direct=unsupported
15689 # It fails to find uninstalled libraries when the uninstalled
15690 # path is not listed in the libpath. Setting hardcode_minus_L
15691 # to unsupported forces relinking
15692 hardcode_minus_L=yes
15693 hardcode_libdir_flag_spec='-L$libdir'
15694 hardcode_libdir_separator=
15695 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015696 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015697 esac
15698 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015699 if test "$aix_use_runtimelinking" = yes; then
15700 shared_flag="$shared_flag "'${wl}-G'
15701 fi
John Criswell47fdd832003-07-14 16:52:07 +000015702 else
15703 # not using gcc
15704 if test "$host_cpu" = ia64; then
15705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15706 # chokes on -Wl,-G. The following line is correct:
15707 shared_flag='-G'
15708 else
Reid Spencera773bd52006-08-04 18:18:08 +000015709 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015710 shared_flag='${wl}-G'
15711 else
15712 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015713 fi
John Criswell47fdd832003-07-14 16:52:07 +000015714 fi
15715 fi
15716
15717 # It seems that -bexpall does not export symbols beginning with
15718 # underscore (_), so it is better to generate a list of symbols to export.
15719 always_export_symbols=yes
15720 if test "$aix_use_runtimelinking" = yes; then
15721 # Warning - without using the other runtime loading flags (-brtl),
15722 # -berok will link without error, but may produce a broken library.
15723 allow_undefined_flag='-berok'
15724 # Determine the default libpath from the value encoded in an empty executable.
15725 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015731
John Criswell7a73b802003-06-30 21:59:07 +000015732int
15733main ()
15734{
John Criswell47fdd832003-07-14 16:52:07 +000015735
John Criswell7a73b802003-06-30 21:59:07 +000015736 ;
15737 return 0;
15738}
15739_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015740rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015741if { (ac_try="$ac_link"
15742case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745esac
15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758esac
15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768esac
15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015774
John Criswell47fdd832003-07-14 16:52:07 +000015775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15776}'`
15777# Check for a 64-bit object if we didn't find anything.
15778if 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; }
15779}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015780else
15781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015782sed 's/^/| /' conftest.$ac_ext >&5
15783
Reid Spencera773bd52006-08-04 18:18:08 +000015784
John Criswell7a73b802003-06-30 21:59:07 +000015785fi
Reid Spencera773bd52006-08-04 18:18:08 +000015786
Bill Wendlingebcceee2009-04-18 11:20:33 +000015787rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015788 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015789if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015790
John Criswell47fdd832003-07-14 16:52:07 +000015791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015792 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 +000015793 else
15794 if test "$host_cpu" = ia64; then
15795 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15796 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015797 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 +000015798 else
15799 # Determine the default libpath from the value encoded in an empty executable.
15800 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015806
John Criswell47fdd832003-07-14 16:52:07 +000015807int
15808main ()
15809{
John Criswell7a73b802003-06-30 21:59:07 +000015810
John Criswell47fdd832003-07-14 16:52:07 +000015811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015816if { (ac_try="$ac_link"
15817case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820esac
15821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015823 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15833esac
15834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_try") 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest$ac_exeext'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015849
John Criswell47fdd832003-07-14 16:52:07 +000015850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15851}'`
15852# Check for a 64-bit object if we didn't find anything.
15853if 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; }
15854}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015855else
John Criswell47fdd832003-07-14 16:52:07 +000015856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015857sed 's/^/| /' conftest.$ac_ext >&5
15858
Reid Spencera773bd52006-08-04 18:18:08 +000015859
John Criswell47fdd832003-07-14 16:52:07 +000015860fi
Reid Spencera773bd52006-08-04 18:18:08 +000015861
Bill Wendlingebcceee2009-04-18 11:20:33 +000015862rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015863 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015865
John Criswell47fdd832003-07-14 16:52:07 +000015866 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 # Warning - without using the other run time loading flags,
15868 # -berok will link without error, but may produce a broken library.
15869 no_undefined_flag=' ${wl}-bernotok'
15870 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015871 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015872 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015873 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015874 # This is similar to how AIX traditionally builds its shared libraries.
15875 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 +000015876 fi
15877 fi
John Criswell7a73b802003-06-30 21:59:07 +000015878 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015879
15880 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015881 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 +000015882 hardcode_libdir_flag_spec='-L$libdir'
15883 hardcode_minus_L=yes
15884 # see comment about different semantics on the GNU ld section
15885 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015886 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015887
Reid Spencer2706f8c2004-09-19 23:53:36 +000015888 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015889 export_dynamic_flag_spec=-rdynamic
15890 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015891
John Criswell47fdd832003-07-14 16:52:07 +000015892 cygwin* | mingw* | pw32*)
15893 # When not using gcc, we currently assume that we are using
15894 # Microsoft Visual C++.
15895 # hardcode_libdir_flag_spec is actually meaningless, as there is
15896 # no search path for DLLs.
15897 hardcode_libdir_flag_spec=' '
15898 allow_undefined_flag=unsupported
15899 # Tell ltmain to make .lib files, not .a files.
15900 libext=lib
15901 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015902 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015903 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015905 # The linker will automatically build a .lib file if we build a DLL.
15906 old_archive_From_new_cmds='true'
15907 # FIXME: Should let the user specify the lib program.
15908 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15909 fix_srcfile_path='`cygpath -w "$srcfile"`'
15910 enable_shared_with_static_runtimes=yes
15911 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015912
John Criswell47fdd832003-07-14 16:52:07 +000015913 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015914 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015915 rhapsody* | darwin1.[012])
15916 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15917 ;;
15918 *) # Darwin 1.3 on
15919 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15920 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15921 else
15922 case ${MACOSX_DEPLOYMENT_TARGET} in
15923 10.[012])
15924 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15925 ;;
15926 10.*)
15927 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15928 ;;
15929 esac
15930 fi
15931 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015932 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015933 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015934 hardcode_direct=no
15935 hardcode_automatic=yes
15936 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015937 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015938 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015939 if test "$GCC" = yes ; then
15940 output_verbose_link_cmd='echo'
15941 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15942 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015943 # 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 +000015944 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}'
15945 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 +000015946 else
Reid Spencera773bd52006-08-04 18:18:08 +000015947 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015948 xlc*)
15949 output_verbose_link_cmd='echo'
15950 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15951 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015952 # 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 +000015953 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}'
15954 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 +000015955 ;;
15956 *)
15957 ld_shlibs=no
15958 ;;
15959 esac
John Criswell7a73b802003-06-30 21:59:07 +000015960 fi
John Criswell47fdd832003-07-14 16:52:07 +000015961 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015962
John Criswell47fdd832003-07-14 16:52:07 +000015963 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015965 hardcode_libdir_flag_spec='-L$libdir'
15966 hardcode_shlibpath_var=no
15967 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015968
John Criswell47fdd832003-07-14 16:52:07 +000015969 freebsd1*)
15970 ld_shlibs=no
15971 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015972
John Criswell47fdd832003-07-14 16:52:07 +000015973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15974 # support. Future versions do this automatically, but an explicit c++rt0.o
15975 # does not break anything, and helps significantly (at the cost of a little
15976 # extra space).
15977 freebsd2.2*)
15978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15979 hardcode_libdir_flag_spec='-R$libdir'
15980 hardcode_direct=yes
15981 hardcode_shlibpath_var=no
15982 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015983
John Criswell47fdd832003-07-14 16:52:07 +000015984 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15985 freebsd2*)
15986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_direct=yes
15988 hardcode_minus_L=yes
15989 hardcode_shlibpath_var=no
15990 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015991
John Criswell47fdd832003-07-14 16:52:07 +000015992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015993 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015994 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15995 hardcode_libdir_flag_spec='-R$libdir'
15996 hardcode_direct=yes
15997 hardcode_shlibpath_var=no
15998 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015999
John Criswell47fdd832003-07-14 16:52:07 +000016000 hpux9*)
16001 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016002 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 +000016003 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016004 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 +000016005 fi
16006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16007 hardcode_libdir_separator=:
16008 hardcode_direct=yes
16009
16010 # hardcode_minus_L: Not really in the search PATH,
16011 # but as the default location of the library.
16012 hardcode_minus_L=yes
16013 export_dynamic_flag_spec='${wl}-E'
16014 ;;
16015
Reid Spencera773bd52006-08-04 18:18:08 +000016016 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000016017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16019 else
16020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16021 fi
16022 if test "$with_gnu_ld" = no; then
16023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16024 hardcode_libdir_separator=:
16025
16026 hardcode_direct=yes
16027 export_dynamic_flag_spec='${wl}-E'
16028
16029 # hardcode_minus_L: Not really in the search PATH,
16030 # but as the default location of the library.
16031 hardcode_minus_L=yes
16032 fi
16033 ;;
16034
16035 hpux11*)
16036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16037 case $host_cpu in
16038 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016039 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016041 ia64*)
16042 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16043 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016044 *)
16045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16046 ;;
16047 esac
16048 else
Reid Spencera773bd52006-08-04 18:18:08 +000016049 case $host_cpu in
16050 hppa*64*)
16051 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16052 ;;
16053 ia64*)
16054 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016055 ;;
16056 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016057 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 +000016058 ;;
16059 esac
16060 fi
16061 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16063 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016064
Reid Spencera773bd52006-08-04 18:18:08 +000016065 case $host_cpu in
16066 hppa*64*|ia64*)
16067 hardcode_libdir_flag_spec_ld='+b $libdir'
16068 hardcode_direct=no
16069 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016070 ;;
16071 *)
John Criswell47fdd832003-07-14 16:52:07 +000016072 hardcode_direct=yes
16073 export_dynamic_flag_spec='${wl}-E'
16074
16075 # hardcode_minus_L: Not really in the search PATH,
16076 # but as the default location of the library.
16077 hardcode_minus_L=yes
16078 ;;
16079 esac
16080 fi
16081 ;;
16082
16083 irix5* | irix6* | nonstopux*)
16084 if test "$GCC" = yes; then
16085 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'
16086 else
16087 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'
16088 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16089 fi
16090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16091 hardcode_libdir_separator=:
16092 link_all_deplibs=yes
16093 ;;
16094
16095 netbsd*)
16096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16098 else
16099 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16100 fi
16101 hardcode_libdir_flag_spec='-R$libdir'
16102 hardcode_direct=yes
16103 hardcode_shlibpath_var=no
16104 ;;
16105
16106 newsos6)
16107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_direct=yes
16109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16110 hardcode_libdir_separator=:
16111 hardcode_shlibpath_var=no
16112 ;;
16113
16114 openbsd*)
16115 hardcode_direct=yes
16116 hardcode_shlibpath_var=no
16117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119 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 +000016120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16121 export_dynamic_flag_spec='${wl}-E'
16122 else
16123 case $host_os in
16124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_libdir_flag_spec='-R$libdir'
16127 ;;
16128 *)
16129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16131 ;;
16132 esac
16133 fi
16134 ;;
16135
16136 os2*)
16137 hardcode_libdir_flag_spec='-L$libdir'
16138 hardcode_minus_L=yes
16139 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016140 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 +000016141 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16142 ;;
16143
16144 osf3*)
16145 if test "$GCC" = yes; then
16146 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16147 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'
16148 else
16149 allow_undefined_flag=' -expect_unresolved \*'
16150 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'
16151 fi
16152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16153 hardcode_libdir_separator=:
16154 ;;
16155
16156 osf4* | osf5*) # as osf3* with the addition of -msym flag
16157 if test "$GCC" = yes; then
16158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16159 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'
16160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16161 else
16162 allow_undefined_flag=' -expect_unresolved \*'
16163 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 +000016164 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 +000016165 $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 +000016166
John Criswell47fdd832003-07-14 16:52:07 +000016167 # Both c and cxx compiler support -rpath directly
16168 hardcode_libdir_flag_spec='-rpath $libdir'
16169 fi
16170 hardcode_libdir_separator=:
16171 ;;
16172
John Criswell47fdd832003-07-14 16:52:07 +000016173 solaris*)
16174 no_undefined_flag=' -z text'
16175 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016176 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016177 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016178 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179 $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 +000016180 else
Reid Spencera773bd52006-08-04 18:18:08 +000016181 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016182 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016183 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184 $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 +000016185 fi
16186 hardcode_libdir_flag_spec='-R$libdir'
16187 hardcode_shlibpath_var=no
16188 case $host_os in
16189 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016190 *)
16191 # The compiler driver will combine linker options so we
16192 # cannot just pass the convience library names through
16193 # without $wl, iff we do not link with $LD.
16194 # Luckily, gcc supports the same syntax we need for Sun Studio.
16195 # Supported since Solaris 2.6 (maybe 2.5.1?)
16196 case $wlarc in
16197 '')
16198 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16199 *)
16200 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' ;;
16201 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016202 esac
16203 link_all_deplibs=yes
16204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016205
John Criswell47fdd832003-07-14 16:52:07 +000016206 sunos4*)
16207 if test "x$host_vendor" = xsequent; then
16208 # Use $CC to link under sequent, because it throws in some extra .o
16209 # files that make .init and .fini sections work.
16210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16211 else
16212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16213 fi
16214 hardcode_libdir_flag_spec='-L$libdir'
16215 hardcode_direct=yes
16216 hardcode_minus_L=yes
16217 hardcode_shlibpath_var=no
16218 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016219
John Criswell47fdd832003-07-14 16:52:07 +000016220 sysv4)
16221 case $host_vendor in
16222 sni)
16223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct=yes # is this really true???
16225 ;;
16226 siemens)
16227 ## LD is ld it makes a PLAMLIB
16228 ## CC just makes a GrossModule.
16229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16230 reload_cmds='$CC -r -o $output$reload_objs'
16231 hardcode_direct=no
16232 ;;
16233 motorola)
16234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16236 ;;
16237 esac
16238 runpath_var='LD_RUN_PATH'
16239 hardcode_shlibpath_var=no
16240 ;;
16241
16242 sysv4.3*)
16243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244 hardcode_shlibpath_var=no
16245 export_dynamic_flag_spec='-Bexport'
16246 ;;
16247
16248 sysv4*MP*)
16249 if test -d /usr/nec; then
16250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_shlibpath_var=no
16252 runpath_var=LD_RUN_PATH
16253 hardcode_runpath_var=yes
16254 ld_shlibs=yes
16255 fi
16256 ;;
16257
Reid Spencera773bd52006-08-04 18:18:08 +000016258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16259 no_undefined_flag='${wl}-z,text'
16260 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016261 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016262 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016263
John Criswell47fdd832003-07-14 16:52:07 +000016264 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 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 +000016267 else
Reid Spencera773bd52006-08-04 18:18:08 +000016268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16269 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 +000016270 fi
John Criswell47fdd832003-07-14 16:52:07 +000016271 ;;
16272
Reid Spencera773bd52006-08-04 18:18:08 +000016273 sysv5* | sco3.2v5* | sco5v6*)
16274 # Note: We can NOT use -z defs as we might desire, because we do not
16275 # link with -lc, and that would cause any symbols used from libc to
16276 # always be unresolved, which means just about no library would
16277 # ever link correctly. If we're not using GNU ld we use -z text
16278 # though, which does catch some bad symbols but isn't as heavy-handed
16279 # as -z defs.
16280 no_undefined_flag='${wl}-z,text'
16281 allow_undefined_flag='${wl}-z,nodefs'
16282 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016283 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016284 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16285 hardcode_libdir_separator=':'
16286 link_all_deplibs=yes
16287 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016288 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016289
16290 if test "$GCC" = yes; then
16291 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293 else
16294 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 fi
John Criswell47fdd832003-07-14 16:52:07 +000016297 ;;
16298
16299 uts4*)
16300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_libdir_flag_spec='-L$libdir'
16302 hardcode_shlibpath_var=no
16303 ;;
16304
16305 *)
16306 ld_shlibs=no
16307 ;;
16308 esac
16309 fi
16310
Reid Spencera773bd52006-08-04 18:18:08 +000016311{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16312echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016313test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016314
John Criswell47fdd832003-07-14 16:52:07 +000016315#
16316# Do we need to explicitly link libc?
16317#
16318case "x$archive_cmds_need_lc" in
16319x|xyes)
16320 # Assume -lc should be added
16321 archive_cmds_need_lc=yes
16322
16323 if test "$enable_shared" = yes && test "$GCC" = yes; then
16324 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016325 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016326 # FIXME: we may have to deal with multi-command sequences.
16327 ;;
16328 '$CC '*)
16329 # Test whether the compiler implicitly links with -lc since on some
16330 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16331 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016332 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16333echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016334 $rm conftest*
16335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16336
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } 2>conftest.err; then
16342 soname=conftest
16343 lib=conftest
16344 libobjs=conftest.$ac_objext
16345 deplibs=
16346 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016347 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016348 compiler_flags=-v
16349 linker_flags=-v
16350 verstring=
16351 output_objdir=.
16352 libname=conftest
16353 lt_save_allow_undefined_flag=$allow_undefined_flag
16354 allow_undefined_flag=
16355 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }
16360 then
16361 archive_cmds_need_lc=no
16362 else
16363 archive_cmds_need_lc=yes
16364 fi
16365 allow_undefined_flag=$lt_save_allow_undefined_flag
16366 else
16367 cat conftest.err 1>&5
16368 fi
16369 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016370 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16371echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016372 ;;
16373 esac
16374 fi
16375 ;;
16376esac
16377
Reid Spencera773bd52006-08-04 18:18:08 +000016378{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16379echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016380library_names_spec=
16381libname_spec='lib$name'
16382soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016383shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016384postinstall_cmds=
16385postuninstall_cmds=
16386finish_cmds=
16387finish_eval=
16388shlibpath_var=
16389shlibpath_overrides_runpath=unknown
16390version_type=none
16391dynamic_linker="$host_os ld.so"
16392sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016393if test "$GCC" = yes; then
16394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16395 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16396 # if the path contains ";" then we assume it to be the separator
16397 # otherwise default to the standard path separator (i.e. ":") - it is
16398 # assumed that no part of a normal pathname contains ";" but that should
16399 # okay in the real world where ";" in dirpaths is itself problematic.
16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16401 else
16402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16403 fi
16404else
16405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16406fi
16407need_lib_prefix=unknown
16408hardcode_into_libs=no
16409
16410# when you set need_version to no, make sure it does not cause -set_version
16411# flags to be left without arguments
16412need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016413
16414case $host_os in
16415aix3*)
16416 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016418 shlibpath_var=LIBPATH
16419
John Criswell47fdd832003-07-14 16:52:07 +000016420 # AIX 3 has no versioning support, so we append a major version to the name.
16421 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016422 ;;
16423
16424aix4* | aix5*)
16425 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016426 need_lib_prefix=no
16427 need_version=no
16428 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016429 if test "$host_cpu" = ia64; then
16430 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016432 shlibpath_var=LD_LIBRARY_PATH
16433 else
16434 # With GCC up to 2.95.x, collect2 would create an import file
16435 # for dependence libraries. The import file would start with
16436 # the line `#! .'. This would cause the generated library to
16437 # depend on `.', always an invalid library. This was fixed in
16438 # development snapshots of GCC prior to 3.0.
16439 case $host_os in
16440 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16442 echo ' yes '
16443 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16444 :
16445 else
16446 can_build_shared=no
16447 fi
16448 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016449 esac
John Criswell47fdd832003-07-14 16:52:07 +000016450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16451 # soname into executable. Probably we can add versioning support to
16452 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016453 if test "$aix_use_runtimelinking" = yes; then
16454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16455 # instead of lib<name>.a to let people know that these are not
16456 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016458 else
16459 # We preserve .a as extension for shared libraries through AIX4.2
16460 # and later when we are not doing run time linking.
16461 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016462 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016463 fi
16464 shlibpath_var=LIBPATH
16465 fi
16466 ;;
16467
16468amigaos*)
16469 library_names_spec='$libname.ixlibrary $libname.a'
16470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016471 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 +000016472 ;;
16473
16474beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016475 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016476 dynamic_linker="$host_os ld.so"
16477 shlibpath_var=LIBRARY_PATH
16478 ;;
16479
Reid Spencer2706f8c2004-09-19 23:53:36 +000016480bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016481 version_type=linux
16482 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016489 # the default ld.so.conf also contains /usr/contrib/lib and
16490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16491 # libtool to hard-code these into programs
16492 ;;
16493
16494cygwin* | mingw* | pw32*)
16495 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016496 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016497 need_version=no
16498 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016499
John Criswell7a73b802003-06-30 21:59:07 +000016500 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016501 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016502 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016504 postinstall_cmds='base_file=`basename \${file}`~
16505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16506 dldir=$destdir/`dirname \$dlpath`~
16507 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016508 $install_prog $dir/$dlname \$dldir/$dlname~
16509 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16511 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016512 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016513 shlibpath_overrides_runpath=yes
16514
16515 case $host_os in
16516 cygwin*)
16517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16518 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 +000016519 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016520 ;;
16521 mingw*)
16522 # MinGW DLLs use traditional 'lib' prefix
16523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16525 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16526 # It is most probably a Windows format PATH printed by
16527 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16528 # path with ; separators, and with drive letters. We can handle the
16529 # drive letters (cygwin fileutils understands them), so leave them,
16530 # especially as we might pass files found there to a mingw objdump,
16531 # which wouldn't understand a cygwinified path. Ahh.
16532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16533 else
16534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16535 fi
16536 ;;
16537 pw32*)
16538 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016539 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 +000016540 ;;
16541 esac
John Criswell7a73b802003-06-30 21:59:07 +000016542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016543
John Criswell7a73b802003-06-30 21:59:07 +000016544 *)
John Criswell47fdd832003-07-14 16:52:07 +000016545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016546 ;;
16547 esac
16548 dynamic_linker='Win32 ld.exe'
16549 # FIXME: first we should search . and the directory the executable is in
16550 shlibpath_var=PATH
16551 ;;
16552
16553darwin* | rhapsody*)
16554 dynamic_linker="$host_os dyld"
16555 version_type=darwin
16556 need_lib_prefix=no
16557 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016558 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016559 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016560 shlibpath_overrides_runpath=yes
16561 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016562 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016563 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016564 if test "$GCC" = yes; then
16565 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"`
16566 else
16567 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016568 fi
16569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16570 ;;
16571
16572dgux*)
16573 version_type=linux
16574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016579 ;;
16580
16581freebsd1*)
16582 dynamic_linker=no
16583 ;;
16584
Reid Spencer2706f8c2004-09-19 23:53:36 +000016585kfreebsd*-gnu)
16586 version_type=linux
16587 need_lib_prefix=no
16588 need_version=no
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16590 soname_spec='${libname}${release}${shared_ext}$major'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=no
16593 hardcode_into_libs=yes
16594 dynamic_linker='GNU ld.so'
16595 ;;
16596
Reid Spencera773bd52006-08-04 18:18:08 +000016597freebsd* | dragonfly*)
16598 # DragonFly does not have aout. When/if they implement a new
16599 # versioning mechanism, adjust this.
16600 if test -x /usr/bin/objformat; then
16601 objformat=`/usr/bin/objformat`
16602 else
16603 case $host_os in
16604 freebsd[123]*) objformat=aout ;;
16605 *) objformat=elf ;;
16606 esac
16607 fi
John Criswell7a73b802003-06-30 21:59:07 +000016608 version_type=freebsd-$objformat
16609 case $version_type in
16610 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016612 need_version=no
16613 need_lib_prefix=no
16614 ;;
16615 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016617 need_version=yes
16618 ;;
16619 esac
16620 shlibpath_var=LD_LIBRARY_PATH
16621 case $host_os in
16622 freebsd2*)
16623 shlibpath_overrides_runpath=yes
16624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016625 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016626 shlibpath_overrides_runpath=yes
16627 hardcode_into_libs=yes
16628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016631 shlibpath_overrides_runpath=no
16632 hardcode_into_libs=yes
16633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016634 freebsd*) # from 4.6 on
16635 shlibpath_overrides_runpath=yes
16636 hardcode_into_libs=yes
16637 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016638 esac
16639 ;;
16640
16641gnu*)
16642 version_type=linux
16643 need_lib_prefix=no
16644 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16646 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016647 shlibpath_var=LD_LIBRARY_PATH
16648 hardcode_into_libs=yes
16649 ;;
16650
16651hpux9* | hpux10* | hpux11*)
16652 # Give a soname corresponding to the major version so that dld.sl refuses to
16653 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016654 version_type=sunos
16655 need_lib_prefix=no
16656 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016657 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016658 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016660 hardcode_into_libs=yes
16661 dynamic_linker="$host_os dld.so"
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 if test "X$HPUX_IA64_MODE" = X32; then
16667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16668 else
16669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16670 fi
16671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16672 ;;
16673 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016674 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016675 hardcode_into_libs=yes
16676 dynamic_linker="$host_os dld.sl"
16677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683 ;;
16684 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016685 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016686 dynamic_linker="$host_os dld.sl"
16687 shlibpath_var=SHLIB_PATH
16688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 ;;
16692 esac
John Criswell7a73b802003-06-30 21:59:07 +000016693 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16694 postinstall_cmds='chmod 555 $lib'
16695 ;;
16696
Reid Spencera773bd52006-08-04 18:18:08 +000016697interix3*)
16698 version_type=linux
16699 need_lib_prefix=no
16700 need_version=no
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16702 soname_spec='${libname}${release}${shared_ext}$major'
16703 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=no
16706 hardcode_into_libs=yes
16707 ;;
16708
John Criswell47fdd832003-07-14 16:52:07 +000016709irix5* | irix6* | nonstopux*)
16710 case $host_os in
16711 nonstopux*) version_type=nonstopux ;;
16712 *)
16713 if test "$lt_cv_prog_gnu_ld" = yes; then
16714 version_type=linux
16715 else
16716 version_type=irix
16717 fi ;;
16718 esac
John Criswell7a73b802003-06-30 21:59:07 +000016719 need_lib_prefix=no
16720 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016721 soname_spec='${libname}${release}${shared_ext}$major'
16722 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 +000016723 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016724 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016725 libsuff= shlibsuff=
16726 ;;
16727 *)
16728 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16730 libsuff= shlibsuff= libmagic=32-bit;;
16731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16732 libsuff=32 shlibsuff=N32 libmagic=N32;;
16733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016735 *) libsuff= shlibsuff= libmagic=never-match;;
16736 esac
16737 ;;
16738 esac
16739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16740 shlibpath_overrides_runpath=no
16741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016743 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016744 ;;
16745
16746# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016747linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016748 dynamic_linker=no
16749 ;;
16750
16751# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016752linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016753 version_type=linux
16754 need_lib_prefix=no
16755 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=no
16761 # This implies no fast_install, which is unacceptable.
16762 # Some rework will be needed to allow for fast_install
16763 # before this can be enabled.
16764 hardcode_into_libs=yes
16765
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766 # Append ld.so.conf contents to the search path
16767 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016768 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 +000016769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16770 fi
16771
John Criswell7a73b802003-06-30 21:59:07 +000016772 # We used to test for /lib/ld.so.1 and disable shared libraries on
16773 # powerpc, because MkLinux only supported shared libraries with the
16774 # GNU dynamic linker. Since this was broken with cross compilers,
16775 # most powerpc-linux boxes support dynamic linking these days and
16776 # people can always --disable-shared, the test was removed, and we
16777 # assume the GNU/Linux dynamic linker is in use.
16778 dynamic_linker='GNU/Linux ld.so'
16779 ;;
16780
Reid Spencer2706f8c2004-09-19 23:53:36 +000016781knetbsd*-gnu)
16782 version_type=linux
16783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=no
16789 hardcode_into_libs=yes
16790 dynamic_linker='GNU ld.so'
16791 ;;
16792
John Criswell7a73b802003-06-30 21:59:07 +000016793netbsd*)
16794 version_type=sunos
16795 need_lib_prefix=no
16796 need_version=no
16797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16800 dynamic_linker='NetBSD (a.out) ld.so'
16801 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016803 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016804 dynamic_linker='NetBSD ld.elf_so'
16805 fi
16806 shlibpath_var=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath=yes
16808 hardcode_into_libs=yes
16809 ;;
16810
16811newsos6)
16812 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16816 ;;
16817
Reid Spencer2706f8c2004-09-19 23:53:36 +000016818nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016819 version_type=linux
16820 need_lib_prefix=no
16821 need_version=no
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=yes
16826 ;;
16827
16828openbsd*)
16829 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016830 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016831 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16833 case $host_os in
16834 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16835 *) need_version=no ;;
16836 esac
John Criswell47fdd832003-07-14 16:52:07 +000016837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016840 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 +000016841 case $host_os in
16842 openbsd2.[89] | openbsd2.[89].*)
16843 shlibpath_overrides_runpath=no
16844 ;;
16845 *)
16846 shlibpath_overrides_runpath=yes
16847 ;;
16848 esac
John Criswell7a73b802003-06-30 21:59:07 +000016849 else
16850 shlibpath_overrides_runpath=yes
16851 fi
John Criswell7a73b802003-06-30 21:59:07 +000016852 ;;
16853
16854os2*)
16855 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016857 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016858 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016859 dynamic_linker='OS/2 ld.exe'
16860 shlibpath_var=LIBPATH
16861 ;;
16862
16863osf3* | osf4* | osf5*)
16864 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016865 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016866 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016867 soname_spec='${libname}${release}${shared_ext}$major'
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016869 shlibpath_var=LD_LIBRARY_PATH
16870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872 ;;
16873
John Criswell7a73b802003-06-30 21:59:07 +000016874solaris*)
16875 version_type=linux
16876 need_lib_prefix=no
16877 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016880 shlibpath_var=LD_LIBRARY_PATH
16881 shlibpath_overrides_runpath=yes
16882 hardcode_into_libs=yes
16883 # ldd complains unless libraries are executable
16884 postinstall_cmds='chmod +x $lib'
16885 ;;
16886
16887sunos4*)
16888 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath=yes
16893 if test "$with_gnu_ld" = yes; then
16894 need_lib_prefix=no
16895 fi
16896 need_version=yes
16897 ;;
16898
Reid Spencera773bd52006-08-04 18:18:08 +000016899sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016900 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016903 shlibpath_var=LD_LIBRARY_PATH
16904 case $host_vendor in
16905 sni)
16906 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016907 need_lib_prefix=no
16908 export_dynamic_flag_spec='${wl}-Blargedynsym'
16909 runpath_var=LD_RUN_PATH
16910 ;;
16911 siemens)
16912 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016913 ;;
16914 motorola)
16915 need_lib_prefix=no
16916 need_version=no
16917 shlibpath_overrides_runpath=no
16918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16919 ;;
16920 esac
16921 ;;
16922
John Criswell7a73b802003-06-30 21:59:07 +000016923sysv4*MP*)
16924 if test -d /usr/nec ;then
16925 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16927 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016928 shlibpath_var=LD_LIBRARY_PATH
16929 fi
16930 ;;
16931
Reid Spencera773bd52006-08-04 18:18:08 +000016932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16933 version_type=freebsd-elf
16934 need_lib_prefix=no
16935 need_version=no
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 hardcode_into_libs=yes
16940 if test "$with_gnu_ld" = yes; then
16941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16942 shlibpath_overrides_runpath=no
16943 else
16944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16945 shlibpath_overrides_runpath=yes
16946 case $host_os in
16947 sco3.2v5*)
16948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16949 ;;
16950 esac
16951 fi
16952 sys_lib_dlsearch_path_spec='/usr/lib'
16953 ;;
16954
John Criswell47fdd832003-07-14 16:52:07 +000016955uts4*)
16956 version_type=linux
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958 soname_spec='${libname}${release}${shared_ext}$major'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 ;;
16961
John Criswell7a73b802003-06-30 21:59:07 +000016962*)
16963 dynamic_linker=no
16964 ;;
16965esac
Reid Spencera773bd52006-08-04 18:18:08 +000016966{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16967echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016968test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016969
Reid Spencera773bd52006-08-04 18:18:08 +000016970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16971if test "$GCC" = yes; then
16972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16973fi
16974
16975{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16976echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016977hardcode_action=
16978if test -n "$hardcode_libdir_flag_spec" || \
16979 test -n "$runpath_var" || \
16980 test "X$hardcode_automatic" = "Xyes" ; then
16981
16982 # We can hardcode non-existant directories.
16983 if test "$hardcode_direct" != no &&
16984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16985 # have to relink, otherwise we might link with an installed library
16986 # when we should be linking with a yet-to-be-installed one
16987 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16988 test "$hardcode_minus_L" != no; then
16989 # Linking always hardcodes the temporary library directory.
16990 hardcode_action=relink
16991 else
16992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16993 hardcode_action=immediate
16994 fi
16995else
16996 # We cannot hardcode anything, or else we can only hardcode existing
16997 # directories.
16998 hardcode_action=unsupported
16999fi
Reid Spencera773bd52006-08-04 18:18:08 +000017000{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17001echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017002
17003if test "$hardcode_action" = relink; then
17004 # Fast installation is not supported
17005 enable_fast_install=no
17006elif test "$shlibpath_overrides_runpath" = yes ||
17007 test "$enable_shared" = no; then
17008 # Fast installation is not necessary
17009 enable_fast_install=needless
17010fi
17011
17012striplib=
17013old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000017014{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17015echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017016if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17017 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17018 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000017019 { echo "$as_me:$LINENO: result: yes" >&5
17020echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017021else
17022# FIXME - insert some real tests, host_os isn't really good enough
17023 case $host_os in
17024 darwin*)
17025 if test -n "$STRIP" ; then
17026 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000017027 { echo "$as_me:$LINENO: result: yes" >&5
17028echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017029 else
Reid Spencera773bd52006-08-04 18:18:08 +000017030 { echo "$as_me:$LINENO: result: no" >&5
17031echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032fi
17033 ;;
17034 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017035 { echo "$as_me:$LINENO: result: no" >&5
17036echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037 ;;
17038 esac
17039fi
17040
John Criswell7a73b802003-06-30 21:59:07 +000017041if test "x$enable_dlopen" != xyes; then
17042 enable_dlopen=unknown
17043 enable_dlopen_self=unknown
17044 enable_dlopen_self_static=unknown
17045else
17046 lt_cv_dlopen=no
17047 lt_cv_dlopen_libs=
17048
17049 case $host_os in
17050 beos*)
17051 lt_cv_dlopen="load_add_on"
17052 lt_cv_dlopen_libs=
17053 lt_cv_dlopen_self=yes
17054 ;;
17055
John Criswell47fdd832003-07-14 16:52:07 +000017056 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017057 lt_cv_dlopen="LoadLibrary"
17058 lt_cv_dlopen_libs=
17059 ;;
17060
John Criswell47fdd832003-07-14 16:52:07 +000017061 cygwin*)
17062 lt_cv_dlopen="dlopen"
17063 lt_cv_dlopen_libs=
17064 ;;
17065
17066 darwin*)
17067 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017068 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17069echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017070if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073 ac_check_lib_save_LIBS=$LIBS
17074LIBS="-ldl $LIBS"
17075cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017081
Reid Spencera773bd52006-08-04 18:18:08 +000017082/* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017085#ifdef __cplusplus
17086extern "C"
17087#endif
John Criswell47fdd832003-07-14 16:52:07 +000017088char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017089int
17090main ()
17091{
Reid Spencera773bd52006-08-04 18:18:08 +000017092return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017093 ;
17094 return 0;
17095}
17096_ACEOF
17097rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017098if { (ac_try="$ac_link"
17099case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102esac
17103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115esac
17116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest$ac_exeext'
17122 { (case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017131 ac_cv_lib_dl_dlopen=yes
17132else
17133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017134sed 's/^/| /' conftest.$ac_ext >&5
17135
Reid Spencera773bd52006-08-04 18:18:08 +000017136 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017137fi
Reid Spencera773bd52006-08-04 18:18:08 +000017138
Bill Wendlingebcceee2009-04-18 11:20:33 +000017139rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017140 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017141LIBS=$ac_check_lib_save_LIBS
17142fi
Reid Spencera773bd52006-08-04 18:18:08 +000017143{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17144echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017145if test $ac_cv_lib_dl_dlopen = yes; then
17146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17147else
17148
17149 lt_cv_dlopen="dyld"
17150 lt_cv_dlopen_libs=
17151 lt_cv_dlopen_self=yes
17152
17153fi
17154
17155 ;;
17156
John Criswell7a73b802003-06-30 21:59:07 +000017157 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017158 { echo "$as_me:$LINENO: checking for shl_load" >&5
17159echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017160if test "${ac_cv_func_shl_load+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017169/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171#define shl_load innocuous_shl_load
17172
John Criswell7a73b802003-06-30 21:59:07 +000017173/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017174 which can conflict with char shl_load (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017177
John Criswell0c38eaf2003-09-10 15:17:25 +000017178#ifdef __STDC__
17179# include <limits.h>
17180#else
17181# include <assert.h>
17182#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017183
17184#undef shl_load
17185
Reid Spencera773bd52006-08-04 18:18:08 +000017186/* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017189#ifdef __cplusplus
17190extern "C"
17191#endif
John Criswell7a73b802003-06-30 21:59:07 +000017192char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017193/* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017196#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017197choke me
John Criswell7a73b802003-06-30 21:59:07 +000017198#endif
17199
John Criswell0c38eaf2003-09-10 15:17:25 +000017200int
17201main ()
17202{
Reid Spencera773bd52006-08-04 18:18:08 +000017203return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017242 ac_cv_func_shl_load=yes
17243else
17244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017245sed 's/^/| /' conftest.$ac_ext >&5
17246
Reid Spencera773bd52006-08-04 18:18:08 +000017247 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017248fi
Reid Spencera773bd52006-08-04 18:18:08 +000017249
Bill Wendlingebcceee2009-04-18 11:20:33 +000017250rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017251 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017252fi
Reid Spencera773bd52006-08-04 18:18:08 +000017253{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17254echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017255if test $ac_cv_func_shl_load = yes; then
17256 lt_cv_dlopen="shl_load"
17257else
Reid Spencera773bd52006-08-04 18:18:08 +000017258 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17259echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017260if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263 ac_check_lib_save_LIBS=$LIBS
17264LIBS="-ldld $LIBS"
17265cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017271
Reid Spencera773bd52006-08-04 18:18:08 +000017272/* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017275#ifdef __cplusplus
17276extern "C"
17277#endif
John Criswell7a73b802003-06-30 21:59:07 +000017278char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017279int
17280main ()
17281{
Reid Spencera773bd52006-08-04 18:18:08 +000017282return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017288if { (ac_try="$ac_link"
17289case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292esac
17293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017295 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302 { (case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305esac
17306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_try") 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017321 ac_cv_lib_dld_shl_load=yes
17322else
17323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017324sed 's/^/| /' conftest.$ac_ext >&5
17325
Reid Spencera773bd52006-08-04 18:18:08 +000017326 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017327fi
Reid Spencera773bd52006-08-04 18:18:08 +000017328
Bill Wendlingebcceee2009-04-18 11:20:33 +000017329rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017330 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017331LIBS=$ac_check_lib_save_LIBS
17332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17334echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017335if test $ac_cv_lib_dld_shl_load = yes; then
17336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17337else
Reid Spencera773bd52006-08-04 18:18:08 +000017338 { echo "$as_me:$LINENO: checking for dlopen" >&5
17339echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017340if test "${ac_cv_func_dlopen+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017349/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351#define dlopen innocuous_dlopen
17352
John Criswell7a73b802003-06-30 21:59:07 +000017353/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017354 which can conflict with char dlopen (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017357
John Criswell0c38eaf2003-09-10 15:17:25 +000017358#ifdef __STDC__
17359# include <limits.h>
17360#else
17361# include <assert.h>
17362#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363
17364#undef dlopen
17365
Reid Spencera773bd52006-08-04 18:18:08 +000017366/* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017369#ifdef __cplusplus
17370extern "C"
17371#endif
John Criswell7a73b802003-06-30 21:59:07 +000017372char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017373/* The GNU C library defines this for functions which it implements
17374 to always fail with ENOSYS. Some functions are actually named
17375 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017376#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017377choke me
John Criswell7a73b802003-06-30 21:59:07 +000017378#endif
17379
John Criswell0c38eaf2003-09-10 15:17:25 +000017380int
17381main ()
17382{
Reid Spencera773bd52006-08-04 18:18:08 +000017383return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017384 ;
17385 return 0;
17386}
17387_ACEOF
17388rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017389if { (ac_try="$ac_link"
17390case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017401 (exit $ac_status); } &&
17402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406esac
17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest$ac_exeext'
17413 { (case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416esac
17417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_try") 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017422 ac_cv_func_dlopen=yes
17423else
17424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017425sed 's/^/| /' conftest.$ac_ext >&5
17426
Reid Spencera773bd52006-08-04 18:18:08 +000017427 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017428fi
Reid Spencera773bd52006-08-04 18:18:08 +000017429
Bill Wendlingebcceee2009-04-18 11:20:33 +000017430rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017431 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017432fi
Reid Spencera773bd52006-08-04 18:18:08 +000017433{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17434echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017435if test $ac_cv_func_dlopen = yes; then
17436 lt_cv_dlopen="dlopen"
17437else
Reid Spencera773bd52006-08-04 18:18:08 +000017438 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17439echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017440if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443 ac_check_lib_save_LIBS=$LIBS
17444LIBS="-ldl $LIBS"
17445cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017451
Reid Spencera773bd52006-08-04 18:18:08 +000017452/* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017455#ifdef __cplusplus
17456extern "C"
17457#endif
John Criswell7a73b802003-06-30 21:59:07 +000017458char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017459int
17460main ()
17461{
Reid Spencera773bd52006-08-04 18:18:08 +000017462return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017468if { (ac_try="$ac_link"
17469case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472esac
17473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest$ac_exeext'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017501 ac_cv_lib_dl_dlopen=yes
17502else
17503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017504sed 's/^/| /' conftest.$ac_ext >&5
17505
Reid Spencera773bd52006-08-04 18:18:08 +000017506 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017507fi
Reid Spencera773bd52006-08-04 18:18:08 +000017508
Bill Wendlingebcceee2009-04-18 11:20:33 +000017509rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017510 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017511LIBS=$ac_check_lib_save_LIBS
17512fi
Reid Spencera773bd52006-08-04 18:18:08 +000017513{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017515if test $ac_cv_lib_dl_dlopen = yes; then
17516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17517else
Reid Spencera773bd52006-08-04 18:18:08 +000017518 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17519echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017520if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 ac_check_lib_save_LIBS=$LIBS
17524LIBS="-lsvld $LIBS"
17525cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017531
Reid Spencera773bd52006-08-04 18:18:08 +000017532/* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017535#ifdef __cplusplus
17536extern "C"
17537#endif
John Criswell7a73b802003-06-30 21:59:07 +000017538char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017539int
17540main ()
17541{
Reid Spencera773bd52006-08-04 18:18:08 +000017542return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017543 ;
17544 return 0;
17545}
17546_ACEOF
17547rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017548if { (ac_try="$ac_link"
17549case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017555 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17562 { (case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_try") 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017581 ac_cv_lib_svld_dlopen=yes
17582else
17583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017584sed 's/^/| /' conftest.$ac_ext >&5
17585
Reid Spencera773bd52006-08-04 18:18:08 +000017586 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017587fi
Reid Spencera773bd52006-08-04 18:18:08 +000017588
Bill Wendlingebcceee2009-04-18 11:20:33 +000017589rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017590 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017591LIBS=$ac_check_lib_save_LIBS
17592fi
Reid Spencera773bd52006-08-04 18:18:08 +000017593{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17594echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017595if test $ac_cv_lib_svld_dlopen = yes; then
17596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17597else
Reid Spencera773bd52006-08-04 18:18:08 +000017598 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17599echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017600if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602else
17603 ac_check_lib_save_LIBS=$LIBS
17604LIBS="-ldld $LIBS"
17605cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017611
Reid Spencera773bd52006-08-04 18:18:08 +000017612/* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017615#ifdef __cplusplus
17616extern "C"
17617#endif
John Criswell7a73b802003-06-30 21:59:07 +000017618char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017619int
17620main ()
17621{
Reid Spencera773bd52006-08-04 18:18:08 +000017622return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017623 ;
17624 return 0;
17625}
17626_ACEOF
17627rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017628if { (ac_try="$ac_link"
17629case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632esac
17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017661 ac_cv_lib_dld_dld_link=yes
17662else
17663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017664sed 's/^/| /' conftest.$ac_ext >&5
17665
Reid Spencera773bd52006-08-04 18:18:08 +000017666 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017667fi
Reid Spencera773bd52006-08-04 18:18:08 +000017668
Bill Wendlingebcceee2009-04-18 11:20:33 +000017669rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017670 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017671LIBS=$ac_check_lib_save_LIBS
17672fi
Reid Spencera773bd52006-08-04 18:18:08 +000017673{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17674echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017675if test $ac_cv_lib_dld_dld_link = yes; then
17676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17677fi
17678
17679
17680fi
17681
17682
17683fi
17684
17685
17686fi
17687
17688
17689fi
17690
17691
17692fi
17693
17694 ;;
17695 esac
17696
17697 if test "x$lt_cv_dlopen" != xno; then
17698 enable_dlopen=yes
17699 else
17700 enable_dlopen=no
17701 fi
17702
17703 case $lt_cv_dlopen in
17704 dlopen)
17705 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017707
17708 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017710
17711 save_LIBS="$LIBS"
17712 LIBS="$lt_cv_dlopen_libs $LIBS"
17713
Reid Spencera773bd52006-08-04 18:18:08 +000017714 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17715echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017716if test "${lt_cv_dlopen_self+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 if test "$cross_compiling" = yes; then :
17720 lt_cv_dlopen_self=cross
17721else
John Criswell47fdd832003-07-14 16:52:07 +000017722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017723 lt_status=$lt_dlunknown
17724 cat > conftest.$ac_ext <<EOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000017725#line 17725 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017726#include "confdefs.h"
17727
17728#if HAVE_DLFCN_H
17729#include <dlfcn.h>
17730#endif
17731
17732#include <stdio.h>
17733
17734#ifdef RTLD_GLOBAL
17735# define LT_DLGLOBAL RTLD_GLOBAL
17736#else
17737# ifdef DL_GLOBAL
17738# define LT_DLGLOBAL DL_GLOBAL
17739# else
17740# define LT_DLGLOBAL 0
17741# endif
17742#endif
17743
17744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17745 find out it does not work in some platform. */
17746#ifndef LT_DLLAZY_OR_NOW
17747# ifdef RTLD_LAZY
17748# define LT_DLLAZY_OR_NOW RTLD_LAZY
17749# else
17750# ifdef DL_LAZY
17751# define LT_DLLAZY_OR_NOW DL_LAZY
17752# else
17753# ifdef RTLD_NOW
17754# define LT_DLLAZY_OR_NOW RTLD_NOW
17755# else
17756# ifdef DL_NOW
17757# define LT_DLLAZY_OR_NOW DL_NOW
17758# else
17759# define LT_DLLAZY_OR_NOW 0
17760# endif
17761# endif
17762# endif
17763# endif
17764#endif
17765
17766#ifdef __cplusplus
17767extern "C" void exit (int);
17768#endif
17769
17770void fnord() { int i=42;}
17771int main ()
17772{
17773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17774 int status = $lt_dlunknown;
17775
17776 if (self)
17777 {
17778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17780 /* dlclose (self); */
17781 }
Reid Spencera773bd52006-08-04 18:18:08 +000017782 else
17783 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017784
17785 exit (status);
17786}
17787EOF
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017793 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017794 lt_status=$?
17795 case x$lt_status in
17796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017799 esac
17800 else :
17801 # compilation failed
17802 lt_cv_dlopen_self=no
17803 fi
17804fi
17805rm -fr conftest*
17806
17807
17808fi
Reid Spencera773bd52006-08-04 18:18:08 +000017809{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17810echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017811
17812 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17814 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17815echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017816if test "${lt_cv_dlopen_self_static+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818else
17819 if test "$cross_compiling" = yes; then :
17820 lt_cv_dlopen_self_static=cross
17821else
John Criswell47fdd832003-07-14 16:52:07 +000017822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017823 lt_status=$lt_dlunknown
17824 cat > conftest.$ac_ext <<EOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000017825#line 17825 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017826#include "confdefs.h"
17827
17828#if HAVE_DLFCN_H
17829#include <dlfcn.h>
17830#endif
17831
17832#include <stdio.h>
17833
17834#ifdef RTLD_GLOBAL
17835# define LT_DLGLOBAL RTLD_GLOBAL
17836#else
17837# ifdef DL_GLOBAL
17838# define LT_DLGLOBAL DL_GLOBAL
17839# else
17840# define LT_DLGLOBAL 0
17841# endif
17842#endif
17843
17844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17845 find out it does not work in some platform. */
17846#ifndef LT_DLLAZY_OR_NOW
17847# ifdef RTLD_LAZY
17848# define LT_DLLAZY_OR_NOW RTLD_LAZY
17849# else
17850# ifdef DL_LAZY
17851# define LT_DLLAZY_OR_NOW DL_LAZY
17852# else
17853# ifdef RTLD_NOW
17854# define LT_DLLAZY_OR_NOW RTLD_NOW
17855# else
17856# ifdef DL_NOW
17857# define LT_DLLAZY_OR_NOW DL_NOW
17858# else
17859# define LT_DLLAZY_OR_NOW 0
17860# endif
17861# endif
17862# endif
17863# endif
17864#endif
17865
17866#ifdef __cplusplus
17867extern "C" void exit (int);
17868#endif
17869
17870void fnord() { int i=42;}
17871int main ()
17872{
17873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17874 int status = $lt_dlunknown;
17875
17876 if (self)
17877 {
17878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17880 /* dlclose (self); */
17881 }
Reid Spencera773bd52006-08-04 18:18:08 +000017882 else
17883 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017884
17885 exit (status);
17886}
17887EOF
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017893 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017894 lt_status=$?
17895 case x$lt_status in
17896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017898 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017899 esac
17900 else :
17901 # compilation failed
17902 lt_cv_dlopen_self_static=no
17903 fi
17904fi
17905rm -fr conftest*
17906
17907
17908fi
Reid Spencera773bd52006-08-04 18:18:08 +000017909{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17910echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017911 fi
17912
17913 CPPFLAGS="$save_CPPFLAGS"
17914 LDFLAGS="$save_LDFLAGS"
17915 LIBS="$save_LIBS"
17916 ;;
17917 esac
17918
17919 case $lt_cv_dlopen_self in
17920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17921 *) enable_dlopen_self=unknown ;;
17922 esac
17923
17924 case $lt_cv_dlopen_self_static in
17925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17926 *) enable_dlopen_self_static=unknown ;;
17927 esac
17928fi
17929
17930
Reid Spencera773bd52006-08-04 18:18:08 +000017931# Report which library types will actually be built
17932{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17933echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17934{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17935echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017936
Reid Spencera773bd52006-08-04 18:18:08 +000017937{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17938echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017939test "$can_build_shared" = "no" && enable_shared=no
17940
17941# On AIX, shared libraries and static libraries use the same namespace, and
17942# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017943case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017944aix3*)
17945 test "$enable_shared" = yes && enable_static=no
17946 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017948 postinstall_cmds='$RANLIB $lib'
17949 fi
17950 ;;
17951
Reid Spencer2706f8c2004-09-19 23:53:36 +000017952aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017953 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17954 test "$enable_shared" = yes && enable_static=no
17955 fi
John Criswell7a73b802003-06-30 21:59:07 +000017956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017957esac
Reid Spencera773bd52006-08-04 18:18:08 +000017958{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17959echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017960
Reid Spencera773bd52006-08-04 18:18:08 +000017961{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17962echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017963# Make sure either enable_shared or enable_static is yes.
17964test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017965{ echo "$as_me:$LINENO: result: $enable_static" >&5
17966echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017967
17968# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017969# libtool distribution, otherwise you forgot to ship ltmain.sh
17970# with your package, and you will get complaints that there are
17971# no rules to generate ltmain.sh.
17972if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017973 # See if we are running on zsh, and set the options which allow our commands through
17974 # without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}" ; then
17976 setopt NO_GLOB_SUBST
17977 fi
John Criswell7a73b802003-06-30 21:59:07 +000017978 # Now quote all the things that may contain metacharacters while being
17979 # careful not to overquote the AC_SUBSTed values. We take copies of the
17980 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017981 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 +000017982 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985 deplibs_check_method reload_flag reload_cmds need_locks \
17986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017989 old_postinstall_cmds old_postuninstall_cmds \
17990 compiler \
17991 CC \
17992 LD \
17993 lt_prog_compiler_wl \
17994 lt_prog_compiler_pic \
17995 lt_prog_compiler_static \
17996 lt_prog_compiler_no_builtin_flag \
17997 export_dynamic_flag_spec \
17998 thread_safe_flag_spec \
17999 whole_archive_flag_spec \
18000 enable_shared_with_static_runtimes \
18001 old_archive_cmds \
18002 old_archive_from_new_cmds \
18003 predep_objects \
18004 postdep_objects \
18005 predeps \
18006 postdeps \
18007 compiler_lib_search_path \
18008 archive_cmds \
18009 archive_expsym_cmds \
18010 postinstall_cmds \
18011 postuninstall_cmds \
18012 old_archive_from_expsyms_cmds \
18013 allow_undefined_flag \
18014 no_undefined_flag \
18015 export_symbols_cmds \
18016 hardcode_libdir_flag_spec \
18017 hardcode_libdir_flag_spec_ld \
18018 hardcode_libdir_separator \
18019 hardcode_automatic \
18020 module_cmds \
18021 module_expsym_cmds \
18022 lt_cv_prog_compiler_c_o \
18023 exclude_expsyms \
18024 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000018025
18026 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000018027 old_archive_cmds | \
18028 old_archive_from_new_cmds | \
18029 archive_cmds | \
18030 archive_expsym_cmds | \
18031 module_cmds | \
18032 module_expsym_cmds | \
18033 old_archive_from_expsyms_cmds | \
18034 export_symbols_cmds | \
18035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018036 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018037 old_postinstall_cmds | old_postuninstall_cmds | \
18038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018039 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018040 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 +000018041 ;;
18042 *)
18043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18044 ;;
18045 esac
18046 done
18047
John Criswell47fdd832003-07-14 16:52:07 +000018048 case $lt_echo in
18049 *'\$0 --fallback-echo"')
18050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18051 ;;
18052 esac
18053
18054cfgfile="${ofile}T"
18055 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18056 $rm -f "$cfgfile"
18057 { echo "$as_me:$LINENO: creating $ofile" >&5
18058echo "$as_me: creating $ofile" >&6;}
18059
18060 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018061#! $SHELL
18062
John Criswell47fdd832003-07-14 16:52:07 +000018063# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018064# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18065# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18066#
John Criswell47fdd832003-07-14 16:52:07 +000018067# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18068# Free Software Foundation, Inc.
18069#
18070# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018071# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18072#
18073# This program is free software; you can redistribute it and/or modify
18074# it under the terms of the GNU General Public License as published by
18075# the Free Software Foundation; either version 2 of the License, or
18076# (at your option) any later version.
18077#
18078# This program is distributed in the hope that it will be useful, but
18079# WITHOUT ANY WARRANTY; without even the implied warranty of
18080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18081# General Public License for more details.
18082#
18083# You should have received a copy of the GNU General Public License
18084# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018085# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018086#
18087# As a special exception to the GNU General Public License, if you
18088# distribute this file as part of a program that contains a
18089# configuration script generated by Autoconf, you may include it under
18090# the same distribution terms that you use for the rest of that program.
18091
John Criswell47fdd832003-07-14 16:52:07 +000018092# A sed program that does not truncate output.
18093SED=$lt_SED
18094
John Criswell7a73b802003-06-30 21:59:07 +000018095# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018096Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018097
18098# The HP-UX ksh and POSIX shell print the target directory to stdout
18099# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018101
John Criswell47fdd832003-07-14 16:52:07 +000018102# The names of the tagged configurations supported by this script.
18103available_tags=
18104
John Criswell7a73b802003-06-30 21:59:07 +000018105# ### BEGIN LIBTOOL CONFIG
18106
18107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18108
18109# Shell to use when invoking shell scripts.
18110SHELL=$lt_SHELL
18111
18112# Whether or not to build shared libraries.
18113build_libtool_libs=$enable_shared
18114
18115# Whether or not to build static libraries.
18116build_old_libs=$enable_static
18117
18118# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018119build_libtool_need_lc=$archive_cmds_need_lc
18120
18121# Whether or not to disallow shared libs when runtime libs are static
18122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018123
18124# Whether or not to optimize for fast installation.
18125fast_install=$enable_fast_install
18126
18127# The host system.
18128host_alias=$host_alias
18129host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018130host_os=$host_os
18131
18132# The build system.
18133build_alias=$build_alias
18134build=$build
18135build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018136
18137# An echo program that does not interpret backslashes.
18138echo=$lt_echo
18139
18140# The archiver.
18141AR=$lt_AR
18142AR_FLAGS=$lt_AR_FLAGS
18143
John Criswell47fdd832003-07-14 16:52:07 +000018144# A C compiler.
18145LTCC=$lt_LTCC
18146
Reid Spencera773bd52006-08-04 18:18:08 +000018147# LTCC compiler flags.
18148LTCFLAGS=$lt_LTCFLAGS
18149
John Criswell47fdd832003-07-14 16:52:07 +000018150# A language-specific compiler.
18151CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018152
18153# Is the compiler the GNU C compiler?
18154with_gcc=$GCC
18155
John Criswell47fdd832003-07-14 16:52:07 +000018156# An ERE matcher.
18157EGREP=$lt_EGREP
18158
John Criswell7a73b802003-06-30 21:59:07 +000018159# The linker used to build libraries.
18160LD=$lt_LD
18161
18162# Whether we need hard or soft links.
18163LN_S=$lt_LN_S
18164
18165# A BSD-compatible nm program.
18166NM=$lt_NM
18167
18168# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018169STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018170
18171# Used to examine libraries when file_magic_cmd begins "file"
18172MAGIC_CMD=$MAGIC_CMD
18173
18174# Used on cygwin: DLL creation program.
18175DLLTOOL="$DLLTOOL"
18176
18177# Used on cygwin: object dumper.
18178OBJDUMP="$OBJDUMP"
18179
18180# Used on cygwin: assembler.
18181AS="$AS"
18182
18183# The name of the directory that contains temporary libtool files.
18184objdir=$objdir
18185
18186# How to create reloadable object files.
18187reload_flag=$lt_reload_flag
18188reload_cmds=$lt_reload_cmds
18189
18190# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018191wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018192
18193# Object file suffix (normally "o").
18194objext="$ac_objext"
18195
18196# Old archive suffix (normally "a").
18197libext="$libext"
18198
John Criswell47fdd832003-07-14 16:52:07 +000018199# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018200shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018201
John Criswell7a73b802003-06-30 21:59:07 +000018202# Executable file suffix (normally "").
18203exeext="$exeext"
18204
18205# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018206pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018207pic_mode=$pic_mode
18208
John Criswell47fdd832003-07-14 16:52:07 +000018209# What is the maximum length of a command?
18210max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018211
John Criswell47fdd832003-07-14 16:52:07 +000018212# Does compiler simultaneously support -c and -o options?
18213compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018214
Reid Spencera773bd52006-08-04 18:18:08 +000018215# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018216need_locks=$lt_need_locks
18217
18218# Do we need the lib prefix for modules?
18219need_lib_prefix=$need_lib_prefix
18220
18221# Do we need a version for libraries?
18222need_version=$need_version
18223
18224# Whether dlopen is supported.
18225dlopen_support=$enable_dlopen
18226
18227# Whether dlopen of programs is supported.
18228dlopen_self=$enable_dlopen_self
18229
18230# Whether dlopen of statically linked programs is supported.
18231dlopen_self_static=$enable_dlopen_self_static
18232
18233# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018234link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018235
18236# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018238
18239# Compiler flag to allow reflexive dlopens.
18240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18241
18242# Compiler flag to generate shared objects directly from archives.
18243whole_archive_flag_spec=$lt_whole_archive_flag_spec
18244
18245# Compiler flag to generate thread-safe objects.
18246thread_safe_flag_spec=$lt_thread_safe_flag_spec
18247
18248# Library versioning type.
18249version_type=$version_type
18250
18251# Format of library name prefix.
18252libname_spec=$lt_libname_spec
18253
18254# List of archive names. First name is the real one, the rest are links.
18255# The last name is the one that the linker finds with -lNAME.
18256library_names_spec=$lt_library_names_spec
18257
18258# The coded name of the library, if different from the real name.
18259soname_spec=$lt_soname_spec
18260
18261# Commands used to build and install an old-style archive.
18262RANLIB=$lt_RANLIB
18263old_archive_cmds=$lt_old_archive_cmds
18264old_postinstall_cmds=$lt_old_postinstall_cmds
18265old_postuninstall_cmds=$lt_old_postuninstall_cmds
18266
18267# Create an old-style archive from a shared archive.
18268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18269
18270# Create a temporary old-style archive to link instead of a shared archive.
18271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18272
18273# Commands used to build and install a shared archive.
18274archive_cmds=$lt_archive_cmds
18275archive_expsym_cmds=$lt_archive_expsym_cmds
18276postinstall_cmds=$lt_postinstall_cmds
18277postuninstall_cmds=$lt_postuninstall_cmds
18278
John Criswell47fdd832003-07-14 16:52:07 +000018279# Commands used to build a loadable module (assumed same as above if empty)
18280module_cmds=$lt_module_cmds
18281module_expsym_cmds=$lt_module_expsym_cmds
18282
John Criswell7a73b802003-06-30 21:59:07 +000018283# Commands to strip libraries.
18284old_striplib=$lt_old_striplib
18285striplib=$lt_striplib
18286
John Criswell47fdd832003-07-14 16:52:07 +000018287# Dependencies to place before the objects being linked to create a
18288# shared library.
18289predep_objects=$lt_predep_objects
18290
18291# Dependencies to place after the objects being linked to create a
18292# shared library.
18293postdep_objects=$lt_postdep_objects
18294
18295# Dependencies to place before the objects being linked to create a
18296# shared library.
18297predeps=$lt_predeps
18298
18299# Dependencies to place after the objects being linked to create a
18300# shared library.
18301postdeps=$lt_postdeps
18302
18303# The library search path used internally by the compiler when linking
18304# a shared library.
18305compiler_lib_search_path=$lt_compiler_lib_search_path
18306
John Criswell7a73b802003-06-30 21:59:07 +000018307# Method to check whether dependent libraries are shared objects.
18308deplibs_check_method=$lt_deplibs_check_method
18309
18310# Command to use when deplibs_check_method == file_magic.
18311file_magic_cmd=$lt_file_magic_cmd
18312
18313# Flag that allows shared libraries with undefined symbols to be built.
18314allow_undefined_flag=$lt_allow_undefined_flag
18315
18316# Flag that forces no undefined symbols.
18317no_undefined_flag=$lt_no_undefined_flag
18318
18319# Commands used to finish a libtool library installation in a directory.
18320finish_cmds=$lt_finish_cmds
18321
18322# Same as above, but a single script fragment to be evaled but not shown.
18323finish_eval=$lt_finish_eval
18324
18325# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018327
18328# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018330
18331# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018333
18334# This is the shared library runtime path variable.
18335runpath_var=$runpath_var
18336
18337# This is the shared library path variable.
18338shlibpath_var=$shlibpath_var
18339
18340# Is shlibpath searched before the hard-coded library search path?
18341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18342
18343# How to hardcode a shared library path into an executable.
18344hardcode_action=$hardcode_action
18345
18346# Whether we should hardcode library paths into libraries.
18347hardcode_into_libs=$hardcode_into_libs
18348
18349# Flag to hardcode \$libdir into a binary during linking.
18350# This must work even if \$libdir does not exist.
18351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18352
John Criswell47fdd832003-07-14 16:52:07 +000018353# If ld is used when linking, flag to hardcode \$libdir into
18354# a binary during linking. This must work even if \$libdir does
18355# not exist.
18356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18357
John Criswell7a73b802003-06-30 21:59:07 +000018358# Whether we need a single -rpath flag with a separated argument.
18359hardcode_libdir_separator=$lt_hardcode_libdir_separator
18360
John Criswell47fdd832003-07-14 16:52:07 +000018361# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018362# resulting binary.
18363hardcode_direct=$hardcode_direct
18364
18365# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18366# resulting binary.
18367hardcode_minus_L=$hardcode_minus_L
18368
18369# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18370# the resulting binary.
18371hardcode_shlibpath_var=$hardcode_shlibpath_var
18372
John Criswell47fdd832003-07-14 16:52:07 +000018373# Set to yes if building a shared library automatically hardcodes DIR into the library
18374# and all subsequent libraries and executables linked against it.
18375hardcode_automatic=$hardcode_automatic
18376
John Criswell7a73b802003-06-30 21:59:07 +000018377# Variables whose values should be saved in libtool wrapper scripts and
18378# restored at relink time.
18379variables_saved_for_relink="$variables_saved_for_relink"
18380
18381# Whether libtool must link a program against all its dependency libraries.
18382link_all_deplibs=$link_all_deplibs
18383
18384# Compile-time system search path for libraries
18385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18386
18387# Run-time system search path for libraries
18388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18389
18390# Fix the shell variable \$srcfile for the compiler.
18391fix_srcfile_path="$fix_srcfile_path"
18392
18393# Set to yes if exported symbols are required.
18394always_export_symbols=$always_export_symbols
18395
18396# The commands to list exported symbols.
18397export_symbols_cmds=$lt_export_symbols_cmds
18398
18399# The commands to extract the exported symbol list from a shared archive.
18400extract_expsyms_cmds=$lt_extract_expsyms_cmds
18401
18402# Symbols that should not be listed in the preloaded symbols.
18403exclude_expsyms=$lt_exclude_expsyms
18404
18405# Symbols that must always be exported.
18406include_expsyms=$lt_include_expsyms
18407
18408# ### END LIBTOOL CONFIG
18409
18410__EOF__
18411
John Criswell47fdd832003-07-14 16:52:07 +000018412
John Criswell7a73b802003-06-30 21:59:07 +000018413 case $host_os in
18414 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018415 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018416
18417# AIX sometimes has problems with the GCC collect2 program. For some
18418# reason, if we set the COLLECT_NAMES environment variable, the problems
18419# vanish in a puff of smoke.
18420if test "X${COLLECT_NAMES+set}" != Xset; then
18421 COLLECT_NAMES=
18422 export COLLECT_NAMES
18423fi
18424EOF
18425 ;;
18426 esac
18427
John Criswell7a73b802003-06-30 21:59:07 +000018428 # We use sed instead of cat because bash on DJGPP gets confused if
18429 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18430 # text mode, it properly converts lines to CR/LF. This bash problem
18431 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018432 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018433
John Criswell47fdd832003-07-14 16:52:07 +000018434 mv -f "$cfgfile" "$ofile" || \
18435 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018436 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018437
18438else
18439 # If there is no Makefile yet, we rely on a make rule to execute
18440 # `config.status --recheck' to rerun these tests and create the
18441 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18443 if test -f "$ltmain_in"; then
18444 test -f Makefile && make "$ltmain"
18445 fi
John Criswell7a73b802003-06-30 21:59:07 +000018446fi
John Criswell7a73b802003-06-30 21:59:07 +000018447
18448
John Criswell47fdd832003-07-14 16:52:07 +000018449ac_ext=c
18450ac_cpp='$CPP $CPPFLAGS'
18451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18453ac_compiler_gnu=$ac_cv_c_compiler_gnu
18454
18455CC="$lt_save_CC"
18456
18457
Reid Spencera773bd52006-08-04 18:18:08 +000018458# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018459if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018460 withval=$with_tags; tagnames="$withval"
18461fi
18462
John Criswell47fdd832003-07-14 16:52:07 +000018463
18464if test -f "$ltmain" && test -n "$tagnames"; then
18465 if test ! -f "${ofile}"; then
18466 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18467echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18468 fi
18469
18470 if test -z "$LTCC"; then
18471 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18472 if test -z "$LTCC"; then
18473 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18474echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18475 else
18476 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18477echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18478 fi
18479 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018480 if test -z "$LTCFLAGS"; then
18481 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18482 fi
John Criswell47fdd832003-07-14 16:52:07 +000018483
18484 # Extract list of available tagged configurations in $ofile.
18485 # Note that this assumes the entire list is on one line.
18486 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18487
18488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18489 for tagname in $tagnames; do
18490 IFS="$lt_save_ifs"
18491 # Check whether tagname contains only valid characters
18492 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18493 "") ;;
18494 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18495echo "$as_me: error: invalid tag name: $tagname" >&2;}
18496 { (exit 1); exit 1; }; }
18497 ;;
18498 esac
18499
18500 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18501 then
18502 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18503echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18504 { (exit 1); exit 1; }; }
18505 fi
18506
18507 # Update the list of available tags.
18508 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018509 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018510
18511 case $tagname in
18512 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018513 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18514 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18515 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018516 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018517ac_cpp='$CXXCPP $CPPFLAGS'
18518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18521
18522
18523
18524
18525archive_cmds_need_lc_CXX=no
18526allow_undefined_flag_CXX=
18527always_export_symbols_CXX=no
18528archive_expsym_cmds_CXX=
18529export_dynamic_flag_spec_CXX=
18530hardcode_direct_CXX=no
18531hardcode_libdir_flag_spec_CXX=
18532hardcode_libdir_flag_spec_ld_CXX=
18533hardcode_libdir_separator_CXX=
18534hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018535hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018536hardcode_automatic_CXX=no
18537module_cmds_CXX=
18538module_expsym_cmds_CXX=
18539link_all_deplibs_CXX=unknown
18540old_archive_cmds_CXX=$old_archive_cmds
18541no_undefined_flag_CXX=
18542whole_archive_flag_spec_CXX=
18543enable_shared_with_static_runtimes_CXX=no
18544
18545# Dependencies to place before and after the object being linked:
18546predep_objects_CXX=
18547postdep_objects_CXX=
18548predeps_CXX=
18549postdeps_CXX=
18550compiler_lib_search_path_CXX=
18551
18552# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018553ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018554
18555# Object file extension for compiled C++ test sources.
18556objext=o
18557objext_CXX=$objext
18558
18559# Code to be used in simple compile tests
18560lt_simple_compile_test_code="int some_variable = 0;\n"
18561
18562# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018563lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018564
18565# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18566
18567# If no C compiler was specified, use CC.
18568LTCC=${LTCC-"$CC"}
18569
Reid Spencera773bd52006-08-04 18:18:08 +000018570# If no C compiler flags were specified, use CFLAGS.
18571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18572
John Criswell47fdd832003-07-14 16:52:07 +000018573# Allow CC to be a program name with arguments.
18574compiler=$CC
18575
18576
Reid Spencera773bd52006-08-04 18:18:08 +000018577# save warnings/boilerplate of simple test code
18578ac_outfile=conftest.$ac_objext
18579printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581_lt_compiler_boilerplate=`cat conftest.err`
18582$rm conftest*
18583
18584ac_outfile=conftest.$ac_objext
18585printf "$lt_simple_link_test_code" >conftest.$ac_ext
18586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587_lt_linker_boilerplate=`cat conftest.err`
18588$rm conftest*
18589
18590
John Criswell47fdd832003-07-14 16:52:07 +000018591# Allow CC to be a program name with arguments.
18592lt_save_CC=$CC
18593lt_save_LD=$LD
18594lt_save_GCC=$GCC
18595GCC=$GXX
18596lt_save_with_gnu_ld=$with_gnu_ld
18597lt_save_path_LD=$lt_cv_path_LD
18598if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18600else
Reid Spencera773bd52006-08-04 18:18:08 +000018601 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018602fi
18603if test -n "${lt_cv_path_LDCXX+set}"; then
18604 lt_cv_path_LD=$lt_cv_path_LDCXX
18605else
Reid Spencera773bd52006-08-04 18:18:08 +000018606 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018607fi
18608test -z "${LDCXX+set}" || LD=$LDCXX
18609CC=${CXX-"c++"}
18610compiler=$CC
18611compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018612for cc_temp in $compiler""; do
18613 case $cc_temp in
18614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18616 \-*) ;;
18617 *) break;;
18618 esac
18619done
18620cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18621
John Criswell47fdd832003-07-14 16:52:07 +000018622
18623# We don't want -fno-exception wen compiling C++ code, so set the
18624# no_builtin_flag separately
18625if test "$GXX" = yes; then
18626 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18627else
18628 lt_prog_compiler_no_builtin_flag_CXX=
18629fi
18630
18631if test "$GXX" = yes; then
18632 # Set up default GNU C++ configuration
18633
18634
Reid Spencera773bd52006-08-04 18:18:08 +000018635# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018636if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018638else
18639 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018640fi
18641
John Criswell47fdd832003-07-14 16:52:07 +000018642ac_prog=ld
18643if test "$GCC" = yes; then
18644 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018645 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18646echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018647 case $host in
18648 *-*-mingw*)
18649 # gcc leaves a trailing carriage return which upsets mingw
18650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18651 *)
18652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18653 esac
18654 case $ac_prog in
18655 # Accept absolute paths.
18656 [\\/]* | ?:[\\/]*)
18657 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018658 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018659 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18660 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18661 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18662 done
18663 test -z "$LD" && LD="$ac_prog"
18664 ;;
18665 "")
18666 # If it fails, then pretend we aren't using GCC.
18667 ac_prog=ld
18668 ;;
18669 *)
18670 # If it is relative, then search for the first ld in PATH.
18671 with_gnu_ld=unknown
18672 ;;
18673 esac
18674elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018675 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18676echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018677else
Reid Spencera773bd52006-08-04 18:18:08 +000018678 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18679echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018680fi
18681if test "${lt_cv_path_LD+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
18684 if test -z "$LD"; then
18685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18686 for ac_dir in $PATH; do
18687 IFS="$lt_save_ifs"
18688 test -z "$ac_dir" && ac_dir=.
18689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18690 lt_cv_path_LD="$ac_dir/$ac_prog"
18691 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018692 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018693 # Break only if it was the GNU/non-GNU ld that we prefer.
18694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18695 *GNU* | *'with BFD'*)
18696 test "$with_gnu_ld" != no && break
18697 ;;
18698 *)
18699 test "$with_gnu_ld" != yes && break
18700 ;;
18701 esac
18702 fi
18703 done
18704 IFS="$lt_save_ifs"
18705else
18706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18707fi
18708fi
18709
18710LD="$lt_cv_path_LD"
18711if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018712 { echo "$as_me:$LINENO: result: $LD" >&5
18713echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018714else
Reid Spencera773bd52006-08-04 18:18:08 +000018715 { echo "$as_me:$LINENO: result: no" >&5
18716echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018717fi
18718test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18719echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18720 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018721{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18722echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018723if test "${lt_cv_prog_gnu_ld+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
Reid Spencera773bd52006-08-04 18:18:08 +000018726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018727case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018728*GNU* | *'with BFD'*)
18729 lt_cv_prog_gnu_ld=yes
18730 ;;
18731*)
18732 lt_cv_prog_gnu_ld=no
18733 ;;
18734esac
18735fi
Reid Spencera773bd52006-08-04 18:18:08 +000018736{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18737echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018738with_gnu_ld=$lt_cv_prog_gnu_ld
18739
18740
18741
18742 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18743 # archiving commands below assume that GNU ld is being used.
18744 if test "$with_gnu_ld" = yes; then
18745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18746 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'
18747
18748 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18750
18751 # If archive_cmds runs LD, not CC, wlarc should be empty
18752 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18753 # investigate it a little bit more. (MM)
18754 wlarc='${wl}'
18755
18756 # ancient GNU ld didn't support --whole-archive et. al.
18757 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18758 grep 'no-whole-archive' > /dev/null; then
18759 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18760 else
18761 whole_archive_flag_spec_CXX=
18762 fi
18763 else
18764 with_gnu_ld=no
18765 wlarc=
18766
18767 # A generic and very simple default shared library creation
18768 # command for GNU C++ for the case where it uses the native
18769 # linker, instead of GNU ld. If possible, this setting should
18770 # overridden to take advantage of the native linker features on
18771 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018773 fi
18774
18775 # Commands to make compiler produce verbose output that lists
18776 # what "hidden" libraries, object files and flags are used when
18777 # linking a shared library.
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18779
18780else
18781 GXX=no
18782 with_gnu_ld=no
18783 wlarc=
18784fi
18785
18786# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018787{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18788echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018789ld_shlibs_CXX=yes
18790case $host_os in
18791 aix3*)
18792 # FIXME: insert proper C++ library support
18793 ld_shlibs_CXX=no
18794 ;;
18795 aix4* | aix5*)
18796 if test "$host_cpu" = ia64; then
18797 # On IA64, the linker does run time linking by default, so we don't
18798 # have to do anything special.
18799 aix_use_runtimelinking=no
18800 exp_sym_flag='-Bexport'
18801 no_entry_flag=""
18802 else
18803 aix_use_runtimelinking=no
18804
18805 # Test if we are trying to use run time linking or normal
18806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807 # need to do runtime linking.
18808 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809 for ld_flag in $LDFLAGS; do
18810 case $ld_flag in
18811 *-brtl*)
18812 aix_use_runtimelinking=yes
18813 break
18814 ;;
18815 esac
18816 done
Reid Spencera773bd52006-08-04 18:18:08 +000018817 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018818 esac
18819
18820 exp_sym_flag='-bexport'
18821 no_entry_flag='-bnoentry'
18822 fi
18823
18824 # When large executables or shared objects are built, AIX ld can
18825 # have problems creating the table of contents. If linking a library
18826 # or program results in "error TOC overflow" add -mminimal-toc to
18827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18829
18830 archive_cmds_CXX=''
18831 hardcode_direct_CXX=yes
18832 hardcode_libdir_separator_CXX=':'
18833 link_all_deplibs_CXX=yes
18834
18835 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018836 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018837 # We only want to do this on AIX 4.2 and lower, the check
18838 # below for broken collect2 doesn't work under 4.3+
18839 collect2name=`${CC} -print-prog-name=collect2`
18840 if test -f "$collect2name" && \
18841 strings "$collect2name" | grep resolve_lib_name >/dev/null
18842 then
18843 # We have reworked collect2
18844 hardcode_direct_CXX=yes
18845 else
18846 # We have old collect2
18847 hardcode_direct_CXX=unsupported
18848 # It fails to find uninstalled libraries when the uninstalled
18849 # path is not listed in the libpath. Setting hardcode_minus_L
18850 # to unsupported forces relinking
18851 hardcode_minus_L_CXX=yes
18852 hardcode_libdir_flag_spec_CXX='-L$libdir'
18853 hardcode_libdir_separator_CXX=
18854 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018856 esac
18857 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018858 if test "$aix_use_runtimelinking" = yes; then
18859 shared_flag="$shared_flag "'${wl}-G'
18860 fi
John Criswell47fdd832003-07-14 16:52:07 +000018861 else
18862 # not using gcc
18863 if test "$host_cpu" = ia64; then
18864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18865 # chokes on -Wl,-G. The following line is correct:
18866 shared_flag='-G'
18867 else
18868 if test "$aix_use_runtimelinking" = yes; then
18869 shared_flag='${wl}-G'
18870 else
18871 shared_flag='${wl}-bM:SRE'
18872 fi
18873 fi
18874 fi
18875
18876 # It seems that -bexpall does not export symbols beginning with
18877 # underscore (_), so it is better to generate a list of symbols to export.
18878 always_export_symbols_CXX=yes
18879 if test "$aix_use_runtimelinking" = yes; then
18880 # Warning - without using the other runtime loading flags (-brtl),
18881 # -berok will link without error, but may produce a broken library.
18882 allow_undefined_flag_CXX='-berok'
18883 # Determine the default libpath from the value encoded in an empty executable.
18884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018885/* confdefs.h. */
18886_ACEOF
18887cat confdefs.h >>conftest.$ac_ext
18888cat >>conftest.$ac_ext <<_ACEOF
18889/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018890
John Criswell47fdd832003-07-14 16:52:07 +000018891int
18892main ()
18893{
18894
18895 ;
18896 return 0;
18897}
18898_ACEOF
18899rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018900if { (ac_try="$ac_link"
18901case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904esac
18905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927esac
18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018933
18934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18935}'`
18936# Check for a 64-bit object if we didn't find anything.
18937if 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; }
18938}'`; fi
18939else
18940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018941sed 's/^/| /' conftest.$ac_ext >&5
18942
Reid Spencera773bd52006-08-04 18:18:08 +000018943
John Criswell47fdd832003-07-14 16:52:07 +000018944fi
Reid Spencera773bd52006-08-04 18:18:08 +000018945
Bill Wendlingebcceee2009-04-18 11:20:33 +000018946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018947 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18949
18950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18951
Reid Spencera773bd52006-08-04 18:18:08 +000018952 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 +000018953 else
18954 if test "$host_cpu" = ia64; then
18955 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18956 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018957 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 +000018958 else
18959 # Determine the default libpath from the value encoded in an empty executable.
18960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018961/* confdefs.h. */
18962_ACEOF
18963cat confdefs.h >>conftest.$ac_ext
18964cat >>conftest.$ac_ext <<_ACEOF
18965/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018966
John Criswell47fdd832003-07-14 16:52:07 +000018967int
18968main ()
18969{
18970
18971 ;
18972 return 0;
18973}
18974_ACEOF
18975rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018976if { (ac_try="$ac_link"
18977case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18980esac
18981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018983 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18990 { (case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993esac
18994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_try") 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try='test -s conftest$ac_exeext'
19000 { (case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19003esac
19004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_try") 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019009
19010aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19011}'`
19012# Check for a 64-bit object if we didn't find anything.
19013if 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; }
19014}'`; fi
19015else
19016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019017sed 's/^/| /' conftest.$ac_ext >&5
19018
Reid Spencera773bd52006-08-04 18:18:08 +000019019
John Criswell47fdd832003-07-14 16:52:07 +000019020fi
Reid Spencera773bd52006-08-04 18:18:08 +000019021
Bill Wendlingebcceee2009-04-18 11:20:33 +000019022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019023 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019024if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19025
19026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19027 # Warning - without using the other run time loading flags,
19028 # -berok will link without error, but may produce a broken library.
19029 no_undefined_flag_CXX=' ${wl}-bernotok'
19030 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019031 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019032 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019033 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019034 # This is similar to how AIX traditionally builds its shared libraries.
19035 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 +000019036 fi
19037 fi
19038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019039
19040 beos*)
19041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042 allow_undefined_flag_CXX=unsupported
19043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19044 # support --undefined. This deserves some investigation. FIXME
19045 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19046 else
19047 ld_shlibs_CXX=no
19048 fi
19049 ;;
19050
John Criswell47fdd832003-07-14 16:52:07 +000019051 chorus*)
19052 case $cc_basename in
19053 *)
19054 # FIXME: insert proper C++ library support
19055 ld_shlibs_CXX=no
19056 ;;
19057 esac
19058 ;;
19059
19060 cygwin* | mingw* | pw32*)
19061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19062 # as there is no search path for DLLs.
19063 hardcode_libdir_flag_spec_CXX='-L$libdir'
19064 allow_undefined_flag_CXX=unsupported
19065 always_export_symbols_CXX=no
19066 enable_shared_with_static_runtimes_CXX=yes
19067
19068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019069 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 +000019070 # If the export-symbols file already is a .def file (1st line
19071 # is EXPORTS), use it as is; otherwise, prepend...
19072 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19073 cp $export_symbols $output_objdir/$soname.def;
19074 else
19075 echo EXPORTS > $output_objdir/$soname.def;
19076 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019077 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019078 $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 +000019079 else
19080 ld_shlibs_CXX=no
19081 fi
19082 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019083 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019084 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019085 rhapsody* | darwin1.[012])
19086 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19087 ;;
19088 *) # Darwin 1.3 on
19089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19090 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19091 else
19092 case ${MACOSX_DEPLOYMENT_TARGET} in
19093 10.[012])
19094 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19095 ;;
19096 10.*)
19097 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19098 ;;
19099 esac
19100 fi
19101 ;;
19102 esac
19103 archive_cmds_need_lc_CXX=no
19104 hardcode_direct_CXX=no
19105 hardcode_automatic_CXX=yes
19106 hardcode_shlibpath_var_CXX=unsupported
19107 whole_archive_flag_spec_CXX=''
19108 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019109
Reid Spencer2706f8c2004-09-19 23:53:36 +000019110 if test "$GXX" = yes ; then
19111 lt_int_apple_cc_single_mod=no
19112 output_verbose_link_cmd='echo'
19113 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19114 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019115 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019116 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019117 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 +000019118 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019119 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 +000019120 fi
19121 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019122 # 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 +000019123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019124 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 +000019125 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019126 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 +000019127 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019128 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 +000019129 else
Reid Spencera773bd52006-08-04 18:18:08 +000019130 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019131 xlc*)
19132 output_verbose_link_cmd='echo'
19133 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'
19134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019135 # 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 +000019136 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}'
19137 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 +000019138 ;;
19139 *)
19140 ld_shlibs_CXX=no
19141 ;;
19142 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019143 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019144 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019145
19146 dgux*)
19147 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019148 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019152 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019153 # Green Hills C++ Compiler
19154 # FIXME: insert proper C++ library support
19155 ld_shlibs_CXX=no
19156 ;;
19157 *)
19158 # FIXME: insert proper C++ library support
19159 ld_shlibs_CXX=no
19160 ;;
19161 esac
19162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019163 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019164 # C++ shared libraries reported to be fairly broken before switch to ELF
19165 ld_shlibs_CXX=no
19166 ;;
19167 freebsd-elf*)
19168 archive_cmds_need_lc_CXX=no
19169 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019170 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019171 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19172 # conventions
19173 ld_shlibs_CXX=yes
19174 ;;
19175 gnu*)
19176 ;;
19177 hpux9*)
19178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19179 hardcode_libdir_separator_CXX=:
19180 export_dynamic_flag_spec_CXX='${wl}-E'
19181 hardcode_direct_CXX=yes
19182 hardcode_minus_L_CXX=yes # Not in the search PATH,
19183 # but as the default
19184 # location of the library.
19185
19186 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019187 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19190 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019191 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019192 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 +000019193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19196 #
19197 # There doesn't appear to be a way to prevent this compiler from
19198 # explicitly linking system object files so we need to strip them
19199 # from the output so that they don't get included in the library
19200 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019201 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 +000019202 ;;
19203 *)
19204 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019205 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 +000019206 else
19207 # FIXME: insert proper C++ library support
19208 ld_shlibs_CXX=no
19209 fi
19210 ;;
19211 esac
19212 ;;
19213 hpux10*|hpux11*)
19214 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019215 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19216 hardcode_libdir_separator_CXX=:
19217
19218 case $host_cpu in
19219 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019220 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019221 ;;
19222 *)
John Criswell47fdd832003-07-14 16:52:07 +000019223 export_dynamic_flag_spec_CXX='${wl}-E'
19224 ;;
19225 esac
19226 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019227 case $host_cpu in
19228 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019229 hardcode_direct_CXX=no
19230 hardcode_shlibpath_var_CXX=no
19231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019232 *)
19233 hardcode_direct_CXX=yes
19234 hardcode_minus_L_CXX=yes # Not in the search PATH,
19235 # but as the default
19236 # location of the library.
19237 ;;
19238 esac
19239
19240 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019241 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019245 aCC*)
19246 case $host_cpu in
19247 hppa*64*)
19248 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 ;;
19250 ia64*)
19251 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 +000019252 ;;
19253 *)
19254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19255 ;;
19256 esac
19257 # Commands to make compiler produce verbose output that lists
19258 # what "hidden" libraries, object files and flags are used when
19259 # linking a shared library.
19260 #
19261 # There doesn't appear to be a way to prevent this compiler from
19262 # explicitly linking system object files so we need to strip them
19263 # from the output so that they don't get included in the library
19264 # dependencies.
19265 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'
19266 ;;
19267 *)
19268 if test "$GXX" = yes; then
19269 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019270 case $host_cpu in
19271 hppa*64*)
19272 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19273 ;;
19274 ia64*)
19275 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 +000019276 ;;
19277 *)
19278 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'
19279 ;;
19280 esac
19281 fi
19282 else
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 fi
19286 ;;
19287 esac
19288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019289 interix3*)
19290 hardcode_direct_CXX=no
19291 hardcode_shlibpath_var_CXX=no
19292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293 export_dynamic_flag_spec_CXX='${wl}-E'
19294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295 # Instead, shared libraries are loaded at an image base (0x10000000 by
19296 # default) and relocated if they conflict, which is a slow very memory
19297 # consuming and fragmenting process. To avoid this, we pick a random,
19298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19300 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'
19301 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'
19302 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019303 irix5* | irix6*)
19304 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019305 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019306 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019307 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 +000019308
19309 # Archives containing C++ object files must be created using
19310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19311 # necessary to make sure instantiated templates are included
19312 # in the archive.
19313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19314 ;;
19315 *)
19316 if test "$GXX" = yes; then
19317 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019318 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 +000019319 else
19320 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'
19321 fi
19322 fi
19323 link_all_deplibs_CXX=yes
19324 ;;
19325 esac
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19328 ;;
19329 linux*)
19330 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019331 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019332 # Kuck and Associates, Inc. (KAI) C++ Compiler
19333
19334 # KCC will only create a shared library if the output file
19335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336 # to its proper name (with version) after linking.
19337 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19338 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'
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
19342 #
19343 # There doesn't appear to be a way to prevent this compiler from
19344 # explicitly linking system object files so we need to strip them
19345 # from the output so that they don't get included in the library
19346 # dependencies.
19347 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'
19348
19349 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19351
19352 # Archives containing C++ object files must be created using
19353 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19354 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019356 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019357 # Intel C++
19358 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019359 # version 8.0 and above of icpc choke on multiply defined symbols
19360 # if we add $predep_objects and $postdep_objects, however 7.1 and
19361 # earlier do not add the objects themselves.
19362 case `$CC -V 2>&1` in
19363 *"Version 7."*)
19364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19366 ;;
19367 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019368 tmp_idyn=
19369 case $host_cpu in
19370 ia64*) tmp_idyn=' -i_dynamic';;
19371 esac
19372 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19373 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 +000019374 ;;
19375 esac
John Criswell47fdd832003-07-14 16:52:07 +000019376 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19378 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19379 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019381 pgCC*)
19382 # Portland Group C++ compiler
19383 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384 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'
19385
19386 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19388 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'
19389 ;;
19390 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019391 # Compaq C++
19392 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19393 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'
19394
19395 runpath_var=LD_RUN_PATH
19396 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19397 hardcode_libdir_separator_CXX=:
19398
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19402 #
19403 # There doesn't appear to be a way to prevent this compiler from
19404 # explicitly linking system object files so we need to strip them
19405 # from the output so that they don't get included in the library
19406 # dependencies.
19407 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'
19408 ;;
19409 esac
19410 ;;
19411 lynxos*)
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19414 ;;
19415 m88k*)
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19418 ;;
19419 mvs*)
19420 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019421 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019422 # FIXME: insert proper C++ library support
19423 ld_shlibs_CXX=no
19424 ;;
19425 *)
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19428 ;;
19429 esac
19430 ;;
19431 netbsd*)
19432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19433 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19434 wlarc=
19435 hardcode_libdir_flag_spec_CXX='-R$libdir'
19436 hardcode_direct_CXX=yes
19437 hardcode_shlibpath_var_CXX=no
19438 fi
19439 # Workaround some broken pre-1.5 toolchains
19440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19441 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019442 openbsd2*)
19443 # C++ shared libraries are fairly broken
19444 ld_shlibs_CXX=no
19445 ;;
19446 openbsd*)
19447 hardcode_direct_CXX=yes
19448 hardcode_shlibpath_var_CXX=no
19449 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19452 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19453 export_dynamic_flag_spec_CXX='${wl}-E'
19454 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19455 fi
19456 output_verbose_link_cmd='echo'
19457 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019458 osf3*)
19459 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019460 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019461 # Kuck and Associates, Inc. (KAI) C++ Compiler
19462
19463 # KCC will only create a shared library if the output file
19464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465 # to its proper name (with version) after linking.
19466 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'
19467
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19469 hardcode_libdir_separator_CXX=:
19470
19471 # Archives containing C++ object files must be created using
19472 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19473 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19474
19475 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019476 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019477 # Rational C++ 2.4.1
19478 # FIXME: insert proper C++ library support
19479 ld_shlibs_CXX=no
19480 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019481 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019483 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 +000019484
19485 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19486 hardcode_libdir_separator_CXX=:
19487
19488 # Commands to make compiler produce verbose output that lists
19489 # what "hidden" libraries, object files and flags are used when
19490 # linking a shared library.
19491 #
19492 # There doesn't appear to be a way to prevent this compiler from
19493 # explicitly linking system object files so we need to strip them
19494 # from the output so that they don't get included in the library
19495 # dependencies.
19496 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'
19497 ;;
19498 *)
19499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19500 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019501 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 +000019502
19503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19504 hardcode_libdir_separator_CXX=:
19505
19506 # Commands to make compiler produce verbose output that lists
19507 # what "hidden" libraries, object files and flags are used when
19508 # linking a shared library.
19509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19510
19511 else
19512 # FIXME: insert proper C++ library support
19513 ld_shlibs_CXX=no
19514 fi
19515 ;;
19516 esac
19517 ;;
19518 osf4* | osf5*)
19519 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019520 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019521 # Kuck and Associates, Inc. (KAI) C++ Compiler
19522
19523 # KCC will only create a shared library if the output file
19524 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19525 # to its proper name (with version) after linking.
19526 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'
19527
19528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19529 hardcode_libdir_separator_CXX=:
19530
19531 # Archives containing C++ object files must be created using
19532 # the KAI C++ compiler.
19533 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019535 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019536 # Rational C++ 2.4.1
19537 # FIXME: insert proper C++ library support
19538 ld_shlibs_CXX=no
19539 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019540 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019541 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019542 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 +000019543 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19544 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019545 $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 +000019546 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019547
19548 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19549 hardcode_libdir_separator_CXX=:
19550
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19554 #
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19558 # dependencies.
19559 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'
19560 ;;
19561 *)
19562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019564 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 +000019565
19566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19567 hardcode_libdir_separator_CXX=:
19568
19569 # Commands to make compiler produce verbose output that lists
19570 # what "hidden" libraries, object files and flags are used when
19571 # linking a shared library.
19572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19573
19574 else
19575 # FIXME: insert proper C++ library support
19576 ld_shlibs_CXX=no
19577 fi
19578 ;;
19579 esac
19580 ;;
19581 psos*)
19582 # FIXME: insert proper C++ library support
19583 ld_shlibs_CXX=no
19584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019585 sunos4*)
19586 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019587 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019588 # Sun C++ 4.x
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019592 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019593 # Lucid
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19596 ;;
19597 *)
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19600 ;;
19601 esac
19602 ;;
19603 solaris*)
19604 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019605 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019606 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019607 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019608 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019609 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 +000019610 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 +000019611 $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 +000019612
19613 hardcode_libdir_flag_spec_CXX='-R$libdir'
19614 hardcode_shlibpath_var_CXX=no
19615 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019616 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019617 *)
19618 # The C++ compiler is used as linker so we must use $wl
19619 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019620 # linker. We must also pass each convience library through
19621 # to the system linker between allextract/defaultextract.
19622 # The C++ compiler will combine linker options so we
19623 # cannot just pass the convience library names through
19624 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019625 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019626 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 +000019627 ;;
19628 esac
19629 link_all_deplibs_CXX=yes
19630
Reid Spencera773bd52006-08-04 18:18:08 +000019631 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019632
19633 # Archives containing C++ object files must be created using
19634 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19635 # necessary to make sure instantiated templates are included
19636 # in the archive.
19637 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019639 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019640 # Green Hills C++ Compiler
19641 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19642
19643 # The C++ compiler must be used to create the archive.
19644 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19645 ;;
19646 *)
19647 # GNU C++ compiler with Solaris linker
19648 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19649 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19650 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019651 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 +000019652 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19654
John Criswell47fdd832003-07-14 16:52:07 +000019655 # Commands to make compiler produce verbose output that lists
19656 # what "hidden" libraries, object files and flags are used when
19657 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019658 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019659 else
19660 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19661 # platform.
19662 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 +000019663 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19664 $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 +000019665
19666 # Commands to make compiler produce verbose output that lists
19667 # what "hidden" libraries, object files and flags are used when
19668 # linking a shared library.
19669 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19670 fi
19671
19672 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19673 fi
19674 ;;
19675 esac
19676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19678 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019679 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019680 hardcode_shlibpath_var_CXX=no
19681 runpath_var='LD_RUN_PATH'
19682
19683 case $cc_basename in
19684 CC*)
19685 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687 ;;
19688 *)
19689 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 ;;
19692 esac
19693 ;;
19694 sysv5* | sco3.2v5* | sco5v6*)
19695 # Note: We can NOT use -z defs as we might desire, because we do not
19696 # link with -lc, and that would cause any symbols used from libc to
19697 # always be unresolved, which means just about no library would
19698 # ever link correctly. If we're not using GNU ld we use -z text
19699 # though, which does catch some bad symbols but isn't as heavy-handed
19700 # as -z defs.
19701 # For security reasons, it is highly recommended that you always
19702 # use absolute paths for naming shared libraries, and exclude the
19703 # DT_RUNPATH tag from executables and libraries. But doing so
19704 # requires that you compile everything twice, which is a pain.
19705 # So that behaviour is only enabled if SCOABSPATH is set to a
19706 # non-empty value in the environment. Most likely only useful for
19707 # creating official distributions of packages.
19708 # This is a hack until libtool officially supports absolute path
19709 # names for shared libraries.
19710 no_undefined_flag_CXX='${wl}-z,text'
19711 allow_undefined_flag_CXX='${wl}-z,nodefs'
19712 archive_cmds_need_lc_CXX=no
19713 hardcode_shlibpath_var_CXX=no
19714 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19715 hardcode_libdir_separator_CXX=':'
19716 link_all_deplibs_CXX=yes
19717 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19718 runpath_var='LD_RUN_PATH'
19719
19720 case $cc_basename in
19721 CC*)
19722 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19724 ;;
19725 *)
19726 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 ;;
19729 esac
John Criswell47fdd832003-07-14 16:52:07 +000019730 ;;
19731 tandem*)
19732 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019733 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019734 # NonStop-UX NCC 3.20
19735 # FIXME: insert proper C++ library support
19736 ld_shlibs_CXX=no
19737 ;;
19738 *)
19739 # FIXME: insert proper C++ library support
19740 ld_shlibs_CXX=no
19741 ;;
19742 esac
19743 ;;
19744 vxworks*)
19745 # FIXME: insert proper C++ library support
19746 ld_shlibs_CXX=no
19747 ;;
19748 *)
19749 # FIXME: insert proper C++ library support
19750 ld_shlibs_CXX=no
19751 ;;
19752esac
Reid Spencera773bd52006-08-04 18:18:08 +000019753{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19754echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019755test "$ld_shlibs_CXX" = no && can_build_shared=no
19756
19757GCC_CXX="$GXX"
19758LD_CXX="$LD"
19759
John Criswell47fdd832003-07-14 16:52:07 +000019760
19761cat > conftest.$ac_ext <<EOF
19762class Foo
19763{
19764public:
19765 Foo (void) { a = 0; }
19766private:
19767 int a;
19768};
19769EOF
19770
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; then
19776 # Parse the compiler output and extract the necessary
19777 # objects, libraries and library flags.
19778
19779 # Sentinel used to keep track of whether or not we are before
19780 # the conftest object file.
19781 pre_test_object_deps_done=no
19782
19783 # The `*' in the case matches for architectures that use `case' in
19784 # $output_verbose_cmd can trigger glob expansion during the loop
19785 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019786 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019787
19788 for p in `eval $output_verbose_link_cmd`; do
19789 case $p in
19790
19791 -L* | -R* | -l*)
19792 # Some compilers place space between "-{L,R}" and the path.
19793 # Remove the space.
19794 if test $p = "-L" \
19795 || test $p = "-R"; then
19796 prev=$p
19797 continue
19798 else
19799 prev=
19800 fi
19801
19802 if test "$pre_test_object_deps_done" = no; then
19803 case $p in
19804 -L* | -R*)
19805 # Internal compiler library paths should come after those
19806 # provided the user. The postdeps already come after the
19807 # user supplied libs so there is no need to process them.
19808 if test -z "$compiler_lib_search_path_CXX"; then
19809 compiler_lib_search_path_CXX="${prev}${p}"
19810 else
19811 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19812 fi
19813 ;;
19814 # The "-l" case would never come before the object being
19815 # linked, so don't bother handling this case.
19816 esac
19817 else
19818 if test -z "$postdeps_CXX"; then
19819 postdeps_CXX="${prev}${p}"
19820 else
19821 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19822 fi
19823 fi
19824 ;;
19825
19826 *.$objext)
19827 # This assumes that the test object file only shows up
19828 # once in the compiler output.
19829 if test "$p" = "conftest.$objext"; then
19830 pre_test_object_deps_done=yes
19831 continue
19832 fi
19833
19834 if test "$pre_test_object_deps_done" = no; then
19835 if test -z "$predep_objects_CXX"; then
19836 predep_objects_CXX="$p"
19837 else
19838 predep_objects_CXX="$predep_objects_CXX $p"
19839 fi
19840 else
19841 if test -z "$postdep_objects_CXX"; then
19842 postdep_objects_CXX="$p"
19843 else
19844 postdep_objects_CXX="$postdep_objects_CXX $p"
19845 fi
19846 fi
19847 ;;
19848
19849 *) ;; # Ignore the rest.
19850
19851 esac
19852 done
19853
19854 # Clean up.
19855 rm -f a.out a.exe
19856else
19857 echo "libtool.m4: error: problem compiling CXX test program"
19858fi
19859
19860$rm -f confest.$objext
19861
Reid Spencera773bd52006-08-04 18:18:08 +000019862# PORTME: override above test on systems where it is broken
19863case $host_os in
19864interix3*)
19865 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19866 # hack all around it, let's just trust "g++" to DTRT.
19867 predep_objects_CXX=
19868 postdep_objects_CXX=
19869 postdeps_CXX=
19870 ;;
19871
19872solaris*)
19873 case $cc_basename in
19874 CC*)
19875 # Adding this requires a known-good setup of shared libraries for
19876 # Sun compiler versions before 5.6, else PIC objects from an old
19877 # archive will be linked into the output, leading to subtle bugs.
19878 postdeps_CXX='-lCstd -lCrun'
19879 ;;
19880 esac
19881 ;;
19882esac
19883
19884
John Criswell47fdd832003-07-14 16:52:07 +000019885case " $postdeps_CXX " in
19886*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19887esac
19888
19889lt_prog_compiler_wl_CXX=
19890lt_prog_compiler_pic_CXX=
19891lt_prog_compiler_static_CXX=
19892
Reid Spencera773bd52006-08-04 18:18:08 +000019893{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19894echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019895
19896 # C++ specific cases for pic, static, wl, etc.
19897 if test "$GXX" = yes; then
19898 lt_prog_compiler_wl_CXX='-Wl,'
19899 lt_prog_compiler_static_CXX='-static'
19900
19901 case $host_os in
19902 aix*)
19903 # All AIX code is PIC.
19904 if test "$host_cpu" = ia64; then
19905 # AIX 5 now supports IA64 processor
19906 lt_prog_compiler_static_CXX='-Bstatic'
19907 fi
19908 ;;
19909 amigaos*)
19910 # FIXME: we need at least 68020 code to build shared libraries, but
19911 # adding the `-m68020' flag to GCC prevents building anything better,
19912 # like `-m68040'.
19913 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19914 ;;
19915 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19916 # PIC is the default for these OSes.
19917 ;;
19918 mingw* | os2* | pw32*)
19919 # This hack is so that the source file can tell whether it is being
19920 # built for inclusion in a dll (and should export symbols for example).
19921 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19922 ;;
19923 darwin* | rhapsody*)
19924 # PIC is the default on this platform
19925 # Common symbols not allowed in MH_DYLIB files
19926 lt_prog_compiler_pic_CXX='-fno-common'
19927 ;;
19928 *djgpp*)
19929 # DJGPP does not support shared libraries at all
19930 lt_prog_compiler_pic_CXX=
19931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019932 interix3*)
19933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19934 # Instead, we relocate shared libraries at runtime.
19935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019936 sysv4*MP*)
19937 if test -d /usr/nec; then
19938 lt_prog_compiler_pic_CXX=-Kconform_pic
19939 fi
19940 ;;
19941 hpux*)
19942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19943 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019944 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019945 hppa*64*|ia64*)
19946 ;;
19947 *)
19948 lt_prog_compiler_pic_CXX='-fPIC'
19949 ;;
19950 esac
19951 ;;
19952 *)
19953 lt_prog_compiler_pic_CXX='-fPIC'
19954 ;;
19955 esac
19956 else
19957 case $host_os in
19958 aix4* | aix5*)
19959 # All AIX code is PIC.
19960 if test "$host_cpu" = ia64; then
19961 # AIX 5 now supports IA64 processor
19962 lt_prog_compiler_static_CXX='-Bstatic'
19963 else
19964 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19965 fi
19966 ;;
19967 chorus*)
19968 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019969 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019970 # Green Hills C++ Compiler
19971 # _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"
19972 ;;
19973 esac
19974 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019975 darwin*)
19976 # PIC is the default on this platform
19977 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019978 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019979 xlc*)
19980 lt_prog_compiler_pic_CXX='-qnocommon'
19981 lt_prog_compiler_wl_CXX='-Wl,'
19982 ;;
19983 esac
19984 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019985 dgux*)
19986 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019987 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019988 lt_prog_compiler_pic_CXX='-KPIC'
19989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019990 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019991 # Green Hills C++ Compiler
19992 lt_prog_compiler_pic_CXX='-pic'
19993 ;;
19994 *)
19995 ;;
19996 esac
19997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019998 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019999 # FreeBSD uses GNU C++
20000 ;;
20001 hpux9* | hpux10* | hpux11*)
20002 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020003 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020004 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020005 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000020006 if test "$host_cpu" != ia64; then
20007 lt_prog_compiler_pic_CXX='+Z'
20008 fi
20009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020010 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020011 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020012 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20013 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020014 hppa*64*|ia64*)
20015 # +Z the default
20016 ;;
20017 *)
20018 lt_prog_compiler_pic_CXX='+Z'
20019 ;;
20020 esac
20021 ;;
20022 *)
20023 ;;
20024 esac
20025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020026 interix*)
20027 # This is c89, which is MS Visual C++ (no shared libs)
20028 # Anyone wants to do a port?
20029 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020030 irix5* | irix6* | nonstopux*)
20031 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020032 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020033 lt_prog_compiler_wl_CXX='-Wl,'
20034 lt_prog_compiler_static_CXX='-non_shared'
20035 # CC pic flag -KPIC is the default.
20036 ;;
20037 *)
20038 ;;
20039 esac
20040 ;;
20041 linux*)
20042 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020043 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020044 # KAI C++ Compiler
20045 lt_prog_compiler_wl_CXX='--backend -Wl,'
20046 lt_prog_compiler_pic_CXX='-fPIC'
20047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020048 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020049 # Intel C++
20050 lt_prog_compiler_wl_CXX='-Wl,'
20051 lt_prog_compiler_pic_CXX='-KPIC'
20052 lt_prog_compiler_static_CXX='-static'
20053 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020054 pgCC*)
20055 # Portland Group C++ compiler.
20056 lt_prog_compiler_wl_CXX='-Wl,'
20057 lt_prog_compiler_pic_CXX='-fpic'
20058 lt_prog_compiler_static_CXX='-Bstatic'
20059 ;;
20060 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020061 # Compaq C++
20062 # Make sure the PIC flag is empty. It appears that all Alpha
20063 # Linux and Compaq Tru64 Unix objects are PIC.
20064 lt_prog_compiler_pic_CXX=
20065 lt_prog_compiler_static_CXX='-non_shared'
20066 ;;
20067 *)
20068 ;;
20069 esac
20070 ;;
20071 lynxos*)
20072 ;;
20073 m88k*)
20074 ;;
20075 mvs*)
20076 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020077 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020078 lt_prog_compiler_pic_CXX='-W c,exportall'
20079 ;;
20080 *)
20081 ;;
20082 esac
20083 ;;
20084 netbsd*)
20085 ;;
20086 osf3* | osf4* | osf5*)
20087 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020088 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020089 lt_prog_compiler_wl_CXX='--backend -Wl,'
20090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020091 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020092 # Rational C++ 2.4.1
20093 lt_prog_compiler_pic_CXX='-pic'
20094 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020095 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020096 # Digital/Compaq C++
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 # Make sure the PIC flag is empty. It appears that all Alpha
20099 # Linux and Compaq Tru64 Unix objects are PIC.
20100 lt_prog_compiler_pic_CXX=
20101 lt_prog_compiler_static_CXX='-non_shared'
20102 ;;
20103 *)
20104 ;;
20105 esac
20106 ;;
20107 psos*)
20108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020109 solaris*)
20110 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020111 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020112 # Sun C++ 4.2, 5.x and Centerline C++
20113 lt_prog_compiler_pic_CXX='-KPIC'
20114 lt_prog_compiler_static_CXX='-Bstatic'
20115 lt_prog_compiler_wl_CXX='-Qoption ld '
20116 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020117 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020118 # Green Hills C++ Compiler
20119 lt_prog_compiler_pic_CXX='-PIC'
20120 ;;
20121 *)
20122 ;;
20123 esac
20124 ;;
20125 sunos4*)
20126 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020127 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020128 # Sun C++ 4.x
20129 lt_prog_compiler_pic_CXX='-pic'
20130 lt_prog_compiler_static_CXX='-Bstatic'
20131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020132 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020133 # Lucid
20134 lt_prog_compiler_pic_CXX='-pic'
20135 ;;
20136 *)
20137 ;;
20138 esac
20139 ;;
20140 tandem*)
20141 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020142 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020143 # NonStop-UX NCC 3.20
20144 lt_prog_compiler_pic_CXX='-KPIC'
20145 ;;
20146 *)
20147 ;;
20148 esac
20149 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20151 case $cc_basename in
20152 CC*)
20153 lt_prog_compiler_wl_CXX='-Wl,'
20154 lt_prog_compiler_pic_CXX='-KPIC'
20155 lt_prog_compiler_static_CXX='-Bstatic'
20156 ;;
20157 esac
John Criswell47fdd832003-07-14 16:52:07 +000020158 ;;
20159 vxworks*)
20160 ;;
20161 *)
20162 lt_prog_compiler_can_build_shared_CXX=no
20163 ;;
20164 esac
20165 fi
20166
Reid Spencera773bd52006-08-04 18:18:08 +000020167{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20168echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020169
20170#
20171# Check to make sure the PIC flag actually works.
20172#
20173if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020174
Reid Spencera773bd52006-08-04 18:18:08 +000020175{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20176echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020177if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 lt_prog_compiler_pic_works_CXX=no
20181 ac_outfile=conftest.$ac_objext
20182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20183 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20184 # Insert the option either (1) after the last *FLAGS variable, or
20185 # (2) before a word containing "conftest.", or (3) at the end.
20186 # Note that $ac_compile itself does not contain backslashes and begins
20187 # with a dollar sign (not a hyphen), so the echo should work correctly.
20188 # The option is referenced via a variable to avoid confusing sed.
20189 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20192 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000020193 (eval echo "\"\$as_me:20193: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020194 (eval "$lt_compile" 2>conftest.err)
20195 ac_status=$?
20196 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000020197 echo "$as_me:20197: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020198 if (exit $ac_status) && test -s "$ac_outfile"; then
20199 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020200 # So say no if there are warnings other than the usual output.
20201 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020204 lt_prog_compiler_pic_works_CXX=yes
20205 fi
20206 fi
20207 $rm conftest*
20208
20209fi
Reid Spencera773bd52006-08-04 18:18:08 +000020210{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20211echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020212
20213if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20214 case $lt_prog_compiler_pic_CXX in
20215 "" | " "*) ;;
20216 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20217 esac
20218else
20219 lt_prog_compiler_pic_CXX=
20220 lt_prog_compiler_can_build_shared_CXX=no
20221fi
20222
20223fi
Reid Spencera773bd52006-08-04 18:18:08 +000020224case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020225 # For platforms which do not support PIC, -DPIC is meaningless:
20226 *djgpp*)
20227 lt_prog_compiler_pic_CXX=
20228 ;;
20229 *)
20230 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20231 ;;
20232esac
20233
Reid Spencera773bd52006-08-04 18:18:08 +000020234#
20235# Check to make sure the static flag actually works.
20236#
20237wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20238{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20239echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20240if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242else
20243 lt_prog_compiler_static_works_CXX=no
20244 save_LDFLAGS="$LDFLAGS"
20245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20246 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20248 # The linker can only warn and ignore the option if not recognized
20249 # So say no if there are warnings
20250 if test -s conftest.err; then
20251 # Append any errors to the config.log.
20252 cat conftest.err 1>&5
20253 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20255 if diff conftest.exp conftest.er2 >/dev/null; then
20256 lt_prog_compiler_static_works_CXX=yes
20257 fi
20258 else
20259 lt_prog_compiler_static_works_CXX=yes
20260 fi
20261 fi
20262 $rm conftest*
20263 LDFLAGS="$save_LDFLAGS"
20264
20265fi
20266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20267echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20268
20269if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20270 :
20271else
20272 lt_prog_compiler_static_CXX=
20273fi
20274
20275
20276{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20277echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020278if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281 lt_cv_prog_compiler_c_o_CXX=no
20282 $rm -r conftest 2>/dev/null
20283 mkdir conftest
20284 cd conftest
20285 mkdir out
20286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20287
John Criswell47fdd832003-07-14 16:52:07 +000020288 lt_compiler_flag="-o out/conftest2.$ac_objext"
20289 # Insert the option either (1) after the last *FLAGS variable, or
20290 # (2) before a word containing "conftest.", or (3) at the end.
20291 # Note that $ac_compile itself does not contain backslashes and begins
20292 # with a dollar sign (not a hyphen), so the echo should work correctly.
20293 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20296 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000020297 (eval echo "\"\$as_me:20297: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020298 (eval "$lt_compile" 2>out/conftest.err)
20299 ac_status=$?
20300 cat out/conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000020301 echo "$as_me:20301: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20303 then
20304 # The compiler can only warn and ignore the option if not recognized
20305 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020306 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020309 lt_cv_prog_compiler_c_o_CXX=yes
20310 fi
20311 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020312 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020313 $rm conftest*
20314 # SGI C++ compiler will create directory out/ii_files/ for
20315 # template instantiation
20316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20317 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020318 cd ..
20319 rmdir conftest
20320 $rm conftest*
20321
20322fi
Reid Spencera773bd52006-08-04 18:18:08 +000020323{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20324echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020325
20326
20327hard_links="nottested"
20328if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20329 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020330 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20331echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020332 hard_links=yes
20333 $rm conftest*
20334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20335 touch conftest.a
20336 ln conftest.a conftest.b 2>&5 || hard_links=no
20337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020338 { echo "$as_me:$LINENO: result: $hard_links" >&5
20339echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020340 if test "$hard_links" = no; then
20341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20342echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20343 need_locks=warn
20344 fi
20345else
20346 need_locks=no
20347fi
20348
Reid Spencera773bd52006-08-04 18:18:08 +000020349{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20350echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020351
20352 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20353 case $host_os in
20354 aix4* | aix5*)
20355 # If we're using GNU nm, then we don't want the "-C" option.
20356 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20357 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20358 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'
20359 else
20360 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'
20361 fi
20362 ;;
20363 pw32*)
20364 export_symbols_cmds_CXX="$ltdll_cmds"
20365 ;;
20366 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020367 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 +000020368 ;;
20369 *)
20370 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20371 ;;
20372 esac
20373
Reid Spencera773bd52006-08-04 18:18:08 +000020374{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20375echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020376test "$ld_shlibs_CXX" = no && can_build_shared=no
20377
John Criswell47fdd832003-07-14 16:52:07 +000020378#
20379# Do we need to explicitly link libc?
20380#
20381case "x$archive_cmds_need_lc_CXX" in
20382x|xyes)
20383 # Assume -lc should be added
20384 archive_cmds_need_lc_CXX=yes
20385
20386 if test "$enable_shared" = yes && test "$GCC" = yes; then
20387 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020388 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020389 # FIXME: we may have to deal with multi-command sequences.
20390 ;;
20391 '$CC '*)
20392 # Test whether the compiler implicitly links with -lc since on some
20393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20394 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020395 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20396echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020397 $rm conftest*
20398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20399
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } 2>conftest.err; then
20405 soname=conftest
20406 lib=conftest
20407 libobjs=conftest.$ac_objext
20408 deplibs=
20409 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020410 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020411 compiler_flags=-v
20412 linker_flags=-v
20413 verstring=
20414 output_objdir=.
20415 libname=conftest
20416 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20417 allow_undefined_flag_CXX=
20418 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20419 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }
20423 then
20424 archive_cmds_need_lc_CXX=no
20425 else
20426 archive_cmds_need_lc_CXX=yes
20427 fi
20428 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20429 else
20430 cat conftest.err 1>&5
20431 fi
20432 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020433 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20434echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020435 ;;
20436 esac
20437 fi
20438 ;;
20439esac
20440
Reid Spencera773bd52006-08-04 18:18:08 +000020441{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20442echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020443library_names_spec=
20444libname_spec='lib$name'
20445soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020446shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020447postinstall_cmds=
20448postuninstall_cmds=
20449finish_cmds=
20450finish_eval=
20451shlibpath_var=
20452shlibpath_overrides_runpath=unknown
20453version_type=none
20454dynamic_linker="$host_os ld.so"
20455sys_lib_dlsearch_path_spec="/lib /usr/lib"
20456if test "$GCC" = yes; then
20457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20458 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20459 # if the path contains ";" then we assume it to be the separator
20460 # otherwise default to the standard path separator (i.e. ":") - it is
20461 # assumed that no part of a normal pathname contains ";" but that should
20462 # okay in the real world where ";" in dirpaths is itself problematic.
20463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20464 else
20465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20466 fi
20467else
20468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20469fi
20470need_lib_prefix=unknown
20471hardcode_into_libs=no
20472
20473# when you set need_version to no, make sure it does not cause -set_version
20474# flags to be left without arguments
20475need_version=unknown
20476
20477case $host_os in
20478aix3*)
20479 version_type=linux
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20481 shlibpath_var=LIBPATH
20482
20483 # AIX 3 has no versioning support, so we append a major version to the name.
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 ;;
20486
20487aix4* | aix5*)
20488 version_type=linux
20489 need_lib_prefix=no
20490 need_version=no
20491 hardcode_into_libs=yes
20492 if test "$host_cpu" = ia64; then
20493 # AIX 5 supports IA64
20494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 else
20497 # With GCC up to 2.95.x, collect2 would create an import file
20498 # for dependence libraries. The import file would start with
20499 # the line `#! .'. This would cause the generated library to
20500 # depend on `.', always an invalid library. This was fixed in
20501 # development snapshots of GCC prior to 3.0.
20502 case $host_os in
20503 aix4 | aix4.[01] | aix4.[01].*)
20504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20505 echo ' yes '
20506 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20507 :
20508 else
20509 can_build_shared=no
20510 fi
20511 ;;
20512 esac
20513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20514 # soname into executable. Probably we can add versioning support to
20515 # collect2, so additional links can be useful in future.
20516 if test "$aix_use_runtimelinking" = yes; then
20517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20518 # instead of lib<name>.a to let people know that these are not
20519 # typical AIX shared libraries.
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521 else
20522 # We preserve .a as extension for shared libraries through AIX4.2
20523 # and later when we are not doing run time linking.
20524 library_names_spec='${libname}${release}.a $libname.a'
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 fi
20527 shlibpath_var=LIBPATH
20528 fi
20529 ;;
20530
20531amigaos*)
20532 library_names_spec='$libname.ixlibrary $libname.a'
20533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020534 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 +000020535 ;;
20536
20537beos*)
20538 library_names_spec='${libname}${shared_ext}'
20539 dynamic_linker="$host_os ld.so"
20540 shlibpath_var=LIBRARY_PATH
20541 ;;
20542
Reid Spencer2706f8c2004-09-19 23:53:36 +000020543bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020544 version_type=linux
20545 need_version=no
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20552 # the default ld.so.conf also contains /usr/contrib/lib and
20553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20554 # libtool to hard-code these into programs
20555 ;;
20556
20557cygwin* | mingw* | pw32*)
20558 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020559 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020560 need_version=no
20561 need_lib_prefix=no
20562
20563 case $GCC,$host_os in
20564 yes,cygwin* | yes,mingw* | yes,pw32*)
20565 library_names_spec='$libname.dll.a'
20566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020567 postinstall_cmds='base_file=`basename \${file}`~
20568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20569 dldir=$destdir/`dirname \$dlpath`~
20570 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020571 $install_prog $dir/$dlname \$dldir/$dlname~
20572 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20574 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020575 $rm \$dlpath'
20576 shlibpath_overrides_runpath=yes
20577
20578 case $host_os in
20579 cygwin*)
20580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20581 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 +000020582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020583 ;;
20584 mingw*)
20585 # MinGW DLLs use traditional 'lib' prefix
20586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20588 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20589 # It is most probably a Windows format PATH printed by
20590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20591 # path with ; separators, and with drive letters. We can handle the
20592 # drive letters (cygwin fileutils understands them), so leave them,
20593 # especially as we might pass files found there to a mingw objdump,
20594 # which wouldn't understand a cygwinified path. Ahh.
20595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20596 else
20597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20598 fi
20599 ;;
20600 pw32*)
20601 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020602 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 +000020603 ;;
20604 esac
20605 ;;
20606
20607 *)
20608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20609 ;;
20610 esac
20611 dynamic_linker='Win32 ld.exe'
20612 # FIXME: first we should search . and the directory the executable is in
20613 shlibpath_var=PATH
20614 ;;
20615
20616darwin* | rhapsody*)
20617 dynamic_linker="$host_os dyld"
20618 version_type=darwin
20619 need_lib_prefix=no
20620 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020621 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020622 soname_spec='${libname}${release}${major}$shared_ext'
20623 shlibpath_overrides_runpath=yes
20624 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020625 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020626 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627 if test "$GCC" = yes; then
20628 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"`
20629 else
20630 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020631 fi
20632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20633 ;;
20634
20635dgux*)
20636 version_type=linux
20637 need_lib_prefix=no
20638 need_version=no
20639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20640 soname_spec='${libname}${release}${shared_ext}$major'
20641 shlibpath_var=LD_LIBRARY_PATH
20642 ;;
20643
20644freebsd1*)
20645 dynamic_linker=no
20646 ;;
20647
Reid Spencer2706f8c2004-09-19 23:53:36 +000020648kfreebsd*-gnu)
20649 version_type=linux
20650 need_lib_prefix=no
20651 need_version=no
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20653 soname_spec='${libname}${release}${shared_ext}$major'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 shlibpath_overrides_runpath=no
20656 hardcode_into_libs=yes
20657 dynamic_linker='GNU ld.so'
20658 ;;
20659
Reid Spencera773bd52006-08-04 18:18:08 +000020660freebsd* | dragonfly*)
20661 # DragonFly does not have aout. When/if they implement a new
20662 # versioning mechanism, adjust this.
20663 if test -x /usr/bin/objformat; then
20664 objformat=`/usr/bin/objformat`
20665 else
20666 case $host_os in
20667 freebsd[123]*) objformat=aout ;;
20668 *) objformat=elf ;;
20669 esac
20670 fi
John Criswell47fdd832003-07-14 16:52:07 +000020671 version_type=freebsd-$objformat
20672 case $version_type in
20673 freebsd-elf*)
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20675 need_version=no
20676 need_lib_prefix=no
20677 ;;
20678 freebsd-*)
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20680 need_version=yes
20681 ;;
20682 esac
20683 shlibpath_var=LD_LIBRARY_PATH
20684 case $host_os in
20685 freebsd2*)
20686 shlibpath_overrides_runpath=yes
20687 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020688 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020692 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20693 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020694 shlibpath_overrides_runpath=no
20695 hardcode_into_libs=yes
20696 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020697 freebsd*) # from 4.6 on
20698 shlibpath_overrides_runpath=yes
20699 hardcode_into_libs=yes
20700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020701 esac
20702 ;;
20703
20704gnu*)
20705 version_type=linux
20706 need_lib_prefix=no
20707 need_version=no
20708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 shlibpath_var=LD_LIBRARY_PATH
20711 hardcode_into_libs=yes
20712 ;;
20713
20714hpux9* | hpux10* | hpux11*)
20715 # Give a soname corresponding to the major version so that dld.sl refuses to
20716 # link against other versions.
20717 version_type=sunos
20718 need_lib_prefix=no
20719 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020720 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020721 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020722 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020723 hardcode_into_libs=yes
20724 dynamic_linker="$host_os dld.so"
20725 shlibpath_var=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 if test "X$HPUX_IA64_MODE" = X32; then
20730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20731 else
20732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20733 fi
20734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20735 ;;
20736 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020738 hardcode_into_libs=yes
20739 dynamic_linker="$host_os dld.sl"
20740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 soname_spec='${libname}${release}${shared_ext}$major'
20744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20746 ;;
20747 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020748 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020749 dynamic_linker="$host_os dld.sl"
20750 shlibpath_var=SHLIB_PATH
20751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753 soname_spec='${libname}${release}${shared_ext}$major'
20754 ;;
20755 esac
20756 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20757 postinstall_cmds='chmod 555 $lib'
20758 ;;
20759
Reid Spencera773bd52006-08-04 18:18:08 +000020760interix3*)
20761 version_type=linux
20762 need_lib_prefix=no
20763 need_version=no
20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath=no
20769 hardcode_into_libs=yes
20770 ;;
20771
John Criswell47fdd832003-07-14 16:52:07 +000020772irix5* | irix6* | nonstopux*)
20773 case $host_os in
20774 nonstopux*) version_type=nonstopux ;;
20775 *)
20776 if test "$lt_cv_prog_gnu_ld" = yes; then
20777 version_type=linux
20778 else
20779 version_type=irix
20780 fi ;;
20781 esac
20782 need_lib_prefix=no
20783 need_version=no
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20786 case $host_os in
20787 irix5* | nonstopux*)
20788 libsuff= shlibsuff=
20789 ;;
20790 *)
20791 case $LD in # libtool.m4 will add one of these switches to LD
20792 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20793 libsuff= shlibsuff= libmagic=32-bit;;
20794 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20795 libsuff=32 shlibsuff=N32 libmagic=N32;;
20796 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20797 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20798 *) libsuff= shlibsuff= libmagic=never-match;;
20799 esac
20800 ;;
20801 esac
20802 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20803 shlibpath_overrides_runpath=no
20804 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20805 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20806 hardcode_into_libs=yes
20807 ;;
20808
20809# No shared lib support for Linux oldld, aout, or coff.
20810linux*oldld* | linux*aout* | linux*coff*)
20811 dynamic_linker=no
20812 ;;
20813
20814# This must be Linux ELF.
20815linux*)
20816 version_type=linux
20817 need_lib_prefix=no
20818 need_version=no
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820 soname_spec='${libname}${release}${shared_ext}$major'
20821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 shlibpath_overrides_runpath=no
20824 # This implies no fast_install, which is unacceptable.
20825 # Some rework will be needed to allow for fast_install
20826 # before this can be enabled.
20827 hardcode_into_libs=yes
20828
Reid Spencer2706f8c2004-09-19 23:53:36 +000020829 # Append ld.so.conf contents to the search path
20830 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020831 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 +000020832 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20833 fi
20834
John Criswell47fdd832003-07-14 16:52:07 +000020835 # We used to test for /lib/ld.so.1 and disable shared libraries on
20836 # powerpc, because MkLinux only supported shared libraries with the
20837 # GNU dynamic linker. Since this was broken with cross compilers,
20838 # most powerpc-linux boxes support dynamic linking these days and
20839 # people can always --disable-shared, the test was removed, and we
20840 # assume the GNU/Linux dynamic linker is in use.
20841 dynamic_linker='GNU/Linux ld.so'
20842 ;;
20843
Reid Spencer2706f8c2004-09-19 23:53:36 +000020844knetbsd*-gnu)
20845 version_type=linux
20846 need_lib_prefix=no
20847 need_version=no
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 shlibpath_var=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath=no
20852 hardcode_into_libs=yes
20853 dynamic_linker='GNU ld.so'
20854 ;;
20855
John Criswell47fdd832003-07-14 16:52:07 +000020856netbsd*)
20857 version_type=sunos
20858 need_lib_prefix=no
20859 need_version=no
20860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20863 dynamic_linker='NetBSD (a.out) ld.so'
20864 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020866 soname_spec='${libname}${release}${shared_ext}$major'
20867 dynamic_linker='NetBSD ld.elf_so'
20868 fi
20869 shlibpath_var=LD_LIBRARY_PATH
20870 shlibpath_overrides_runpath=yes
20871 hardcode_into_libs=yes
20872 ;;
20873
20874newsos6)
20875 version_type=linux
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20877 shlibpath_var=LD_LIBRARY_PATH
20878 shlibpath_overrides_runpath=yes
20879 ;;
20880
Reid Spencer2706f8c2004-09-19 23:53:36 +000020881nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020882 version_type=linux
20883 need_lib_prefix=no
20884 need_version=no
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20886 soname_spec='${libname}${release}${shared_ext}$major'
20887 shlibpath_var=LD_LIBRARY_PATH
20888 shlibpath_overrides_runpath=yes
20889 ;;
20890
20891openbsd*)
20892 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020893 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020894 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20896 case $host_os in
20897 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20898 *) need_version=no ;;
20899 esac
John Criswell47fdd832003-07-14 16:52:07 +000020900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20902 shlibpath_var=LD_LIBRARY_PATH
20903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20904 case $host_os in
20905 openbsd2.[89] | openbsd2.[89].*)
20906 shlibpath_overrides_runpath=no
20907 ;;
20908 *)
20909 shlibpath_overrides_runpath=yes
20910 ;;
20911 esac
20912 else
20913 shlibpath_overrides_runpath=yes
20914 fi
20915 ;;
20916
20917os2*)
20918 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020919 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020920 need_lib_prefix=no
20921 library_names_spec='$libname${shared_ext} $libname.a'
20922 dynamic_linker='OS/2 ld.exe'
20923 shlibpath_var=LIBPATH
20924 ;;
20925
20926osf3* | osf4* | osf5*)
20927 version_type=osf
20928 need_lib_prefix=no
20929 need_version=no
20930 soname_spec='${libname}${release}${shared_ext}$major'
20931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932 shlibpath_var=LD_LIBRARY_PATH
20933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20935 ;;
20936
John Criswell47fdd832003-07-14 16:52:07 +000020937solaris*)
20938 version_type=linux
20939 need_lib_prefix=no
20940 need_version=no
20941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 soname_spec='${libname}${release}${shared_ext}$major'
20943 shlibpath_var=LD_LIBRARY_PATH
20944 shlibpath_overrides_runpath=yes
20945 hardcode_into_libs=yes
20946 # ldd complains unless libraries are executable
20947 postinstall_cmds='chmod +x $lib'
20948 ;;
20949
20950sunos4*)
20951 version_type=sunos
20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20954 shlibpath_var=LD_LIBRARY_PATH
20955 shlibpath_overrides_runpath=yes
20956 if test "$with_gnu_ld" = yes; then
20957 need_lib_prefix=no
20958 fi
20959 need_version=yes
20960 ;;
20961
Reid Spencera773bd52006-08-04 18:18:08 +000020962sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020963 version_type=linux
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 case $host_vendor in
20968 sni)
20969 shlibpath_overrides_runpath=no
20970 need_lib_prefix=no
20971 export_dynamic_flag_spec='${wl}-Blargedynsym'
20972 runpath_var=LD_RUN_PATH
20973 ;;
20974 siemens)
20975 need_lib_prefix=no
20976 ;;
20977 motorola)
20978 need_lib_prefix=no
20979 need_version=no
20980 shlibpath_overrides_runpath=no
20981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20982 ;;
20983 esac
20984 ;;
20985
20986sysv4*MP*)
20987 if test -d /usr/nec ;then
20988 version_type=linux
20989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20990 soname_spec='$libname${shared_ext}.$major'
20991 shlibpath_var=LD_LIBRARY_PATH
20992 fi
20993 ;;
20994
Reid Spencera773bd52006-08-04 18:18:08 +000020995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20996 version_type=freebsd-elf
20997 need_lib_prefix=no
20998 need_version=no
20999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21000 soname_spec='${libname}${release}${shared_ext}$major'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 hardcode_into_libs=yes
21003 if test "$with_gnu_ld" = yes; then
21004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21005 shlibpath_overrides_runpath=no
21006 else
21007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21008 shlibpath_overrides_runpath=yes
21009 case $host_os in
21010 sco3.2v5*)
21011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21012 ;;
21013 esac
21014 fi
21015 sys_lib_dlsearch_path_spec='/usr/lib'
21016 ;;
21017
John Criswell47fdd832003-07-14 16:52:07 +000021018uts4*)
21019 version_type=linux
21020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21021 soname_spec='${libname}${release}${shared_ext}$major'
21022 shlibpath_var=LD_LIBRARY_PATH
21023 ;;
21024
21025*)
21026 dynamic_linker=no
21027 ;;
21028esac
Reid Spencera773bd52006-08-04 18:18:08 +000021029{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21030echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021031test "$dynamic_linker" = no && can_build_shared=no
21032
Reid Spencera773bd52006-08-04 18:18:08 +000021033variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21034if test "$GCC" = yes; then
21035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21036fi
21037
21038{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21039echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021040hardcode_action_CXX=
21041if test -n "$hardcode_libdir_flag_spec_CXX" || \
21042 test -n "$runpath_var_CXX" || \
21043 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21044
21045 # We can hardcode non-existant directories.
21046 if test "$hardcode_direct_CXX" != no &&
21047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21048 # have to relink, otherwise we might link with an installed library
21049 # when we should be linking with a yet-to-be-installed one
21050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21051 test "$hardcode_minus_L_CXX" != no; then
21052 # Linking always hardcodes the temporary library directory.
21053 hardcode_action_CXX=relink
21054 else
21055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21056 hardcode_action_CXX=immediate
21057 fi
21058else
21059 # We cannot hardcode anything, or else we can only hardcode existing
21060 # directories.
21061 hardcode_action_CXX=unsupported
21062fi
Reid Spencera773bd52006-08-04 18:18:08 +000021063{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21064echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021065
21066if test "$hardcode_action_CXX" = relink; then
21067 # Fast installation is not supported
21068 enable_fast_install=no
21069elif test "$shlibpath_overrides_runpath" = yes ||
21070 test "$enable_shared" = no; then
21071 # Fast installation is not necessary
21072 enable_fast_install=needless
21073fi
21074
John Criswell47fdd832003-07-14 16:52:07 +000021075
21076# The else clause should only fire when bootstrapping the
21077# libtool distribution, otherwise you forgot to ship ltmain.sh
21078# with your package, and you will get complaints that there are
21079# no rules to generate ltmain.sh.
21080if test -f "$ltmain"; then
21081 # See if we are running on zsh, and set the options which allow our commands through
21082 # without removal of \ escapes.
21083 if test -n "${ZSH_VERSION+set}" ; then
21084 setopt NO_GLOB_SUBST
21085 fi
21086 # Now quote all the things that may contain metacharacters while being
21087 # careful not to overquote the AC_SUBSTed values. We take copies of the
21088 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021089 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 +000021090 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21093 deplibs_check_method reload_flag reload_cmds need_locks \
21094 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21095 lt_cv_sys_global_symbol_to_c_name_address \
21096 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21097 old_postinstall_cmds old_postuninstall_cmds \
21098 compiler_CXX \
21099 CC_CXX \
21100 LD_CXX \
21101 lt_prog_compiler_wl_CXX \
21102 lt_prog_compiler_pic_CXX \
21103 lt_prog_compiler_static_CXX \
21104 lt_prog_compiler_no_builtin_flag_CXX \
21105 export_dynamic_flag_spec_CXX \
21106 thread_safe_flag_spec_CXX \
21107 whole_archive_flag_spec_CXX \
21108 enable_shared_with_static_runtimes_CXX \
21109 old_archive_cmds_CXX \
21110 old_archive_from_new_cmds_CXX \
21111 predep_objects_CXX \
21112 postdep_objects_CXX \
21113 predeps_CXX \
21114 postdeps_CXX \
21115 compiler_lib_search_path_CXX \
21116 archive_cmds_CXX \
21117 archive_expsym_cmds_CXX \
21118 postinstall_cmds_CXX \
21119 postuninstall_cmds_CXX \
21120 old_archive_from_expsyms_cmds_CXX \
21121 allow_undefined_flag_CXX \
21122 no_undefined_flag_CXX \
21123 export_symbols_cmds_CXX \
21124 hardcode_libdir_flag_spec_CXX \
21125 hardcode_libdir_flag_spec_ld_CXX \
21126 hardcode_libdir_separator_CXX \
21127 hardcode_automatic_CXX \
21128 module_cmds_CXX \
21129 module_expsym_cmds_CXX \
21130 lt_cv_prog_compiler_c_o_CXX \
21131 exclude_expsyms_CXX \
21132 include_expsyms_CXX; do
21133
21134 case $var in
21135 old_archive_cmds_CXX | \
21136 old_archive_from_new_cmds_CXX | \
21137 archive_cmds_CXX | \
21138 archive_expsym_cmds_CXX | \
21139 module_cmds_CXX | \
21140 module_expsym_cmds_CXX | \
21141 old_archive_from_expsyms_cmds_CXX | \
21142 export_symbols_cmds_CXX | \
21143 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21144 postinstall_cmds | postuninstall_cmds | \
21145 old_postinstall_cmds | old_postuninstall_cmds | \
21146 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21147 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021148 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 +000021149 ;;
21150 *)
21151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21152 ;;
21153 esac
21154 done
21155
21156 case $lt_echo in
21157 *'\$0 --fallback-echo"')
21158 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21159 ;;
21160 esac
21161
21162cfgfile="$ofile"
21163
21164 cat <<__EOF__ >> "$cfgfile"
21165# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21166
21167# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21168
21169# Shell to use when invoking shell scripts.
21170SHELL=$lt_SHELL
21171
21172# Whether or not to build shared libraries.
21173build_libtool_libs=$enable_shared
21174
21175# Whether or not to build static libraries.
21176build_old_libs=$enable_static
21177
21178# Whether or not to add -lc for building shared libraries.
21179build_libtool_need_lc=$archive_cmds_need_lc_CXX
21180
21181# Whether or not to disallow shared libs when runtime libs are static
21182allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21183
21184# Whether or not to optimize for fast installation.
21185fast_install=$enable_fast_install
21186
21187# The host system.
21188host_alias=$host_alias
21189host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021190host_os=$host_os
21191
21192# The build system.
21193build_alias=$build_alias
21194build=$build
21195build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021196
21197# An echo program that does not interpret backslashes.
21198echo=$lt_echo
21199
21200# The archiver.
21201AR=$lt_AR
21202AR_FLAGS=$lt_AR_FLAGS
21203
21204# A C compiler.
21205LTCC=$lt_LTCC
21206
Reid Spencera773bd52006-08-04 18:18:08 +000021207# LTCC compiler flags.
21208LTCFLAGS=$lt_LTCFLAGS
21209
John Criswell47fdd832003-07-14 16:52:07 +000021210# A language-specific compiler.
21211CC=$lt_compiler_CXX
21212
21213# Is the compiler the GNU C compiler?
21214with_gcc=$GCC_CXX
21215
21216# An ERE matcher.
21217EGREP=$lt_EGREP
21218
21219# The linker used to build libraries.
21220LD=$lt_LD_CXX
21221
21222# Whether we need hard or soft links.
21223LN_S=$lt_LN_S
21224
21225# A BSD-compatible nm program.
21226NM=$lt_NM
21227
21228# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021229STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021230
21231# Used to examine libraries when file_magic_cmd begins "file"
21232MAGIC_CMD=$MAGIC_CMD
21233
21234# Used on cygwin: DLL creation program.
21235DLLTOOL="$DLLTOOL"
21236
21237# Used on cygwin: object dumper.
21238OBJDUMP="$OBJDUMP"
21239
21240# Used on cygwin: assembler.
21241AS="$AS"
21242
21243# The name of the directory that contains temporary libtool files.
21244objdir=$objdir
21245
21246# How to create reloadable object files.
21247reload_flag=$lt_reload_flag
21248reload_cmds=$lt_reload_cmds
21249
21250# How to pass a linker flag through the compiler.
21251wl=$lt_lt_prog_compiler_wl_CXX
21252
21253# Object file suffix (normally "o").
21254objext="$ac_objext"
21255
21256# Old archive suffix (normally "a").
21257libext="$libext"
21258
21259# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021260shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021261
21262# Executable file suffix (normally "").
21263exeext="$exeext"
21264
21265# Additional compiler flags for building library objects.
21266pic_flag=$lt_lt_prog_compiler_pic_CXX
21267pic_mode=$pic_mode
21268
21269# What is the maximum length of a command?
21270max_cmd_len=$lt_cv_sys_max_cmd_len
21271
21272# Does compiler simultaneously support -c and -o options?
21273compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21274
Reid Spencera773bd52006-08-04 18:18:08 +000021275# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021276need_locks=$lt_need_locks
21277
21278# Do we need the lib prefix for modules?
21279need_lib_prefix=$need_lib_prefix
21280
21281# Do we need a version for libraries?
21282need_version=$need_version
21283
21284# Whether dlopen is supported.
21285dlopen_support=$enable_dlopen
21286
21287# Whether dlopen of programs is supported.
21288dlopen_self=$enable_dlopen_self
21289
21290# Whether dlopen of statically linked programs is supported.
21291dlopen_self_static=$enable_dlopen_self_static
21292
21293# Compiler flag to prevent dynamic linking.
21294link_static_flag=$lt_lt_prog_compiler_static_CXX
21295
21296# Compiler flag to turn off builtin functions.
21297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21298
21299# Compiler flag to allow reflexive dlopens.
21300export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21301
21302# Compiler flag to generate shared objects directly from archives.
21303whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21304
21305# Compiler flag to generate thread-safe objects.
21306thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21307
21308# Library versioning type.
21309version_type=$version_type
21310
21311# Format of library name prefix.
21312libname_spec=$lt_libname_spec
21313
21314# List of archive names. First name is the real one, the rest are links.
21315# The last name is the one that the linker finds with -lNAME.
21316library_names_spec=$lt_library_names_spec
21317
21318# The coded name of the library, if different from the real name.
21319soname_spec=$lt_soname_spec
21320
21321# Commands used to build and install an old-style archive.
21322RANLIB=$lt_RANLIB
21323old_archive_cmds=$lt_old_archive_cmds_CXX
21324old_postinstall_cmds=$lt_old_postinstall_cmds
21325old_postuninstall_cmds=$lt_old_postuninstall_cmds
21326
21327# Create an old-style archive from a shared archive.
21328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21329
21330# Create a temporary old-style archive to link instead of a shared archive.
21331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21332
21333# Commands used to build and install a shared archive.
21334archive_cmds=$lt_archive_cmds_CXX
21335archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21336postinstall_cmds=$lt_postinstall_cmds
21337postuninstall_cmds=$lt_postuninstall_cmds
21338
21339# Commands used to build a loadable module (assumed same as above if empty)
21340module_cmds=$lt_module_cmds_CXX
21341module_expsym_cmds=$lt_module_expsym_cmds_CXX
21342
21343# Commands to strip libraries.
21344old_striplib=$lt_old_striplib
21345striplib=$lt_striplib
21346
21347# Dependencies to place before the objects being linked to create a
21348# shared library.
21349predep_objects=$lt_predep_objects_CXX
21350
21351# Dependencies to place after the objects being linked to create a
21352# shared library.
21353postdep_objects=$lt_postdep_objects_CXX
21354
21355# Dependencies to place before the objects being linked to create a
21356# shared library.
21357predeps=$lt_predeps_CXX
21358
21359# Dependencies to place after the objects being linked to create a
21360# shared library.
21361postdeps=$lt_postdeps_CXX
21362
21363# The library search path used internally by the compiler when linking
21364# a shared library.
21365compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21366
21367# Method to check whether dependent libraries are shared objects.
21368deplibs_check_method=$lt_deplibs_check_method
21369
21370# Command to use when deplibs_check_method == file_magic.
21371file_magic_cmd=$lt_file_magic_cmd
21372
21373# Flag that allows shared libraries with undefined symbols to be built.
21374allow_undefined_flag=$lt_allow_undefined_flag_CXX
21375
21376# Flag that forces no undefined symbols.
21377no_undefined_flag=$lt_no_undefined_flag_CXX
21378
21379# Commands used to finish a libtool library installation in a directory.
21380finish_cmds=$lt_finish_cmds
21381
21382# Same as above, but a single script fragment to be evaled but not shown.
21383finish_eval=$lt_finish_eval
21384
21385# Take the output of nm and produce a listing of raw symbols and C names.
21386global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21387
21388# Transform the output of nm in a proper C declaration
21389global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21390
21391# Transform the output of nm in a C name address pair
21392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21393
21394# This is the shared library runtime path variable.
21395runpath_var=$runpath_var
21396
21397# This is the shared library path variable.
21398shlibpath_var=$shlibpath_var
21399
21400# Is shlibpath searched before the hard-coded library search path?
21401shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21402
21403# How to hardcode a shared library path into an executable.
21404hardcode_action=$hardcode_action_CXX
21405
21406# Whether we should hardcode library paths into libraries.
21407hardcode_into_libs=$hardcode_into_libs
21408
21409# Flag to hardcode \$libdir into a binary during linking.
21410# This must work even if \$libdir does not exist.
21411hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21412
21413# If ld is used when linking, flag to hardcode \$libdir into
21414# a binary during linking. This must work even if \$libdir does
21415# not exist.
21416hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21417
21418# Whether we need a single -rpath flag with a separated argument.
21419hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21420
21421# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21422# resulting binary.
21423hardcode_direct=$hardcode_direct_CXX
21424
21425# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21426# resulting binary.
21427hardcode_minus_L=$hardcode_minus_L_CXX
21428
21429# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21430# the resulting binary.
21431hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21432
21433# Set to yes if building a shared library automatically hardcodes DIR into the library
21434# and all subsequent libraries and executables linked against it.
21435hardcode_automatic=$hardcode_automatic_CXX
21436
21437# Variables whose values should be saved in libtool wrapper scripts and
21438# restored at relink time.
21439variables_saved_for_relink="$variables_saved_for_relink"
21440
21441# Whether libtool must link a program against all its dependency libraries.
21442link_all_deplibs=$link_all_deplibs_CXX
21443
21444# Compile-time system search path for libraries
21445sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21446
21447# Run-time system search path for libraries
21448sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21449
21450# Fix the shell variable \$srcfile for the compiler.
21451fix_srcfile_path="$fix_srcfile_path_CXX"
21452
21453# Set to yes if exported symbols are required.
21454always_export_symbols=$always_export_symbols_CXX
21455
21456# The commands to list exported symbols.
21457export_symbols_cmds=$lt_export_symbols_cmds_CXX
21458
21459# The commands to extract the exported symbol list from a shared archive.
21460extract_expsyms_cmds=$lt_extract_expsyms_cmds
21461
21462# Symbols that should not be listed in the preloaded symbols.
21463exclude_expsyms=$lt_exclude_expsyms_CXX
21464
21465# Symbols that must always be exported.
21466include_expsyms=$lt_include_expsyms_CXX
21467
21468# ### END LIBTOOL TAG CONFIG: $tagname
21469
21470__EOF__
21471
21472
21473else
21474 # If there is no Makefile yet, we rely on a make rule to execute
21475 # `config.status --recheck' to rerun these tests and create the
21476 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21478 if test -f "$ltmain_in"; then
21479 test -f Makefile && make "$ltmain"
21480 fi
John Criswell47fdd832003-07-14 16:52:07 +000021481fi
21482
21483
21484ac_ext=c
21485ac_cpp='$CPP $CPPFLAGS'
21486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490CC=$lt_save_CC
21491LDCXX=$LD
21492LD=$lt_save_LD
21493GCC=$lt_save_GCC
21494with_gnu_ldcxx=$with_gnu_ld
21495with_gnu_ld=$lt_save_with_gnu_ld
21496lt_cv_path_LDCXX=$lt_cv_path_LD
21497lt_cv_path_LD=$lt_save_path_LD
21498lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21499lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21500
21501 else
21502 tagname=""
21503 fi
21504 ;;
21505
21506 F77)
21507 if test -n "$F77" && test "X$F77" != "Xno"; then
21508
21509ac_ext=f
21510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21513
21514
21515archive_cmds_need_lc_F77=no
21516allow_undefined_flag_F77=
21517always_export_symbols_F77=no
21518archive_expsym_cmds_F77=
21519export_dynamic_flag_spec_F77=
21520hardcode_direct_F77=no
21521hardcode_libdir_flag_spec_F77=
21522hardcode_libdir_flag_spec_ld_F77=
21523hardcode_libdir_separator_F77=
21524hardcode_minus_L_F77=no
21525hardcode_automatic_F77=no
21526module_cmds_F77=
21527module_expsym_cmds_F77=
21528link_all_deplibs_F77=unknown
21529old_archive_cmds_F77=$old_archive_cmds
21530no_undefined_flag_F77=
21531whole_archive_flag_spec_F77=
21532enable_shared_with_static_runtimes_F77=no
21533
21534# Source file extension for f77 test sources.
21535ac_ext=f
21536
21537# Object file extension for compiled f77 test sources.
21538objext=o
21539objext_F77=$objext
21540
21541# Code to be used in simple compile tests
21542lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21543
21544# Code to be used in simple link tests
21545lt_simple_link_test_code=" program t\n end\n"
21546
21547# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21548
21549# If no C compiler was specified, use CC.
21550LTCC=${LTCC-"$CC"}
21551
Reid Spencera773bd52006-08-04 18:18:08 +000021552# If no C compiler flags were specified, use CFLAGS.
21553LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21554
John Criswell47fdd832003-07-14 16:52:07 +000021555# Allow CC to be a program name with arguments.
21556compiler=$CC
21557
21558
Reid Spencera773bd52006-08-04 18:18:08 +000021559# save warnings/boilerplate of simple test code
21560ac_outfile=conftest.$ac_objext
21561printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21563_lt_compiler_boilerplate=`cat conftest.err`
21564$rm conftest*
21565
21566ac_outfile=conftest.$ac_objext
21567printf "$lt_simple_link_test_code" >conftest.$ac_ext
21568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21569_lt_linker_boilerplate=`cat conftest.err`
21570$rm conftest*
21571
21572
John Criswell47fdd832003-07-14 16:52:07 +000021573# Allow CC to be a program name with arguments.
21574lt_save_CC="$CC"
21575CC=${F77-"f77"}
21576compiler=$CC
21577compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021578for cc_temp in $compiler""; do
21579 case $cc_temp in
21580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21582 \-*) ;;
21583 *) break;;
21584 esac
21585done
21586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021587
John Criswell47fdd832003-07-14 16:52:07 +000021588
Reid Spencera773bd52006-08-04 18:18:08 +000021589{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21590echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21591{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21592echo "${ECHO_T}$can_build_shared" >&6; }
21593
21594{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21595echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021596test "$can_build_shared" = "no" && enable_shared=no
21597
21598# On AIX, shared libraries and static libraries use the same namespace, and
21599# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021600case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021601aix3*)
21602 test "$enable_shared" = yes && enable_static=no
21603 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021604 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021605 postinstall_cmds='$RANLIB $lib'
21606 fi
21607 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021608aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21610 test "$enable_shared" = yes && enable_static=no
21611 fi
John Criswell47fdd832003-07-14 16:52:07 +000021612 ;;
21613esac
Reid Spencera773bd52006-08-04 18:18:08 +000021614{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21615echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021616
Reid Spencera773bd52006-08-04 18:18:08 +000021617{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21618echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021619# Make sure either enable_shared or enable_static is yes.
21620test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021621{ echo "$as_me:$LINENO: result: $enable_static" >&5
21622echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021623
21624GCC_F77="$G77"
21625LD_F77="$LD"
21626
21627lt_prog_compiler_wl_F77=
21628lt_prog_compiler_pic_F77=
21629lt_prog_compiler_static_F77=
21630
Reid Spencera773bd52006-08-04 18:18:08 +000021631{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21632echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021633
21634 if test "$GCC" = yes; then
21635 lt_prog_compiler_wl_F77='-Wl,'
21636 lt_prog_compiler_static_F77='-static'
21637
21638 case $host_os in
21639 aix*)
21640 # All AIX code is PIC.
21641 if test "$host_cpu" = ia64; then
21642 # AIX 5 now supports IA64 processor
21643 lt_prog_compiler_static_F77='-Bstatic'
21644 fi
21645 ;;
21646
21647 amigaos*)
21648 # FIXME: we need at least 68020 code to build shared libraries, but
21649 # adding the `-m68020' flag to GCC prevents building anything better,
21650 # like `-m68040'.
21651 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21652 ;;
21653
21654 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21655 # PIC is the default for these OSes.
21656 ;;
21657
21658 mingw* | pw32* | os2*)
21659 # This hack is so that the source file can tell whether it is being
21660 # built for inclusion in a dll (and should export symbols for example).
21661 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21662 ;;
21663
21664 darwin* | rhapsody*)
21665 # PIC is the default on this platform
21666 # Common symbols not allowed in MH_DYLIB files
21667 lt_prog_compiler_pic_F77='-fno-common'
21668 ;;
21669
Reid Spencera773bd52006-08-04 18:18:08 +000021670 interix3*)
21671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21672 # Instead, we relocate shared libraries at runtime.
21673 ;;
21674
John Criswell47fdd832003-07-14 16:52:07 +000021675 msdosdjgpp*)
21676 # Just because we use GCC doesn't mean we suddenly get shared libraries
21677 # on systems that don't support them.
21678 lt_prog_compiler_can_build_shared_F77=no
21679 enable_shared=no
21680 ;;
21681
21682 sysv4*MP*)
21683 if test -d /usr/nec; then
21684 lt_prog_compiler_pic_F77=-Kconform_pic
21685 fi
21686 ;;
21687
21688 hpux*)
21689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21690 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021691 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021692 hppa*64*|ia64*)
21693 # +Z the default
21694 ;;
21695 *)
21696 lt_prog_compiler_pic_F77='-fPIC'
21697 ;;
21698 esac
21699 ;;
21700
21701 *)
21702 lt_prog_compiler_pic_F77='-fPIC'
21703 ;;
21704 esac
21705 else
21706 # PORTME Check for flag to pass linker flags through the system compiler.
21707 case $host_os in
21708 aix*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 if test "$host_cpu" = ia64; then
21711 # AIX 5 now supports IA64 processor
21712 lt_prog_compiler_static_F77='-Bstatic'
21713 else
21714 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21715 fi
21716 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021717 darwin*)
21718 # PIC is the default on this platform
21719 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021720 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021721 xlc*)
21722 lt_prog_compiler_pic_F77='-qnocommon'
21723 lt_prog_compiler_wl_F77='-Wl,'
21724 ;;
21725 esac
21726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021727
21728 mingw* | pw32* | os2*)
21729 # This hack is so that the source file can tell whether it is being
21730 # built for inclusion in a dll (and should export symbols for example).
21731 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21732 ;;
21733
21734 hpux9* | hpux10* | hpux11*)
21735 lt_prog_compiler_wl_F77='-Wl,'
21736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021738 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021739 hppa*64*|ia64*)
21740 # +Z the default
21741 ;;
21742 *)
21743 lt_prog_compiler_pic_F77='+Z'
21744 ;;
21745 esac
21746 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21747 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21748 ;;
21749
21750 irix5* | irix6* | nonstopux*)
21751 lt_prog_compiler_wl_F77='-Wl,'
21752 # PIC (with -KPIC) is the default.
21753 lt_prog_compiler_static_F77='-non_shared'
21754 ;;
21755
21756 newsos6)
21757 lt_prog_compiler_pic_F77='-KPIC'
21758 lt_prog_compiler_static_F77='-Bstatic'
21759 ;;
21760
21761 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021762 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021763 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021764 lt_prog_compiler_wl_F77='-Wl,'
21765 lt_prog_compiler_pic_F77='-KPIC'
21766 lt_prog_compiler_static_F77='-static'
21767 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021768 pgcc* | pgf77* | pgf90* | pgf95*)
21769 # Portland Group compilers (*not* the Pentium gcc compiler,
21770 # which looks to be a dead project)
21771 lt_prog_compiler_wl_F77='-Wl,'
21772 lt_prog_compiler_pic_F77='-fpic'
21773 lt_prog_compiler_static_F77='-Bstatic'
21774 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021775 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021776 lt_prog_compiler_wl_F77='-Wl,'
21777 # All Alpha code is PIC.
21778 lt_prog_compiler_static_F77='-non_shared'
21779 ;;
21780 esac
21781 ;;
21782
21783 osf3* | osf4* | osf5*)
21784 lt_prog_compiler_wl_F77='-Wl,'
21785 # All OSF/1 code is PIC.
21786 lt_prog_compiler_static_F77='-non_shared'
21787 ;;
21788
John Criswell47fdd832003-07-14 16:52:07 +000021789 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021790 lt_prog_compiler_pic_F77='-KPIC'
21791 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021792 case $cc_basename in
21793 f77* | f90* | f95*)
21794 lt_prog_compiler_wl_F77='-Qoption ld ';;
21795 *)
21796 lt_prog_compiler_wl_F77='-Wl,';;
21797 esac
John Criswell47fdd832003-07-14 16:52:07 +000021798 ;;
21799
21800 sunos4*)
21801 lt_prog_compiler_wl_F77='-Qoption ld '
21802 lt_prog_compiler_pic_F77='-PIC'
21803 lt_prog_compiler_static_F77='-Bstatic'
21804 ;;
21805
Reid Spencera773bd52006-08-04 18:18:08 +000021806 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021807 lt_prog_compiler_wl_F77='-Wl,'
21808 lt_prog_compiler_pic_F77='-KPIC'
21809 lt_prog_compiler_static_F77='-Bstatic'
21810 ;;
21811
21812 sysv4*MP*)
21813 if test -d /usr/nec ;then
21814 lt_prog_compiler_pic_F77='-Kconform_pic'
21815 lt_prog_compiler_static_F77='-Bstatic'
21816 fi
21817 ;;
21818
Reid Spencera773bd52006-08-04 18:18:08 +000021819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21820 lt_prog_compiler_wl_F77='-Wl,'
21821 lt_prog_compiler_pic_F77='-KPIC'
21822 lt_prog_compiler_static_F77='-Bstatic'
21823 ;;
21824
21825 unicos*)
21826 lt_prog_compiler_wl_F77='-Wl,'
21827 lt_prog_compiler_can_build_shared_F77=no
21828 ;;
21829
John Criswell47fdd832003-07-14 16:52:07 +000021830 uts4*)
21831 lt_prog_compiler_pic_F77='-pic'
21832 lt_prog_compiler_static_F77='-Bstatic'
21833 ;;
21834
21835 *)
21836 lt_prog_compiler_can_build_shared_F77=no
21837 ;;
21838 esac
21839 fi
21840
Reid Spencera773bd52006-08-04 18:18:08 +000021841{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21842echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021843
21844#
21845# Check to make sure the PIC flag actually works.
21846#
21847if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021848
Reid Spencera773bd52006-08-04 18:18:08 +000021849{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21850echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021851if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21853else
21854 lt_prog_compiler_pic_works_F77=no
21855 ac_outfile=conftest.$ac_objext
21856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21857 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21858 # Insert the option either (1) after the last *FLAGS variable, or
21859 # (2) before a word containing "conftest.", or (3) at the end.
21860 # Note that $ac_compile itself does not contain backslashes and begins
21861 # with a dollar sign (not a hyphen), so the echo should work correctly.
21862 # The option is referenced via a variable to avoid confusing sed.
21863 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21866 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000021867 (eval echo "\"\$as_me:21867: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021868 (eval "$lt_compile" 2>conftest.err)
21869 ac_status=$?
21870 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000021871 echo "$as_me:21871: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021872 if (exit $ac_status) && test -s "$ac_outfile"; then
21873 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021874 # So say no if there are warnings other than the usual output.
21875 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021878 lt_prog_compiler_pic_works_F77=yes
21879 fi
21880 fi
21881 $rm conftest*
21882
21883fi
Reid Spencera773bd52006-08-04 18:18:08 +000021884{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21885echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021886
21887if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21888 case $lt_prog_compiler_pic_F77 in
21889 "" | " "*) ;;
21890 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21891 esac
21892else
21893 lt_prog_compiler_pic_F77=
21894 lt_prog_compiler_can_build_shared_F77=no
21895fi
21896
21897fi
Reid Spencera773bd52006-08-04 18:18:08 +000021898case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021899 # For platforms which do not support PIC, -DPIC is meaningless:
21900 *djgpp*)
21901 lt_prog_compiler_pic_F77=
21902 ;;
21903 *)
21904 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21905 ;;
21906esac
21907
Reid Spencera773bd52006-08-04 18:18:08 +000021908#
21909# Check to make sure the static flag actually works.
21910#
21911wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21912{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21913echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21914if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21916else
21917 lt_prog_compiler_static_works_F77=no
21918 save_LDFLAGS="$LDFLAGS"
21919 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21920 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21922 # The linker can only warn and ignore the option if not recognized
21923 # So say no if there are warnings
21924 if test -s conftest.err; then
21925 # Append any errors to the config.log.
21926 cat conftest.err 1>&5
21927 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21929 if diff conftest.exp conftest.er2 >/dev/null; then
21930 lt_prog_compiler_static_works_F77=yes
21931 fi
21932 else
21933 lt_prog_compiler_static_works_F77=yes
21934 fi
21935 fi
21936 $rm conftest*
21937 LDFLAGS="$save_LDFLAGS"
21938
21939fi
21940{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21941echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21942
21943if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21944 :
21945else
21946 lt_prog_compiler_static_F77=
21947fi
21948
21949
21950{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021952if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954else
21955 lt_cv_prog_compiler_c_o_F77=no
21956 $rm -r conftest 2>/dev/null
21957 mkdir conftest
21958 cd conftest
21959 mkdir out
21960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21961
John Criswell47fdd832003-07-14 16:52:07 +000021962 lt_compiler_flag="-o out/conftest2.$ac_objext"
21963 # Insert the option either (1) after the last *FLAGS variable, or
21964 # (2) before a word containing "conftest.", or (3) at the end.
21965 # Note that $ac_compile itself does not contain backslashes and begins
21966 # with a dollar sign (not a hyphen), so the echo should work correctly.
21967 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21970 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000021971 (eval echo "\"\$as_me:21971: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021972 (eval "$lt_compile" 2>out/conftest.err)
21973 ac_status=$?
21974 cat out/conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000021975 echo "$as_me:21975: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21977 then
21978 # The compiler can only warn and ignore the option if not recognized
21979 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021980 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021983 lt_cv_prog_compiler_c_o_F77=yes
21984 fi
21985 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021986 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021987 $rm conftest*
21988 # SGI C++ compiler will create directory out/ii_files/ for
21989 # template instantiation
21990 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21991 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021992 cd ..
21993 rmdir conftest
21994 $rm conftest*
21995
21996fi
Reid Spencera773bd52006-08-04 18:18:08 +000021997{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21998echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021999
22000
22001hard_links="nottested"
22002if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22003 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022004 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22005echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022006 hard_links=yes
22007 $rm conftest*
22008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22009 touch conftest.a
22010 ln conftest.a conftest.b 2>&5 || hard_links=no
22011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022012 { echo "$as_me:$LINENO: result: $hard_links" >&5
22013echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022014 if test "$hard_links" = no; then
22015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22016echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22017 need_locks=warn
22018 fi
22019else
22020 need_locks=no
22021fi
22022
Reid Spencera773bd52006-08-04 18:18:08 +000022023{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22024echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022025
22026 runpath_var=
22027 allow_undefined_flag_F77=
22028 enable_shared_with_static_runtimes_F77=no
22029 archive_cmds_F77=
22030 archive_expsym_cmds_F77=
22031 old_archive_From_new_cmds_F77=
22032 old_archive_from_expsyms_cmds_F77=
22033 export_dynamic_flag_spec_F77=
22034 whole_archive_flag_spec_F77=
22035 thread_safe_flag_spec_F77=
22036 hardcode_libdir_flag_spec_F77=
22037 hardcode_libdir_flag_spec_ld_F77=
22038 hardcode_libdir_separator_F77=
22039 hardcode_direct_F77=no
22040 hardcode_minus_L_F77=no
22041 hardcode_shlibpath_var_F77=unsupported
22042 link_all_deplibs_F77=unknown
22043 hardcode_automatic_F77=no
22044 module_cmds_F77=
22045 module_expsym_cmds_F77=
22046 always_export_symbols_F77=no
22047 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22048 # include_expsyms should be a list of space-separated symbols to be *always*
22049 # included in the symbol list
22050 include_expsyms_F77=
22051 # exclude_expsyms can be an extended regexp of symbols to exclude
22052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22054 # as well as any symbol that contains `d'.
22055 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22057 # platforms (ab)use it in PIC code, but their linkers get confused if
22058 # the symbol is explicitly referenced. Since portable code cannot
22059 # rely on this symbol name, it's probably fine to never include it in
22060 # preloaded symbol tables.
22061 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022062 # Just being paranoid about ensuring that cc_basename is set.
22063 for cc_temp in $compiler""; do
22064 case $cc_temp in
22065 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22066 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22067 \-*) ;;
22068 *) break;;
22069 esac
22070done
22071cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022072
22073 case $host_os in
22074 cygwin* | mingw* | pw32*)
22075 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22076 # When not using gcc, we currently assume that we are using
22077 # Microsoft Visual C++.
22078 if test "$GCC" != yes; then
22079 with_gnu_ld=no
22080 fi
22081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022082 interix*)
22083 # we just hope/assume this is gcc and not c89 (= MSVC++)
22084 with_gnu_ld=yes
22085 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022086 openbsd*)
22087 with_gnu_ld=no
22088 ;;
22089 esac
22090
22091 ld_shlibs_F77=yes
22092 if test "$with_gnu_ld" = yes; then
22093 # If archive_cmds runs LD, not CC, wlarc should be empty
22094 wlarc='${wl}'
22095
Reid Spencera773bd52006-08-04 18:18:08 +000022096 # Set some defaults for GNU ld with shared library support. These
22097 # are reset later if shared libraries are not supported. Putting them
22098 # here allows them to be overridden if necessary.
22099 runpath_var=LD_RUN_PATH
22100 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22101 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22102 # ancient GNU ld didn't support --whole-archive et. al.
22103 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22104 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22105 else
22106 whole_archive_flag_spec_F77=
22107 fi
22108 supports_anon_versioning=no
22109 case `$LD -v 2>/dev/null` in
22110 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22111 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22112 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22113 *\ 2.11.*) ;; # other 2.11 versions
22114 *) supports_anon_versioning=yes ;;
22115 esac
22116
John Criswell47fdd832003-07-14 16:52:07 +000022117 # See if GNU ld supports shared libraries.
22118 case $host_os in
22119 aix3* | aix4* | aix5*)
22120 # On AIX/PPC, the GNU linker is very broken
22121 if test "$host_cpu" != ia64; then
22122 ld_shlibs_F77=no
22123 cat <<EOF 1>&2
22124
22125*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22126*** to be unable to reliably create shared libraries on AIX.
22127*** Therefore, libtool is disabling shared libraries support. If you
22128*** really care for shared libraries, you may want to modify your PATH
22129*** so that a non-GNU linker is found, and then restart.
22130
22131EOF
22132 fi
22133 ;;
22134
22135 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022136 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 +000022137 hardcode_libdir_flag_spec_F77='-L$libdir'
22138 hardcode_minus_L_F77=yes
22139
22140 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22141 # that the semantics of dynamic libraries on AmigaOS, at least up
22142 # to version 4, is to share data among multiple programs linked
22143 # with the same dynamic library. Since this doesn't match the
22144 # behavior of shared libraries on other platforms, we can't use
22145 # them.
22146 ld_shlibs_F77=no
22147 ;;
22148
22149 beos*)
22150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22151 allow_undefined_flag_F77=unsupported
22152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22153 # support --undefined. This deserves some investigation. FIXME
22154 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22155 else
22156 ld_shlibs_F77=no
22157 fi
22158 ;;
22159
22160 cygwin* | mingw* | pw32*)
22161 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22162 # as there is no search path for DLLs.
22163 hardcode_libdir_flag_spec_F77='-L$libdir'
22164 allow_undefined_flag_F77=unsupported
22165 always_export_symbols_F77=no
22166 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022167 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 +000022168
22169 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022170 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 +000022171 # If the export-symbols file already is a .def file (1st line
22172 # is EXPORTS), use it as is; otherwise, prepend...
22173 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22174 cp $export_symbols $output_objdir/$soname.def;
22175 else
22176 echo EXPORTS > $output_objdir/$soname.def;
22177 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022178 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022179 $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 +000022180 else
Reid Spencera773bd52006-08-04 18:18:08 +000022181 ld_shlibs_F77=no
22182 fi
22183 ;;
22184
22185 interix3*)
22186 hardcode_direct_F77=no
22187 hardcode_shlibpath_var_F77=no
22188 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22189 export_dynamic_flag_spec_F77='${wl}-E'
22190 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22191 # Instead, shared libraries are loaded at an image base (0x10000000 by
22192 # default) and relocated if they conflict, which is a slow very memory
22193 # consuming and fragmenting process. To avoid this, we pick a random,
22194 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22195 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22196 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'
22197 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'
22198 ;;
22199
22200 linux*)
22201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22202 tmp_addflag=
22203 case $cc_basename,$host_cpu in
22204 pgcc*) # Portland Group C compiler
22205 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'
22206 tmp_addflag=' $pic_flag'
22207 ;;
22208 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22209 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'
22210 tmp_addflag=' $pic_flag -Mnomain' ;;
22211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22212 tmp_addflag=' -i_dynamic' ;;
22213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22214 tmp_addflag=' -i_dynamic -nofor_main' ;;
22215 ifc* | ifort*) # Intel Fortran compiler
22216 tmp_addflag=' -nofor_main' ;;
22217 esac
22218 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22219
22220 if test $supports_anon_versioning = yes; then
22221 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22223 $echo "local: *; };" >> $output_objdir/$libname.ver~
22224 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22225 fi
22226 else
22227 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022228 fi
22229 ;;
22230
22231 netbsd*)
22232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22233 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22234 wlarc=
22235 else
22236 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22237 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22238 fi
22239 ;;
22240
Reid Spencera773bd52006-08-04 18:18:08 +000022241 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022242 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22243 ld_shlibs_F77=no
22244 cat <<EOF 1>&2
22245
22246*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22247*** create shared libraries on Solaris systems. Therefore, libtool
22248*** is disabling shared libraries support. We urge you to upgrade GNU
22249*** binutils to release 2.9.1 or newer. Another option is to modify
22250*** your PATH or compiler configuration so that the native linker is
22251*** used, and then restart.
22252
22253EOF
22254 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22257 else
22258 ld_shlibs_F77=no
22259 fi
22260 ;;
22261
Reid Spencera773bd52006-08-04 18:18:08 +000022262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22263 case `$LD -v 2>&1` in
22264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22265 ld_shlibs_F77=no
22266 cat <<_LT_EOF 1>&2
22267
22268*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22269*** reliably create shared libraries on SCO systems. Therefore, libtool
22270*** is disabling shared libraries support. We urge you to upgrade GNU
22271*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22272*** your PATH or compiler configuration so that the native linker is
22273*** used, and then restart.
22274
22275_LT_EOF
22276 ;;
22277 *)
22278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22279 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22281 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22282 else
22283 ld_shlibs_F77=no
22284 fi
22285 ;;
22286 esac
22287 ;;
22288
John Criswell47fdd832003-07-14 16:52:07 +000022289 sunos4*)
22290 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22291 wlarc=
22292 hardcode_direct_F77=yes
22293 hardcode_shlibpath_var_F77=no
22294 ;;
22295
22296 *)
22297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22299 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22300 else
22301 ld_shlibs_F77=no
22302 fi
22303 ;;
22304 esac
22305
Reid Spencera773bd52006-08-04 18:18:08 +000022306 if test "$ld_shlibs_F77" = no; then
22307 runpath_var=
22308 hardcode_libdir_flag_spec_F77=
22309 export_dynamic_flag_spec_F77=
22310 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022311 fi
22312 else
22313 # PORTME fill in a description of your system's linker (not GNU ld)
22314 case $host_os in
22315 aix3*)
22316 allow_undefined_flag_F77=unsupported
22317 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022318 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 +000022319 # Note: this linker hardcodes the directories in LIBPATH if there
22320 # are no directories specified by -L.
22321 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022323 # Neither direct hardcoding nor static linking is supported with a
22324 # broken collect2.
22325 hardcode_direct_F77=unsupported
22326 fi
22327 ;;
22328
22329 aix4* | aix5*)
22330 if test "$host_cpu" = ia64; then
22331 # On IA64, the linker does run time linking by default, so we don't
22332 # have to do anything special.
22333 aix_use_runtimelinking=no
22334 exp_sym_flag='-Bexport'
22335 no_entry_flag=""
22336 else
22337 # If we're using GNU nm, then we don't want the "-C" option.
22338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22339 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22340 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'
22341 else
22342 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'
22343 fi
22344 aix_use_runtimelinking=no
22345
22346 # Test if we are trying to use run time linking or normal
22347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22348 # need to do runtime linking.
22349 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22350 for ld_flag in $LDFLAGS; do
22351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22352 aix_use_runtimelinking=yes
22353 break
22354 fi
22355 done
Reid Spencera773bd52006-08-04 18:18:08 +000022356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022357 esac
22358
22359 exp_sym_flag='-bexport'
22360 no_entry_flag='-bnoentry'
22361 fi
22362
22363 # When large executables or shared objects are built, AIX ld can
22364 # have problems creating the table of contents. If linking a library
22365 # or program results in "error TOC overflow" add -mminimal-toc to
22366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22368
22369 archive_cmds_F77=''
22370 hardcode_direct_F77=yes
22371 hardcode_libdir_separator_F77=':'
22372 link_all_deplibs_F77=yes
22373
22374 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022375 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022376 # We only want to do this on AIX 4.2 and lower, the check
22377 # below for broken collect2 doesn't work under 4.3+
22378 collect2name=`${CC} -print-prog-name=collect2`
22379 if test -f "$collect2name" && \
22380 strings "$collect2name" | grep resolve_lib_name >/dev/null
22381 then
22382 # We have reworked collect2
22383 hardcode_direct_F77=yes
22384 else
22385 # We have old collect2
22386 hardcode_direct_F77=unsupported
22387 # It fails to find uninstalled libraries when the uninstalled
22388 # path is not listed in the libpath. Setting hardcode_minus_L
22389 # to unsupported forces relinking
22390 hardcode_minus_L_F77=yes
22391 hardcode_libdir_flag_spec_F77='-L$libdir'
22392 hardcode_libdir_separator_F77=
22393 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022394 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022395 esac
22396 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022397 if test "$aix_use_runtimelinking" = yes; then
22398 shared_flag="$shared_flag "'${wl}-G'
22399 fi
John Criswell47fdd832003-07-14 16:52:07 +000022400 else
22401 # not using gcc
22402 if test "$host_cpu" = ia64; then
22403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22404 # chokes on -Wl,-G. The following line is correct:
22405 shared_flag='-G'
22406 else
Reid Spencera773bd52006-08-04 18:18:08 +000022407 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022408 shared_flag='${wl}-G'
22409 else
22410 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022411 fi
John Criswell47fdd832003-07-14 16:52:07 +000022412 fi
22413 fi
22414
22415 # It seems that -bexpall does not export symbols beginning with
22416 # underscore (_), so it is better to generate a list of symbols to export.
22417 always_export_symbols_F77=yes
22418 if test "$aix_use_runtimelinking" = yes; then
22419 # Warning - without using the other runtime loading flags (-brtl),
22420 # -berok will link without error, but may produce a broken library.
22421 allow_undefined_flag_F77='-berok'
22422 # Determine the default libpath from the value encoded in an empty executable.
22423 cat >conftest.$ac_ext <<_ACEOF
22424 program main
22425
22426 end
22427_ACEOF
22428rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022429if { (ac_try="$ac_link"
22430case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433esac
22434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022441 (exit $ac_status); } &&
22442 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22443 { (case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446esac
22447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_try") 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try='test -s conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456esac
22457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_try") 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022462
22463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22464}'`
22465# Check for a 64-bit object if we didn't find anything.
22466if 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; }
22467}'`; fi
22468else
22469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022470sed 's/^/| /' conftest.$ac_ext >&5
22471
Reid Spencera773bd52006-08-04 18:18:08 +000022472
John Criswell47fdd832003-07-14 16:52:07 +000022473fi
Reid Spencera773bd52006-08-04 18:18:08 +000022474
Bill Wendlingebcceee2009-04-18 11:20:33 +000022475rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022476 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22478
22479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022480 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 +000022481 else
22482 if test "$host_cpu" = ia64; then
22483 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22484 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022485 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 +000022486 else
22487 # Determine the default libpath from the value encoded in an empty executable.
22488 cat >conftest.$ac_ext <<_ACEOF
22489 program main
22490
22491 end
22492_ACEOF
22493rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022494if { (ac_try="$ac_link"
22495case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498esac
22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022501 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022502 grep -v '^ *+' conftest.er1 >conftest.err
22503 rm -f conftest.er1
22504 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022506 (exit $ac_status); } &&
22507 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22508 { (case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511esac
22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_try") 2>&5
22514 ac_status=$?
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try='test -s conftest$ac_exeext'
22518 { (case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521esac
22522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_try") 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022527
22528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22529}'`
22530# Check for a 64-bit object if we didn't find anything.
22531if 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; }
22532}'`; fi
22533else
22534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022535sed 's/^/| /' conftest.$ac_ext >&5
22536
Reid Spencera773bd52006-08-04 18:18:08 +000022537
John Criswell47fdd832003-07-14 16:52:07 +000022538fi
Reid Spencera773bd52006-08-04 18:18:08 +000022539
Bill Wendlingebcceee2009-04-18 11:20:33 +000022540rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022541 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22543
22544 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22545 # Warning - without using the other run time loading flags,
22546 # -berok will link without error, but may produce a broken library.
22547 no_undefined_flag_F77=' ${wl}-bernotok'
22548 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022549 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022550 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022551 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022552 # This is similar to how AIX traditionally builds its shared libraries.
22553 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 +000022554 fi
22555 fi
22556 ;;
22557
22558 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022559 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 +000022560 hardcode_libdir_flag_spec_F77='-L$libdir'
22561 hardcode_minus_L_F77=yes
22562 # see comment about different semantics on the GNU ld section
22563 ld_shlibs_F77=no
22564 ;;
22565
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022567 export_dynamic_flag_spec_F77=-rdynamic
22568 ;;
22569
22570 cygwin* | mingw* | pw32*)
22571 # When not using gcc, we currently assume that we are using
22572 # Microsoft Visual C++.
22573 # hardcode_libdir_flag_spec is actually meaningless, as there is
22574 # no search path for DLLs.
22575 hardcode_libdir_flag_spec_F77=' '
22576 allow_undefined_flag_F77=unsupported
22577 # Tell ltmain to make .lib files, not .a files.
22578 libext=lib
22579 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022580 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022581 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022582 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 +000022583 # The linker will automatically build a .lib file if we build a DLL.
22584 old_archive_From_new_cmds_F77='true'
22585 # FIXME: Should let the user specify the lib program.
22586 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022587 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022588 enable_shared_with_static_runtimes_F77=yes
22589 ;;
22590
22591 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022592 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022593 rhapsody* | darwin1.[012])
22594 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22595 ;;
22596 *) # Darwin 1.3 on
22597 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22598 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22599 else
22600 case ${MACOSX_DEPLOYMENT_TARGET} in
22601 10.[012])
22602 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22603 ;;
22604 10.*)
22605 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22606 ;;
22607 esac
22608 fi
22609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022610 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022611 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022612 hardcode_direct_F77=no
22613 hardcode_automatic_F77=yes
22614 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022615 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022616 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022617 if test "$GCC" = yes ; then
22618 output_verbose_link_cmd='echo'
22619 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22620 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022621 # 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 +000022622 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}'
22623 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 +000022624 else
Reid Spencera773bd52006-08-04 18:18:08 +000022625 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626 xlc*)
22627 output_verbose_link_cmd='echo'
22628 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22629 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022630 # 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 +000022631 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}'
22632 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 +000022633 ;;
22634 *)
22635 ld_shlibs_F77=no
22636 ;;
22637 esac
John Criswell47fdd832003-07-14 16:52:07 +000022638 fi
22639 ;;
22640
22641 dgux*)
22642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643 hardcode_libdir_flag_spec_F77='-L$libdir'
22644 hardcode_shlibpath_var_F77=no
22645 ;;
22646
22647 freebsd1*)
22648 ld_shlibs_F77=no
22649 ;;
22650
22651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22652 # support. Future versions do this automatically, but an explicit c++rt0.o
22653 # does not break anything, and helps significantly (at the cost of a little
22654 # extra space).
22655 freebsd2.2*)
22656 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22657 hardcode_libdir_flag_spec_F77='-R$libdir'
22658 hardcode_direct_F77=yes
22659 hardcode_shlibpath_var_F77=no
22660 ;;
22661
22662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22663 freebsd2*)
22664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22665 hardcode_direct_F77=yes
22666 hardcode_minus_L_F77=yes
22667 hardcode_shlibpath_var_F77=no
22668 ;;
22669
22670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022671 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022672 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22673 hardcode_libdir_flag_spec_F77='-R$libdir'
22674 hardcode_direct_F77=yes
22675 hardcode_shlibpath_var_F77=no
22676 ;;
22677
22678 hpux9*)
22679 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022680 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 +000022681 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022682 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 +000022683 fi
22684 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22685 hardcode_libdir_separator_F77=:
22686 hardcode_direct_F77=yes
22687
22688 # hardcode_minus_L: Not really in the search PATH,
22689 # but as the default location of the library.
22690 hardcode_minus_L_F77=yes
22691 export_dynamic_flag_spec_F77='${wl}-E'
22692 ;;
22693
Reid Spencera773bd52006-08-04 18:18:08 +000022694 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022696 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22697 else
22698 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22699 fi
22700 if test "$with_gnu_ld" = no; then
22701 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22702 hardcode_libdir_separator_F77=:
22703
22704 hardcode_direct_F77=yes
22705 export_dynamic_flag_spec_F77='${wl}-E'
22706
22707 # hardcode_minus_L: Not really in the search PATH,
22708 # but as the default location of the library.
22709 hardcode_minus_L_F77=yes
22710 fi
22711 ;;
22712
22713 hpux11*)
22714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22715 case $host_cpu in
22716 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022717 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22718 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022719 ia64*)
22720 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22721 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022722 *)
22723 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22724 ;;
22725 esac
22726 else
Reid Spencera773bd52006-08-04 18:18:08 +000022727 case $host_cpu in
22728 hppa*64*)
22729 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22730 ;;
22731 ia64*)
22732 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022733 ;;
22734 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022735 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 +000022736 ;;
22737 esac
22738 fi
22739 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022740 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22741 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022742
Reid Spencera773bd52006-08-04 18:18:08 +000022743 case $host_cpu in
22744 hppa*64*|ia64*)
22745 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22746 hardcode_direct_F77=no
22747 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022748 ;;
22749 *)
John Criswell47fdd832003-07-14 16:52:07 +000022750 hardcode_direct_F77=yes
22751 export_dynamic_flag_spec_F77='${wl}-E'
22752
22753 # hardcode_minus_L: Not really in the search PATH,
22754 # but as the default location of the library.
22755 hardcode_minus_L_F77=yes
22756 ;;
22757 esac
22758 fi
22759 ;;
22760
22761 irix5* | irix6* | nonstopux*)
22762 if test "$GCC" = yes; then
22763 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'
22764 else
22765 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'
22766 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22767 fi
22768 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22769 hardcode_libdir_separator_F77=:
22770 link_all_deplibs_F77=yes
22771 ;;
22772
22773 netbsd*)
22774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22775 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22776 else
22777 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22778 fi
22779 hardcode_libdir_flag_spec_F77='-R$libdir'
22780 hardcode_direct_F77=yes
22781 hardcode_shlibpath_var_F77=no
22782 ;;
22783
22784 newsos6)
22785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22786 hardcode_direct_F77=yes
22787 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22788 hardcode_libdir_separator_F77=:
22789 hardcode_shlibpath_var_F77=no
22790 ;;
22791
22792 openbsd*)
22793 hardcode_direct_F77=yes
22794 hardcode_shlibpath_var_F77=no
22795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22796 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022797 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 +000022798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22799 export_dynamic_flag_spec_F77='${wl}-E'
22800 else
22801 case $host_os in
22802 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22803 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22804 hardcode_libdir_flag_spec_F77='-R$libdir'
22805 ;;
22806 *)
22807 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22808 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22809 ;;
22810 esac
22811 fi
22812 ;;
22813
22814 os2*)
22815 hardcode_libdir_flag_spec_F77='-L$libdir'
22816 hardcode_minus_L_F77=yes
22817 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022818 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 +000022819 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22820 ;;
22821
22822 osf3*)
22823 if test "$GCC" = yes; then
22824 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22825 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'
22826 else
22827 allow_undefined_flag_F77=' -expect_unresolved \*'
22828 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'
22829 fi
22830 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22831 hardcode_libdir_separator_F77=:
22832 ;;
22833
22834 osf4* | osf5*) # as osf3* with the addition of -msym flag
22835 if test "$GCC" = yes; then
22836 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22837 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'
22838 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22839 else
22840 allow_undefined_flag_F77=' -expect_unresolved \*'
22841 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 +000022842 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 +000022843 $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 +000022844
John Criswell47fdd832003-07-14 16:52:07 +000022845 # Both c and cxx compiler support -rpath directly
22846 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22847 fi
22848 hardcode_libdir_separator_F77=:
22849 ;;
22850
John Criswell47fdd832003-07-14 16:52:07 +000022851 solaris*)
22852 no_undefined_flag_F77=' -z text'
22853 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022854 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022855 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022856 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22857 $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 +000022858 else
Reid Spencera773bd52006-08-04 18:18:08 +000022859 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022860 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022861 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22862 $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 +000022863 fi
22864 hardcode_libdir_flag_spec_F77='-R$libdir'
22865 hardcode_shlibpath_var_F77=no
22866 case $host_os in
22867 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022868 *)
22869 # The compiler driver will combine linker options so we
22870 # cannot just pass the convience library names through
22871 # without $wl, iff we do not link with $LD.
22872 # Luckily, gcc supports the same syntax we need for Sun Studio.
22873 # Supported since Solaris 2.6 (maybe 2.5.1?)
22874 case $wlarc in
22875 '')
22876 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22877 *)
22878 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' ;;
22879 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022880 esac
22881 link_all_deplibs_F77=yes
22882 ;;
22883
22884 sunos4*)
22885 if test "x$host_vendor" = xsequent; then
22886 # Use $CC to link under sequent, because it throws in some extra .o
22887 # files that make .init and .fini sections work.
22888 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22889 else
22890 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22891 fi
22892 hardcode_libdir_flag_spec_F77='-L$libdir'
22893 hardcode_direct_F77=yes
22894 hardcode_minus_L_F77=yes
22895 hardcode_shlibpath_var_F77=no
22896 ;;
22897
22898 sysv4)
22899 case $host_vendor in
22900 sni)
22901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22902 hardcode_direct_F77=yes # is this really true???
22903 ;;
22904 siemens)
22905 ## LD is ld it makes a PLAMLIB
22906 ## CC just makes a GrossModule.
22907 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22908 reload_cmds_F77='$CC -r -o $output$reload_objs'
22909 hardcode_direct_F77=no
22910 ;;
22911 motorola)
22912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22913 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22914 ;;
22915 esac
22916 runpath_var='LD_RUN_PATH'
22917 hardcode_shlibpath_var_F77=no
22918 ;;
22919
22920 sysv4.3*)
22921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22922 hardcode_shlibpath_var_F77=no
22923 export_dynamic_flag_spec_F77='-Bexport'
22924 ;;
22925
22926 sysv4*MP*)
22927 if test -d /usr/nec; then
22928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929 hardcode_shlibpath_var_F77=no
22930 runpath_var=LD_RUN_PATH
22931 hardcode_runpath_var=yes
22932 ld_shlibs_F77=yes
22933 fi
22934 ;;
22935
Reid Spencera773bd52006-08-04 18:18:08 +000022936 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22937 no_undefined_flag_F77='${wl}-z,text'
22938 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022939 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022940 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022941
John Criswell47fdd832003-07-14 16:52:07 +000022942 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022943 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22944 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 +000022945 else
Reid Spencera773bd52006-08-04 18:18:08 +000022946 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22947 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 +000022948 fi
John Criswell47fdd832003-07-14 16:52:07 +000022949 ;;
22950
Reid Spencera773bd52006-08-04 18:18:08 +000022951 sysv5* | sco3.2v5* | sco5v6*)
22952 # Note: We can NOT use -z defs as we might desire, because we do not
22953 # link with -lc, and that would cause any symbols used from libc to
22954 # always be unresolved, which means just about no library would
22955 # ever link correctly. If we're not using GNU ld we use -z text
22956 # though, which does catch some bad symbols but isn't as heavy-handed
22957 # as -z defs.
22958 no_undefined_flag_F77='${wl}-z,text'
22959 allow_undefined_flag_F77='${wl}-z,nodefs'
22960 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022961 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022962 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22963 hardcode_libdir_separator_F77=':'
22964 link_all_deplibs_F77=yes
22965 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022966 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022967
22968 if test "$GCC" = yes; then
22969 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22970 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22971 else
22972 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22973 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22974 fi
John Criswell47fdd832003-07-14 16:52:07 +000022975 ;;
22976
22977 uts4*)
22978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22979 hardcode_libdir_flag_spec_F77='-L$libdir'
22980 hardcode_shlibpath_var_F77=no
22981 ;;
22982
22983 *)
22984 ld_shlibs_F77=no
22985 ;;
22986 esac
22987 fi
22988
Reid Spencera773bd52006-08-04 18:18:08 +000022989{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22990echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022991test "$ld_shlibs_F77" = no && can_build_shared=no
22992
John Criswell47fdd832003-07-14 16:52:07 +000022993#
22994# Do we need to explicitly link libc?
22995#
22996case "x$archive_cmds_need_lc_F77" in
22997x|xyes)
22998 # Assume -lc should be added
22999 archive_cmds_need_lc_F77=yes
23000
23001 if test "$enable_shared" = yes && test "$GCC" = yes; then
23002 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023003 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023004 # FIXME: we may have to deal with multi-command sequences.
23005 ;;
23006 '$CC '*)
23007 # Test whether the compiler implicitly links with -lc since on some
23008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23009 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23011echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023012 $rm conftest*
23013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23014
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016 (eval $ac_compile) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } 2>conftest.err; then
23020 soname=conftest
23021 lib=conftest
23022 libobjs=conftest.$ac_objext
23023 deplibs=
23024 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000023025 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000023026 compiler_flags=-v
23027 linker_flags=-v
23028 verstring=
23029 output_objdir=.
23030 libname=conftest
23031 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23032 allow_undefined_flag_F77=
23033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23034 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }
23038 then
23039 archive_cmds_need_lc_F77=no
23040 else
23041 archive_cmds_need_lc_F77=yes
23042 fi
23043 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23044 else
23045 cat conftest.err 1>&5
23046 fi
23047 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23049echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023050 ;;
23051 esac
23052 fi
23053 ;;
23054esac
23055
Reid Spencera773bd52006-08-04 18:18:08 +000023056{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23057echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023058library_names_spec=
23059libname_spec='lib$name'
23060soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023061shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023062postinstall_cmds=
23063postuninstall_cmds=
23064finish_cmds=
23065finish_eval=
23066shlibpath_var=
23067shlibpath_overrides_runpath=unknown
23068version_type=none
23069dynamic_linker="$host_os ld.so"
23070sys_lib_dlsearch_path_spec="/lib /usr/lib"
23071if test "$GCC" = yes; then
23072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23073 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23074 # if the path contains ";" then we assume it to be the separator
23075 # otherwise default to the standard path separator (i.e. ":") - it is
23076 # assumed that no part of a normal pathname contains ";" but that should
23077 # okay in the real world where ";" in dirpaths is itself problematic.
23078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23079 else
23080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23081 fi
23082else
23083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23084fi
23085need_lib_prefix=unknown
23086hardcode_into_libs=no
23087
23088# when you set need_version to no, make sure it does not cause -set_version
23089# flags to be left without arguments
23090need_version=unknown
23091
23092case $host_os in
23093aix3*)
23094 version_type=linux
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23096 shlibpath_var=LIBPATH
23097
23098 # AIX 3 has no versioning support, so we append a major version to the name.
23099 soname_spec='${libname}${release}${shared_ext}$major'
23100 ;;
23101
23102aix4* | aix5*)
23103 version_type=linux
23104 need_lib_prefix=no
23105 need_version=no
23106 hardcode_into_libs=yes
23107 if test "$host_cpu" = ia64; then
23108 # AIX 5 supports IA64
23109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23110 shlibpath_var=LD_LIBRARY_PATH
23111 else
23112 # With GCC up to 2.95.x, collect2 would create an import file
23113 # for dependence libraries. The import file would start with
23114 # the line `#! .'. This would cause the generated library to
23115 # depend on `.', always an invalid library. This was fixed in
23116 # development snapshots of GCC prior to 3.0.
23117 case $host_os in
23118 aix4 | aix4.[01] | aix4.[01].*)
23119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23120 echo ' yes '
23121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23122 :
23123 else
23124 can_build_shared=no
23125 fi
23126 ;;
23127 esac
23128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23129 # soname into executable. Probably we can add versioning support to
23130 # collect2, so additional links can be useful in future.
23131 if test "$aix_use_runtimelinking" = yes; then
23132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23133 # instead of lib<name>.a to let people know that these are not
23134 # typical AIX shared libraries.
23135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136 else
23137 # We preserve .a as extension for shared libraries through AIX4.2
23138 # and later when we are not doing run time linking.
23139 library_names_spec='${libname}${release}.a $libname.a'
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 fi
23142 shlibpath_var=LIBPATH
23143 fi
23144 ;;
23145
23146amigaos*)
23147 library_names_spec='$libname.ixlibrary $libname.a'
23148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023149 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 +000023150 ;;
23151
23152beos*)
23153 library_names_spec='${libname}${shared_ext}'
23154 dynamic_linker="$host_os ld.so"
23155 shlibpath_var=LIBRARY_PATH
23156 ;;
23157
Reid Spencer2706f8c2004-09-19 23:53:36 +000023158bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023159 version_type=linux
23160 need_version=no
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162 soname_spec='${libname}${release}${shared_ext}$major'
23163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23167 # the default ld.so.conf also contains /usr/contrib/lib and
23168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23169 # libtool to hard-code these into programs
23170 ;;
23171
23172cygwin* | mingw* | pw32*)
23173 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023174 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023175 need_version=no
23176 need_lib_prefix=no
23177
23178 case $GCC,$host_os in
23179 yes,cygwin* | yes,mingw* | yes,pw32*)
23180 library_names_spec='$libname.dll.a'
23181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023182 postinstall_cmds='base_file=`basename \${file}`~
23183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23184 dldir=$destdir/`dirname \$dlpath`~
23185 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023186 $install_prog $dir/$dlname \$dldir/$dlname~
23187 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23189 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023190 $rm \$dlpath'
23191 shlibpath_overrides_runpath=yes
23192
23193 case $host_os in
23194 cygwin*)
23195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23196 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 +000023197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023198 ;;
23199 mingw*)
23200 # MinGW DLLs use traditional 'lib' prefix
23201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23204 # It is most probably a Windows format PATH printed by
23205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23206 # path with ; separators, and with drive letters. We can handle the
23207 # drive letters (cygwin fileutils understands them), so leave them,
23208 # especially as we might pass files found there to a mingw objdump,
23209 # which wouldn't understand a cygwinified path. Ahh.
23210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23211 else
23212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23213 fi
23214 ;;
23215 pw32*)
23216 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023217 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 +000023218 ;;
23219 esac
23220 ;;
23221
23222 *)
23223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23224 ;;
23225 esac
23226 dynamic_linker='Win32 ld.exe'
23227 # FIXME: first we should search . and the directory the executable is in
23228 shlibpath_var=PATH
23229 ;;
23230
23231darwin* | rhapsody*)
23232 dynamic_linker="$host_os dyld"
23233 version_type=darwin
23234 need_lib_prefix=no
23235 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023237 soname_spec='${libname}${release}${major}$shared_ext'
23238 shlibpath_overrides_runpath=yes
23239 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023240 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023241 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023242 if test "$GCC" = yes; then
23243 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"`
23244 else
23245 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023246 fi
23247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23248 ;;
23249
23250dgux*)
23251 version_type=linux
23252 need_lib_prefix=no
23253 need_version=no
23254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23255 soname_spec='${libname}${release}${shared_ext}$major'
23256 shlibpath_var=LD_LIBRARY_PATH
23257 ;;
23258
23259freebsd1*)
23260 dynamic_linker=no
23261 ;;
23262
Reid Spencer2706f8c2004-09-19 23:53:36 +000023263kfreebsd*-gnu)
23264 version_type=linux
23265 need_lib_prefix=no
23266 need_version=no
23267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23268 soname_spec='${libname}${release}${shared_ext}$major'
23269 shlibpath_var=LD_LIBRARY_PATH
23270 shlibpath_overrides_runpath=no
23271 hardcode_into_libs=yes
23272 dynamic_linker='GNU ld.so'
23273 ;;
23274
Reid Spencera773bd52006-08-04 18:18:08 +000023275freebsd* | dragonfly*)
23276 # DragonFly does not have aout. When/if they implement a new
23277 # versioning mechanism, adjust this.
23278 if test -x /usr/bin/objformat; then
23279 objformat=`/usr/bin/objformat`
23280 else
23281 case $host_os in
23282 freebsd[123]*) objformat=aout ;;
23283 *) objformat=elf ;;
23284 esac
23285 fi
John Criswell47fdd832003-07-14 16:52:07 +000023286 version_type=freebsd-$objformat
23287 case $version_type in
23288 freebsd-elf*)
23289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23290 need_version=no
23291 need_lib_prefix=no
23292 ;;
23293 freebsd-*)
23294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23295 need_version=yes
23296 ;;
23297 esac
23298 shlibpath_var=LD_LIBRARY_PATH
23299 case $host_os in
23300 freebsd2*)
23301 shlibpath_overrides_runpath=yes
23302 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023303 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023304 shlibpath_overrides_runpath=yes
23305 hardcode_into_libs=yes
23306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023309 shlibpath_overrides_runpath=no
23310 hardcode_into_libs=yes
23311 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023312 freebsd*) # from 4.6 on
23313 shlibpath_overrides_runpath=yes
23314 hardcode_into_libs=yes
23315 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023316 esac
23317 ;;
23318
23319gnu*)
23320 version_type=linux
23321 need_lib_prefix=no
23322 need_version=no
23323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23324 soname_spec='${libname}${release}${shared_ext}$major'
23325 shlibpath_var=LD_LIBRARY_PATH
23326 hardcode_into_libs=yes
23327 ;;
23328
23329hpux9* | hpux10* | hpux11*)
23330 # Give a soname corresponding to the major version so that dld.sl refuses to
23331 # link against other versions.
23332 version_type=sunos
23333 need_lib_prefix=no
23334 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023335 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023336 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023338 hardcode_into_libs=yes
23339 dynamic_linker="$host_os dld.so"
23340 shlibpath_var=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 soname_spec='${libname}${release}${shared_ext}$major'
23344 if test "X$HPUX_IA64_MODE" = X32; then
23345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23346 else
23347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23348 fi
23349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23350 ;;
23351 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023353 hardcode_into_libs=yes
23354 dynamic_linker="$host_os dld.sl"
23355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 soname_spec='${libname}${release}${shared_ext}$major'
23359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23361 ;;
23362 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023363 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023364 dynamic_linker="$host_os dld.sl"
23365 shlibpath_var=SHLIB_PATH
23366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23368 soname_spec='${libname}${release}${shared_ext}$major'
23369 ;;
23370 esac
23371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23372 postinstall_cmds='chmod 555 $lib'
23373 ;;
23374
Reid Spencera773bd52006-08-04 18:18:08 +000023375interix3*)
23376 version_type=linux
23377 need_lib_prefix=no
23378 need_version=no
23379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23380 soname_spec='${libname}${release}${shared_ext}$major'
23381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23382 shlibpath_var=LD_LIBRARY_PATH
23383 shlibpath_overrides_runpath=no
23384 hardcode_into_libs=yes
23385 ;;
23386
John Criswell47fdd832003-07-14 16:52:07 +000023387irix5* | irix6* | nonstopux*)
23388 case $host_os in
23389 nonstopux*) version_type=nonstopux ;;
23390 *)
23391 if test "$lt_cv_prog_gnu_ld" = yes; then
23392 version_type=linux
23393 else
23394 version_type=irix
23395 fi ;;
23396 esac
23397 need_lib_prefix=no
23398 need_version=no
23399 soname_spec='${libname}${release}${shared_ext}$major'
23400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23401 case $host_os in
23402 irix5* | nonstopux*)
23403 libsuff= shlibsuff=
23404 ;;
23405 *)
23406 case $LD in # libtool.m4 will add one of these switches to LD
23407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23408 libsuff= shlibsuff= libmagic=32-bit;;
23409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23410 libsuff=32 shlibsuff=N32 libmagic=N32;;
23411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23413 *) libsuff= shlibsuff= libmagic=never-match;;
23414 esac
23415 ;;
23416 esac
23417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23418 shlibpath_overrides_runpath=no
23419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23421 hardcode_into_libs=yes
23422 ;;
23423
23424# No shared lib support for Linux oldld, aout, or coff.
23425linux*oldld* | linux*aout* | linux*coff*)
23426 dynamic_linker=no
23427 ;;
23428
23429# This must be Linux ELF.
23430linux*)
23431 version_type=linux
23432 need_lib_prefix=no
23433 need_version=no
23434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23435 soname_spec='${libname}${release}${shared_ext}$major'
23436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23437 shlibpath_var=LD_LIBRARY_PATH
23438 shlibpath_overrides_runpath=no
23439 # This implies no fast_install, which is unacceptable.
23440 # Some rework will be needed to allow for fast_install
23441 # before this can be enabled.
23442 hardcode_into_libs=yes
23443
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444 # Append ld.so.conf contents to the search path
23445 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023446 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 +000023447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23448 fi
23449
John Criswell47fdd832003-07-14 16:52:07 +000023450 # We used to test for /lib/ld.so.1 and disable shared libraries on
23451 # powerpc, because MkLinux only supported shared libraries with the
23452 # GNU dynamic linker. Since this was broken with cross compilers,
23453 # most powerpc-linux boxes support dynamic linking these days and
23454 # people can always --disable-shared, the test was removed, and we
23455 # assume the GNU/Linux dynamic linker is in use.
23456 dynamic_linker='GNU/Linux ld.so'
23457 ;;
23458
Reid Spencer2706f8c2004-09-19 23:53:36 +000023459knetbsd*-gnu)
23460 version_type=linux
23461 need_lib_prefix=no
23462 need_version=no
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464 soname_spec='${libname}${release}${shared_ext}$major'
23465 shlibpath_var=LD_LIBRARY_PATH
23466 shlibpath_overrides_runpath=no
23467 hardcode_into_libs=yes
23468 dynamic_linker='GNU ld.so'
23469 ;;
23470
John Criswell47fdd832003-07-14 16:52:07 +000023471netbsd*)
23472 version_type=sunos
23473 need_lib_prefix=no
23474 need_version=no
23475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23478 dynamic_linker='NetBSD (a.out) ld.so'
23479 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023481 soname_spec='${libname}${release}${shared_ext}$major'
23482 dynamic_linker='NetBSD ld.elf_so'
23483 fi
23484 shlibpath_var=LD_LIBRARY_PATH
23485 shlibpath_overrides_runpath=yes
23486 hardcode_into_libs=yes
23487 ;;
23488
23489newsos6)
23490 version_type=linux
23491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23492 shlibpath_var=LD_LIBRARY_PATH
23493 shlibpath_overrides_runpath=yes
23494 ;;
23495
Reid Spencer2706f8c2004-09-19 23:53:36 +000023496nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023497 version_type=linux
23498 need_lib_prefix=no
23499 need_version=no
23500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23501 soname_spec='${libname}${release}${shared_ext}$major'
23502 shlibpath_var=LD_LIBRARY_PATH
23503 shlibpath_overrides_runpath=yes
23504 ;;
23505
23506openbsd*)
23507 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023508 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023509 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023510 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23511 case $host_os in
23512 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23513 *) need_version=no ;;
23514 esac
John Criswell47fdd832003-07-14 16:52:07 +000023515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23517 shlibpath_var=LD_LIBRARY_PATH
23518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23519 case $host_os in
23520 openbsd2.[89] | openbsd2.[89].*)
23521 shlibpath_overrides_runpath=no
23522 ;;
23523 *)
23524 shlibpath_overrides_runpath=yes
23525 ;;
23526 esac
23527 else
23528 shlibpath_overrides_runpath=yes
23529 fi
23530 ;;
23531
23532os2*)
23533 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023534 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023535 need_lib_prefix=no
23536 library_names_spec='$libname${shared_ext} $libname.a'
23537 dynamic_linker='OS/2 ld.exe'
23538 shlibpath_var=LIBPATH
23539 ;;
23540
23541osf3* | osf4* | osf5*)
23542 version_type=osf
23543 need_lib_prefix=no
23544 need_version=no
23545 soname_spec='${libname}${release}${shared_ext}$major'
23546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23547 shlibpath_var=LD_LIBRARY_PATH
23548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23549 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23550 ;;
23551
John Criswell47fdd832003-07-14 16:52:07 +000023552solaris*)
23553 version_type=linux
23554 need_lib_prefix=no
23555 need_version=no
23556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23557 soname_spec='${libname}${release}${shared_ext}$major'
23558 shlibpath_var=LD_LIBRARY_PATH
23559 shlibpath_overrides_runpath=yes
23560 hardcode_into_libs=yes
23561 # ldd complains unless libraries are executable
23562 postinstall_cmds='chmod +x $lib'
23563 ;;
23564
23565sunos4*)
23566 version_type=sunos
23567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23569 shlibpath_var=LD_LIBRARY_PATH
23570 shlibpath_overrides_runpath=yes
23571 if test "$with_gnu_ld" = yes; then
23572 need_lib_prefix=no
23573 fi
23574 need_version=yes
23575 ;;
23576
Reid Spencera773bd52006-08-04 18:18:08 +000023577sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023578 version_type=linux
23579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23580 soname_spec='${libname}${release}${shared_ext}$major'
23581 shlibpath_var=LD_LIBRARY_PATH
23582 case $host_vendor in
23583 sni)
23584 shlibpath_overrides_runpath=no
23585 need_lib_prefix=no
23586 export_dynamic_flag_spec='${wl}-Blargedynsym'
23587 runpath_var=LD_RUN_PATH
23588 ;;
23589 siemens)
23590 need_lib_prefix=no
23591 ;;
23592 motorola)
23593 need_lib_prefix=no
23594 need_version=no
23595 shlibpath_overrides_runpath=no
23596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23597 ;;
23598 esac
23599 ;;
23600
23601sysv4*MP*)
23602 if test -d /usr/nec ;then
23603 version_type=linux
23604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23605 soname_spec='$libname${shared_ext}.$major'
23606 shlibpath_var=LD_LIBRARY_PATH
23607 fi
23608 ;;
23609
Reid Spencera773bd52006-08-04 18:18:08 +000023610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23611 version_type=freebsd-elf
23612 need_lib_prefix=no
23613 need_version=no
23614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23615 soname_spec='${libname}${release}${shared_ext}$major'
23616 shlibpath_var=LD_LIBRARY_PATH
23617 hardcode_into_libs=yes
23618 if test "$with_gnu_ld" = yes; then
23619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23620 shlibpath_overrides_runpath=no
23621 else
23622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23623 shlibpath_overrides_runpath=yes
23624 case $host_os in
23625 sco3.2v5*)
23626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23627 ;;
23628 esac
23629 fi
23630 sys_lib_dlsearch_path_spec='/usr/lib'
23631 ;;
23632
John Criswell47fdd832003-07-14 16:52:07 +000023633uts4*)
23634 version_type=linux
23635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23636 soname_spec='${libname}${release}${shared_ext}$major'
23637 shlibpath_var=LD_LIBRARY_PATH
23638 ;;
23639
23640*)
23641 dynamic_linker=no
23642 ;;
23643esac
Reid Spencera773bd52006-08-04 18:18:08 +000023644{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23645echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023646test "$dynamic_linker" = no && can_build_shared=no
23647
Reid Spencera773bd52006-08-04 18:18:08 +000023648variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23649if test "$GCC" = yes; then
23650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23651fi
23652
23653{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23654echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023655hardcode_action_F77=
23656if test -n "$hardcode_libdir_flag_spec_F77" || \
23657 test -n "$runpath_var_F77" || \
23658 test "X$hardcode_automatic_F77" = "Xyes" ; then
23659
23660 # We can hardcode non-existant directories.
23661 if test "$hardcode_direct_F77" != no &&
23662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23663 # have to relink, otherwise we might link with an installed library
23664 # when we should be linking with a yet-to-be-installed one
23665 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23666 test "$hardcode_minus_L_F77" != no; then
23667 # Linking always hardcodes the temporary library directory.
23668 hardcode_action_F77=relink
23669 else
23670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23671 hardcode_action_F77=immediate
23672 fi
23673else
23674 # We cannot hardcode anything, or else we can only hardcode existing
23675 # directories.
23676 hardcode_action_F77=unsupported
23677fi
Reid Spencera773bd52006-08-04 18:18:08 +000023678{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23679echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023680
23681if test "$hardcode_action_F77" = relink; then
23682 # Fast installation is not supported
23683 enable_fast_install=no
23684elif test "$shlibpath_overrides_runpath" = yes ||
23685 test "$enable_shared" = no; then
23686 # Fast installation is not necessary
23687 enable_fast_install=needless
23688fi
23689
John Criswell47fdd832003-07-14 16:52:07 +000023690
23691# The else clause should only fire when bootstrapping the
23692# libtool distribution, otherwise you forgot to ship ltmain.sh
23693# with your package, and you will get complaints that there are
23694# no rules to generate ltmain.sh.
23695if test -f "$ltmain"; then
23696 # See if we are running on zsh, and set the options which allow our commands through
23697 # without removal of \ escapes.
23698 if test -n "${ZSH_VERSION+set}" ; then
23699 setopt NO_GLOB_SUBST
23700 fi
23701 # Now quote all the things that may contain metacharacters while being
23702 # careful not to overquote the AC_SUBSTed values. We take copies of the
23703 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023704 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 +000023705 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23708 deplibs_check_method reload_flag reload_cmds need_locks \
23709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23710 lt_cv_sys_global_symbol_to_c_name_address \
23711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23712 old_postinstall_cmds old_postuninstall_cmds \
23713 compiler_F77 \
23714 CC_F77 \
23715 LD_F77 \
23716 lt_prog_compiler_wl_F77 \
23717 lt_prog_compiler_pic_F77 \
23718 lt_prog_compiler_static_F77 \
23719 lt_prog_compiler_no_builtin_flag_F77 \
23720 export_dynamic_flag_spec_F77 \
23721 thread_safe_flag_spec_F77 \
23722 whole_archive_flag_spec_F77 \
23723 enable_shared_with_static_runtimes_F77 \
23724 old_archive_cmds_F77 \
23725 old_archive_from_new_cmds_F77 \
23726 predep_objects_F77 \
23727 postdep_objects_F77 \
23728 predeps_F77 \
23729 postdeps_F77 \
23730 compiler_lib_search_path_F77 \
23731 archive_cmds_F77 \
23732 archive_expsym_cmds_F77 \
23733 postinstall_cmds_F77 \
23734 postuninstall_cmds_F77 \
23735 old_archive_from_expsyms_cmds_F77 \
23736 allow_undefined_flag_F77 \
23737 no_undefined_flag_F77 \
23738 export_symbols_cmds_F77 \
23739 hardcode_libdir_flag_spec_F77 \
23740 hardcode_libdir_flag_spec_ld_F77 \
23741 hardcode_libdir_separator_F77 \
23742 hardcode_automatic_F77 \
23743 module_cmds_F77 \
23744 module_expsym_cmds_F77 \
23745 lt_cv_prog_compiler_c_o_F77 \
23746 exclude_expsyms_F77 \
23747 include_expsyms_F77; do
23748
23749 case $var in
23750 old_archive_cmds_F77 | \
23751 old_archive_from_new_cmds_F77 | \
23752 archive_cmds_F77 | \
23753 archive_expsym_cmds_F77 | \
23754 module_cmds_F77 | \
23755 module_expsym_cmds_F77 | \
23756 old_archive_from_expsyms_cmds_F77 | \
23757 export_symbols_cmds_F77 | \
23758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23759 postinstall_cmds | postuninstall_cmds | \
23760 old_postinstall_cmds | old_postuninstall_cmds | \
23761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23762 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023763 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 +000023764 ;;
23765 *)
23766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23767 ;;
23768 esac
23769 done
23770
23771 case $lt_echo in
23772 *'\$0 --fallback-echo"')
23773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23774 ;;
23775 esac
23776
23777cfgfile="$ofile"
23778
23779 cat <<__EOF__ >> "$cfgfile"
23780# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23781
23782# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23783
23784# Shell to use when invoking shell scripts.
23785SHELL=$lt_SHELL
23786
23787# Whether or not to build shared libraries.
23788build_libtool_libs=$enable_shared
23789
23790# Whether or not to build static libraries.
23791build_old_libs=$enable_static
23792
23793# Whether or not to add -lc for building shared libraries.
23794build_libtool_need_lc=$archive_cmds_need_lc_F77
23795
23796# Whether or not to disallow shared libs when runtime libs are static
23797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23798
23799# Whether or not to optimize for fast installation.
23800fast_install=$enable_fast_install
23801
23802# The host system.
23803host_alias=$host_alias
23804host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023805host_os=$host_os
23806
23807# The build system.
23808build_alias=$build_alias
23809build=$build
23810build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023811
23812# An echo program that does not interpret backslashes.
23813echo=$lt_echo
23814
23815# The archiver.
23816AR=$lt_AR
23817AR_FLAGS=$lt_AR_FLAGS
23818
23819# A C compiler.
23820LTCC=$lt_LTCC
23821
Reid Spencera773bd52006-08-04 18:18:08 +000023822# LTCC compiler flags.
23823LTCFLAGS=$lt_LTCFLAGS
23824
John Criswell47fdd832003-07-14 16:52:07 +000023825# A language-specific compiler.
23826CC=$lt_compiler_F77
23827
23828# Is the compiler the GNU C compiler?
23829with_gcc=$GCC_F77
23830
23831# An ERE matcher.
23832EGREP=$lt_EGREP
23833
23834# The linker used to build libraries.
23835LD=$lt_LD_F77
23836
23837# Whether we need hard or soft links.
23838LN_S=$lt_LN_S
23839
23840# A BSD-compatible nm program.
23841NM=$lt_NM
23842
23843# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023844STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023845
23846# Used to examine libraries when file_magic_cmd begins "file"
23847MAGIC_CMD=$MAGIC_CMD
23848
23849# Used on cygwin: DLL creation program.
23850DLLTOOL="$DLLTOOL"
23851
23852# Used on cygwin: object dumper.
23853OBJDUMP="$OBJDUMP"
23854
23855# Used on cygwin: assembler.
23856AS="$AS"
23857
23858# The name of the directory that contains temporary libtool files.
23859objdir=$objdir
23860
23861# How to create reloadable object files.
23862reload_flag=$lt_reload_flag
23863reload_cmds=$lt_reload_cmds
23864
23865# How to pass a linker flag through the compiler.
23866wl=$lt_lt_prog_compiler_wl_F77
23867
23868# Object file suffix (normally "o").
23869objext="$ac_objext"
23870
23871# Old archive suffix (normally "a").
23872libext="$libext"
23873
23874# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023875shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023876
23877# Executable file suffix (normally "").
23878exeext="$exeext"
23879
23880# Additional compiler flags for building library objects.
23881pic_flag=$lt_lt_prog_compiler_pic_F77
23882pic_mode=$pic_mode
23883
23884# What is the maximum length of a command?
23885max_cmd_len=$lt_cv_sys_max_cmd_len
23886
23887# Does compiler simultaneously support -c and -o options?
23888compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23889
Reid Spencera773bd52006-08-04 18:18:08 +000023890# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023891need_locks=$lt_need_locks
23892
23893# Do we need the lib prefix for modules?
23894need_lib_prefix=$need_lib_prefix
23895
23896# Do we need a version for libraries?
23897need_version=$need_version
23898
23899# Whether dlopen is supported.
23900dlopen_support=$enable_dlopen
23901
23902# Whether dlopen of programs is supported.
23903dlopen_self=$enable_dlopen_self
23904
23905# Whether dlopen of statically linked programs is supported.
23906dlopen_self_static=$enable_dlopen_self_static
23907
23908# Compiler flag to prevent dynamic linking.
23909link_static_flag=$lt_lt_prog_compiler_static_F77
23910
23911# Compiler flag to turn off builtin functions.
23912no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23913
23914# Compiler flag to allow reflexive dlopens.
23915export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23916
23917# Compiler flag to generate shared objects directly from archives.
23918whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23919
23920# Compiler flag to generate thread-safe objects.
23921thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23922
23923# Library versioning type.
23924version_type=$version_type
23925
23926# Format of library name prefix.
23927libname_spec=$lt_libname_spec
23928
23929# List of archive names. First name is the real one, the rest are links.
23930# The last name is the one that the linker finds with -lNAME.
23931library_names_spec=$lt_library_names_spec
23932
23933# The coded name of the library, if different from the real name.
23934soname_spec=$lt_soname_spec
23935
23936# Commands used to build and install an old-style archive.
23937RANLIB=$lt_RANLIB
23938old_archive_cmds=$lt_old_archive_cmds_F77
23939old_postinstall_cmds=$lt_old_postinstall_cmds
23940old_postuninstall_cmds=$lt_old_postuninstall_cmds
23941
23942# Create an old-style archive from a shared archive.
23943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23944
23945# Create a temporary old-style archive to link instead of a shared archive.
23946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23947
23948# Commands used to build and install a shared archive.
23949archive_cmds=$lt_archive_cmds_F77
23950archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23951postinstall_cmds=$lt_postinstall_cmds
23952postuninstall_cmds=$lt_postuninstall_cmds
23953
23954# Commands used to build a loadable module (assumed same as above if empty)
23955module_cmds=$lt_module_cmds_F77
23956module_expsym_cmds=$lt_module_expsym_cmds_F77
23957
23958# Commands to strip libraries.
23959old_striplib=$lt_old_striplib
23960striplib=$lt_striplib
23961
23962# Dependencies to place before the objects being linked to create a
23963# shared library.
23964predep_objects=$lt_predep_objects_F77
23965
23966# Dependencies to place after the objects being linked to create a
23967# shared library.
23968postdep_objects=$lt_postdep_objects_F77
23969
23970# Dependencies to place before the objects being linked to create a
23971# shared library.
23972predeps=$lt_predeps_F77
23973
23974# Dependencies to place after the objects being linked to create a
23975# shared library.
23976postdeps=$lt_postdeps_F77
23977
23978# The library search path used internally by the compiler when linking
23979# a shared library.
23980compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23981
23982# Method to check whether dependent libraries are shared objects.
23983deplibs_check_method=$lt_deplibs_check_method
23984
23985# Command to use when deplibs_check_method == file_magic.
23986file_magic_cmd=$lt_file_magic_cmd
23987
23988# Flag that allows shared libraries with undefined symbols to be built.
23989allow_undefined_flag=$lt_allow_undefined_flag_F77
23990
23991# Flag that forces no undefined symbols.
23992no_undefined_flag=$lt_no_undefined_flag_F77
23993
23994# Commands used to finish a libtool library installation in a directory.
23995finish_cmds=$lt_finish_cmds
23996
23997# Same as above, but a single script fragment to be evaled but not shown.
23998finish_eval=$lt_finish_eval
23999
24000# Take the output of nm and produce a listing of raw symbols and C names.
24001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24002
24003# Transform the output of nm in a proper C declaration
24004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24005
24006# Transform the output of nm in a C name address pair
24007global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24008
24009# This is the shared library runtime path variable.
24010runpath_var=$runpath_var
24011
24012# This is the shared library path variable.
24013shlibpath_var=$shlibpath_var
24014
24015# Is shlibpath searched before the hard-coded library search path?
24016shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24017
24018# How to hardcode a shared library path into an executable.
24019hardcode_action=$hardcode_action_F77
24020
24021# Whether we should hardcode library paths into libraries.
24022hardcode_into_libs=$hardcode_into_libs
24023
24024# Flag to hardcode \$libdir into a binary during linking.
24025# This must work even if \$libdir does not exist.
24026hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24027
24028# If ld is used when linking, flag to hardcode \$libdir into
24029# a binary during linking. This must work even if \$libdir does
24030# not exist.
24031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24032
24033# Whether we need a single -rpath flag with a separated argument.
24034hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24035
24036# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24037# resulting binary.
24038hardcode_direct=$hardcode_direct_F77
24039
24040# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24041# resulting binary.
24042hardcode_minus_L=$hardcode_minus_L_F77
24043
24044# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24045# the resulting binary.
24046hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24047
24048# Set to yes if building a shared library automatically hardcodes DIR into the library
24049# and all subsequent libraries and executables linked against it.
24050hardcode_automatic=$hardcode_automatic_F77
24051
24052# Variables whose values should be saved in libtool wrapper scripts and
24053# restored at relink time.
24054variables_saved_for_relink="$variables_saved_for_relink"
24055
24056# Whether libtool must link a program against all its dependency libraries.
24057link_all_deplibs=$link_all_deplibs_F77
24058
24059# Compile-time system search path for libraries
24060sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24061
24062# Run-time system search path for libraries
24063sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24064
24065# Fix the shell variable \$srcfile for the compiler.
24066fix_srcfile_path="$fix_srcfile_path_F77"
24067
24068# Set to yes if exported symbols are required.
24069always_export_symbols=$always_export_symbols_F77
24070
24071# The commands to list exported symbols.
24072export_symbols_cmds=$lt_export_symbols_cmds_F77
24073
24074# The commands to extract the exported symbol list from a shared archive.
24075extract_expsyms_cmds=$lt_extract_expsyms_cmds
24076
24077# Symbols that should not be listed in the preloaded symbols.
24078exclude_expsyms=$lt_exclude_expsyms_F77
24079
24080# Symbols that must always be exported.
24081include_expsyms=$lt_include_expsyms_F77
24082
24083# ### END LIBTOOL TAG CONFIG: $tagname
24084
24085__EOF__
24086
24087
24088else
24089 # If there is no Makefile yet, we rely on a make rule to execute
24090 # `config.status --recheck' to rerun these tests and create the
24091 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24093 if test -f "$ltmain_in"; then
24094 test -f Makefile && make "$ltmain"
24095 fi
John Criswell47fdd832003-07-14 16:52:07 +000024096fi
24097
24098
24099ac_ext=c
24100ac_cpp='$CPP $CPPFLAGS'
24101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103ac_compiler_gnu=$ac_cv_c_compiler_gnu
24104
24105CC="$lt_save_CC"
24106
24107 else
24108 tagname=""
24109 fi
24110 ;;
24111
24112 GCJ)
24113 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024114 ac_ext=c
24115ac_cpp='$CPP $CPPFLAGS'
24116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24118ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024119
24120
24121# Source file extension for Java test sources.
24122ac_ext=java
24123
24124# Object file extension for compiled Java test sources.
24125objext=o
24126objext_GCJ=$objext
24127
24128# Code to be used in simple compile tests
24129lt_simple_compile_test_code="class foo {}\n"
24130
24131# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024132lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024133
24134# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24135
24136# If no C compiler was specified, use CC.
24137LTCC=${LTCC-"$CC"}
24138
Reid Spencera773bd52006-08-04 18:18:08 +000024139# If no C compiler flags were specified, use CFLAGS.
24140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24141
John Criswell47fdd832003-07-14 16:52:07 +000024142# Allow CC to be a program name with arguments.
24143compiler=$CC
24144
24145
Reid Spencera773bd52006-08-04 18:18:08 +000024146# save warnings/boilerplate of simple test code
24147ac_outfile=conftest.$ac_objext
24148printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24150_lt_compiler_boilerplate=`cat conftest.err`
24151$rm conftest*
24152
24153ac_outfile=conftest.$ac_objext
24154printf "$lt_simple_link_test_code" >conftest.$ac_ext
24155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24156_lt_linker_boilerplate=`cat conftest.err`
24157$rm conftest*
24158
24159
John Criswell47fdd832003-07-14 16:52:07 +000024160# Allow CC to be a program name with arguments.
24161lt_save_CC="$CC"
24162CC=${GCJ-"gcj"}
24163compiler=$CC
24164compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024165for cc_temp in $compiler""; do
24166 case $cc_temp in
24167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24169 \-*) ;;
24170 *) break;;
24171 esac
24172done
24173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24174
John Criswell47fdd832003-07-14 16:52:07 +000024175
24176# GCJ did not exist at the time GCC didn't implicitly link libc in.
24177archive_cmds_need_lc_GCJ=no
24178
Reid Spencera773bd52006-08-04 18:18:08 +000024179old_archive_cmds_GCJ=$old_archive_cmds
24180
John Criswell47fdd832003-07-14 16:52:07 +000024181
24182lt_prog_compiler_no_builtin_flag_GCJ=
24183
24184if test "$GCC" = yes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24186
Reid Spencer2706f8c2004-09-19 23:53:36 +000024187
Reid Spencera773bd52006-08-04 18:18:08 +000024188{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24189echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024190if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24192else
24193 lt_cv_prog_compiler_rtti_exceptions=no
24194 ac_outfile=conftest.$ac_objext
24195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24196 lt_compiler_flag="-fno-rtti -fno-exceptions"
24197 # Insert the option either (1) after the last *FLAGS variable, or
24198 # (2) before a word containing "conftest.", or (3) at the end.
24199 # Note that $ac_compile itself does not contain backslashes and begins
24200 # with a dollar sign (not a hyphen), so the echo should work correctly.
24201 # The option is referenced via a variable to avoid confusing sed.
24202 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24205 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024206 (eval echo "\"\$as_me:24206: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024207 (eval "$lt_compile" 2>conftest.err)
24208 ac_status=$?
24209 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024210 echo "$as_me:24210: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024211 if (exit $ac_status) && test -s "$ac_outfile"; then
24212 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024213 # So say no if there are warnings other than the usual output.
24214 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024217 lt_cv_prog_compiler_rtti_exceptions=yes
24218 fi
24219 fi
24220 $rm conftest*
24221
24222fi
Reid Spencera773bd52006-08-04 18:18:08 +000024223{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24224echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024225
24226if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24227 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24228else
24229 :
24230fi
24231
24232fi
24233
24234lt_prog_compiler_wl_GCJ=
24235lt_prog_compiler_pic_GCJ=
24236lt_prog_compiler_static_GCJ=
24237
Reid Spencera773bd52006-08-04 18:18:08 +000024238{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24239echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024240
24241 if test "$GCC" = yes; then
24242 lt_prog_compiler_wl_GCJ='-Wl,'
24243 lt_prog_compiler_static_GCJ='-static'
24244
24245 case $host_os in
24246 aix*)
24247 # All AIX code is PIC.
24248 if test "$host_cpu" = ia64; then
24249 # AIX 5 now supports IA64 processor
24250 lt_prog_compiler_static_GCJ='-Bstatic'
24251 fi
24252 ;;
24253
24254 amigaos*)
24255 # FIXME: we need at least 68020 code to build shared libraries, but
24256 # adding the `-m68020' flag to GCC prevents building anything better,
24257 # like `-m68040'.
24258 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24259 ;;
24260
24261 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24262 # PIC is the default for these OSes.
24263 ;;
24264
24265 mingw* | pw32* | os2*)
24266 # This hack is so that the source file can tell whether it is being
24267 # built for inclusion in a dll (and should export symbols for example).
24268 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24269 ;;
24270
24271 darwin* | rhapsody*)
24272 # PIC is the default on this platform
24273 # Common symbols not allowed in MH_DYLIB files
24274 lt_prog_compiler_pic_GCJ='-fno-common'
24275 ;;
24276
Reid Spencera773bd52006-08-04 18:18:08 +000024277 interix3*)
24278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24279 # Instead, we relocate shared libraries at runtime.
24280 ;;
24281
John Criswell47fdd832003-07-14 16:52:07 +000024282 msdosdjgpp*)
24283 # Just because we use GCC doesn't mean we suddenly get shared libraries
24284 # on systems that don't support them.
24285 lt_prog_compiler_can_build_shared_GCJ=no
24286 enable_shared=no
24287 ;;
24288
24289 sysv4*MP*)
24290 if test -d /usr/nec; then
24291 lt_prog_compiler_pic_GCJ=-Kconform_pic
24292 fi
24293 ;;
24294
24295 hpux*)
24296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24297 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024298 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024299 hppa*64*|ia64*)
24300 # +Z the default
24301 ;;
24302 *)
24303 lt_prog_compiler_pic_GCJ='-fPIC'
24304 ;;
24305 esac
24306 ;;
24307
24308 *)
24309 lt_prog_compiler_pic_GCJ='-fPIC'
24310 ;;
24311 esac
24312 else
24313 # PORTME Check for flag to pass linker flags through the system compiler.
24314 case $host_os in
24315 aix*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 if test "$host_cpu" = ia64; then
24318 # AIX 5 now supports IA64 processor
24319 lt_prog_compiler_static_GCJ='-Bstatic'
24320 else
24321 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24322 fi
24323 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024324 darwin*)
24325 # PIC is the default on this platform
24326 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024327 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024328 xlc*)
24329 lt_prog_compiler_pic_GCJ='-qnocommon'
24330 lt_prog_compiler_wl_GCJ='-Wl,'
24331 ;;
24332 esac
24333 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024334
24335 mingw* | pw32* | os2*)
24336 # This hack is so that the source file can tell whether it is being
24337 # built for inclusion in a dll (and should export symbols for example).
24338 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24339 ;;
24340
24341 hpux9* | hpux10* | hpux11*)
24342 lt_prog_compiler_wl_GCJ='-Wl,'
24343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024345 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024346 hppa*64*|ia64*)
24347 # +Z the default
24348 ;;
24349 *)
24350 lt_prog_compiler_pic_GCJ='+Z'
24351 ;;
24352 esac
24353 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24354 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24355 ;;
24356
24357 irix5* | irix6* | nonstopux*)
24358 lt_prog_compiler_wl_GCJ='-Wl,'
24359 # PIC (with -KPIC) is the default.
24360 lt_prog_compiler_static_GCJ='-non_shared'
24361 ;;
24362
24363 newsos6)
24364 lt_prog_compiler_pic_GCJ='-KPIC'
24365 lt_prog_compiler_static_GCJ='-Bstatic'
24366 ;;
24367
24368 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024369 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024370 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024371 lt_prog_compiler_wl_GCJ='-Wl,'
24372 lt_prog_compiler_pic_GCJ='-KPIC'
24373 lt_prog_compiler_static_GCJ='-static'
24374 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024375 pgcc* | pgf77* | pgf90* | pgf95*)
24376 # Portland Group compilers (*not* the Pentium gcc compiler,
24377 # which looks to be a dead project)
24378 lt_prog_compiler_wl_GCJ='-Wl,'
24379 lt_prog_compiler_pic_GCJ='-fpic'
24380 lt_prog_compiler_static_GCJ='-Bstatic'
24381 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024382 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024383 lt_prog_compiler_wl_GCJ='-Wl,'
24384 # All Alpha code is PIC.
24385 lt_prog_compiler_static_GCJ='-non_shared'
24386 ;;
24387 esac
24388 ;;
24389
24390 osf3* | osf4* | osf5*)
24391 lt_prog_compiler_wl_GCJ='-Wl,'
24392 # All OSF/1 code is PIC.
24393 lt_prog_compiler_static_GCJ='-non_shared'
24394 ;;
24395
John Criswell47fdd832003-07-14 16:52:07 +000024396 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024397 lt_prog_compiler_pic_GCJ='-KPIC'
24398 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024399 case $cc_basename in
24400 f77* | f90* | f95*)
24401 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24402 *)
24403 lt_prog_compiler_wl_GCJ='-Wl,';;
24404 esac
John Criswell47fdd832003-07-14 16:52:07 +000024405 ;;
24406
24407 sunos4*)
24408 lt_prog_compiler_wl_GCJ='-Qoption ld '
24409 lt_prog_compiler_pic_GCJ='-PIC'
24410 lt_prog_compiler_static_GCJ='-Bstatic'
24411 ;;
24412
Reid Spencera773bd52006-08-04 18:18:08 +000024413 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024414 lt_prog_compiler_wl_GCJ='-Wl,'
24415 lt_prog_compiler_pic_GCJ='-KPIC'
24416 lt_prog_compiler_static_GCJ='-Bstatic'
24417 ;;
24418
24419 sysv4*MP*)
24420 if test -d /usr/nec ;then
24421 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24422 lt_prog_compiler_static_GCJ='-Bstatic'
24423 fi
24424 ;;
24425
Reid Spencera773bd52006-08-04 18:18:08 +000024426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24427 lt_prog_compiler_wl_GCJ='-Wl,'
24428 lt_prog_compiler_pic_GCJ='-KPIC'
24429 lt_prog_compiler_static_GCJ='-Bstatic'
24430 ;;
24431
24432 unicos*)
24433 lt_prog_compiler_wl_GCJ='-Wl,'
24434 lt_prog_compiler_can_build_shared_GCJ=no
24435 ;;
24436
John Criswell47fdd832003-07-14 16:52:07 +000024437 uts4*)
24438 lt_prog_compiler_pic_GCJ='-pic'
24439 lt_prog_compiler_static_GCJ='-Bstatic'
24440 ;;
24441
24442 *)
24443 lt_prog_compiler_can_build_shared_GCJ=no
24444 ;;
24445 esac
24446 fi
24447
Reid Spencera773bd52006-08-04 18:18:08 +000024448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24449echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024450
24451#
24452# Check to make sure the PIC flag actually works.
24453#
24454if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024455
Reid Spencera773bd52006-08-04 18:18:08 +000024456{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24457echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024458if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24460else
24461 lt_prog_compiler_pic_works_GCJ=no
24462 ac_outfile=conftest.$ac_objext
24463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24464 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24465 # Insert the option either (1) after the last *FLAGS variable, or
24466 # (2) before a word containing "conftest.", or (3) at the end.
24467 # Note that $ac_compile itself does not contain backslashes and begins
24468 # with a dollar sign (not a hyphen), so the echo should work correctly.
24469 # The option is referenced via a variable to avoid confusing sed.
24470 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24473 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024474 (eval echo "\"\$as_me:24474: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024475 (eval "$lt_compile" 2>conftest.err)
24476 ac_status=$?
24477 cat conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024478 echo "$as_me:24478: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024479 if (exit $ac_status) && test -s "$ac_outfile"; then
24480 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024481 # So say no if there are warnings other than the usual output.
24482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024485 lt_prog_compiler_pic_works_GCJ=yes
24486 fi
24487 fi
24488 $rm conftest*
24489
24490fi
Reid Spencera773bd52006-08-04 18:18:08 +000024491{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24492echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024493
24494if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24495 case $lt_prog_compiler_pic_GCJ in
24496 "" | " "*) ;;
24497 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24498 esac
24499else
24500 lt_prog_compiler_pic_GCJ=
24501 lt_prog_compiler_can_build_shared_GCJ=no
24502fi
24503
24504fi
Reid Spencera773bd52006-08-04 18:18:08 +000024505case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024506 # For platforms which do not support PIC, -DPIC is meaningless:
24507 *djgpp*)
24508 lt_prog_compiler_pic_GCJ=
24509 ;;
24510 *)
24511 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24512 ;;
24513esac
24514
Reid Spencera773bd52006-08-04 18:18:08 +000024515#
24516# Check to make sure the static flag actually works.
24517#
24518wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24519{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24520echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24521if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24523else
24524 lt_prog_compiler_static_works_GCJ=no
24525 save_LDFLAGS="$LDFLAGS"
24526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24527 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24529 # The linker can only warn and ignore the option if not recognized
24530 # So say no if there are warnings
24531 if test -s conftest.err; then
24532 # Append any errors to the config.log.
24533 cat conftest.err 1>&5
24534 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24536 if diff conftest.exp conftest.er2 >/dev/null; then
24537 lt_prog_compiler_static_works_GCJ=yes
24538 fi
24539 else
24540 lt_prog_compiler_static_works_GCJ=yes
24541 fi
24542 fi
24543 $rm conftest*
24544 LDFLAGS="$save_LDFLAGS"
24545
24546fi
24547{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24548echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24549
24550if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24551 :
24552else
24553 lt_prog_compiler_static_GCJ=
24554fi
24555
24556
24557{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24558echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024559if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24561else
24562 lt_cv_prog_compiler_c_o_GCJ=no
24563 $rm -r conftest 2>/dev/null
24564 mkdir conftest
24565 cd conftest
24566 mkdir out
24567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24568
John Criswell47fdd832003-07-14 16:52:07 +000024569 lt_compiler_flag="-o out/conftest2.$ac_objext"
24570 # Insert the option either (1) after the last *FLAGS variable, or
24571 # (2) before a word containing "conftest.", or (3) at the end.
24572 # Note that $ac_compile itself does not contain backslashes and begins
24573 # with a dollar sign (not a hyphen), so the echo should work correctly.
24574 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24577 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024578 (eval echo "\"\$as_me:24578: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024579 (eval "$lt_compile" 2>out/conftest.err)
24580 ac_status=$?
24581 cat out/conftest.err >&5
Daniel Dunbar1fce9482009-11-04 04:32:50 +000024582 echo "$as_me:24582: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24584 then
24585 # The compiler can only warn and ignore the option if not recognized
24586 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024590 lt_cv_prog_compiler_c_o_GCJ=yes
24591 fi
24592 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024593 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024594 $rm conftest*
24595 # SGI C++ compiler will create directory out/ii_files/ for
24596 # template instantiation
24597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24598 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024599 cd ..
24600 rmdir conftest
24601 $rm conftest*
24602
24603fi
Reid Spencera773bd52006-08-04 18:18:08 +000024604{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24605echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024606
24607
24608hard_links="nottested"
24609if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24610 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024611 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024613 hard_links=yes
24614 $rm conftest*
24615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24616 touch conftest.a
24617 ln conftest.a conftest.b 2>&5 || hard_links=no
24618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024619 { echo "$as_me:$LINENO: result: $hard_links" >&5
24620echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024621 if test "$hard_links" = no; then
24622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24624 need_locks=warn
24625 fi
24626else
24627 need_locks=no
24628fi
24629
Reid Spencera773bd52006-08-04 18:18:08 +000024630{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024632
24633 runpath_var=
24634 allow_undefined_flag_GCJ=
24635 enable_shared_with_static_runtimes_GCJ=no
24636 archive_cmds_GCJ=
24637 archive_expsym_cmds_GCJ=
24638 old_archive_From_new_cmds_GCJ=
24639 old_archive_from_expsyms_cmds_GCJ=
24640 export_dynamic_flag_spec_GCJ=
24641 whole_archive_flag_spec_GCJ=
24642 thread_safe_flag_spec_GCJ=
24643 hardcode_libdir_flag_spec_GCJ=
24644 hardcode_libdir_flag_spec_ld_GCJ=
24645 hardcode_libdir_separator_GCJ=
24646 hardcode_direct_GCJ=no
24647 hardcode_minus_L_GCJ=no
24648 hardcode_shlibpath_var_GCJ=unsupported
24649 link_all_deplibs_GCJ=unknown
24650 hardcode_automatic_GCJ=no
24651 module_cmds_GCJ=
24652 module_expsym_cmds_GCJ=
24653 always_export_symbols_GCJ=no
24654 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24655 # include_expsyms should be a list of space-separated symbols to be *always*
24656 # included in the symbol list
24657 include_expsyms_GCJ=
24658 # exclude_expsyms can be an extended regexp of symbols to exclude
24659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24661 # as well as any symbol that contains `d'.
24662 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24664 # platforms (ab)use it in PIC code, but their linkers get confused if
24665 # the symbol is explicitly referenced. Since portable code cannot
24666 # rely on this symbol name, it's probably fine to never include it in
24667 # preloaded symbol tables.
24668 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024669 # Just being paranoid about ensuring that cc_basename is set.
24670 for cc_temp in $compiler""; do
24671 case $cc_temp in
24672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24674 \-*) ;;
24675 *) break;;
24676 esac
24677done
24678cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024679
24680 case $host_os in
24681 cygwin* | mingw* | pw32*)
24682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24683 # When not using gcc, we currently assume that we are using
24684 # Microsoft Visual C++.
24685 if test "$GCC" != yes; then
24686 with_gnu_ld=no
24687 fi
24688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024689 interix*)
24690 # we just hope/assume this is gcc and not c89 (= MSVC++)
24691 with_gnu_ld=yes
24692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024693 openbsd*)
24694 with_gnu_ld=no
24695 ;;
24696 esac
24697
24698 ld_shlibs_GCJ=yes
24699 if test "$with_gnu_ld" = yes; then
24700 # If archive_cmds runs LD, not CC, wlarc should be empty
24701 wlarc='${wl}'
24702
Reid Spencera773bd52006-08-04 18:18:08 +000024703 # Set some defaults for GNU ld with shared library support. These
24704 # are reset later if shared libraries are not supported. Putting them
24705 # here allows them to be overridden if necessary.
24706 runpath_var=LD_RUN_PATH
24707 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24708 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24709 # ancient GNU ld didn't support --whole-archive et. al.
24710 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24711 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24712 else
24713 whole_archive_flag_spec_GCJ=
24714 fi
24715 supports_anon_versioning=no
24716 case `$LD -v 2>/dev/null` in
24717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24720 *\ 2.11.*) ;; # other 2.11 versions
24721 *) supports_anon_versioning=yes ;;
24722 esac
24723
John Criswell47fdd832003-07-14 16:52:07 +000024724 # See if GNU ld supports shared libraries.
24725 case $host_os in
24726 aix3* | aix4* | aix5*)
24727 # On AIX/PPC, the GNU linker is very broken
24728 if test "$host_cpu" != ia64; then
24729 ld_shlibs_GCJ=no
24730 cat <<EOF 1>&2
24731
24732*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24733*** to be unable to reliably create shared libraries on AIX.
24734*** Therefore, libtool is disabling shared libraries support. If you
24735*** really care for shared libraries, you may want to modify your PATH
24736*** so that a non-GNU linker is found, and then restart.
24737
24738EOF
24739 fi
24740 ;;
24741
24742 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024743 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 +000024744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24745 hardcode_minus_L_GCJ=yes
24746
24747 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24748 # that the semantics of dynamic libraries on AmigaOS, at least up
24749 # to version 4, is to share data among multiple programs linked
24750 # with the same dynamic library. Since this doesn't match the
24751 # behavior of shared libraries on other platforms, we can't use
24752 # them.
24753 ld_shlibs_GCJ=no
24754 ;;
24755
24756 beos*)
24757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24758 allow_undefined_flag_GCJ=unsupported
24759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24760 # support --undefined. This deserves some investigation. FIXME
24761 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24762 else
24763 ld_shlibs_GCJ=no
24764 fi
24765 ;;
24766
24767 cygwin* | mingw* | pw32*)
24768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24769 # as there is no search path for DLLs.
24770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24771 allow_undefined_flag_GCJ=unsupported
24772 always_export_symbols_GCJ=no
24773 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024774 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 +000024775
24776 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024777 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 +000024778 # If the export-symbols file already is a .def file (1st line
24779 # is EXPORTS), use it as is; otherwise, prepend...
24780 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24781 cp $export_symbols $output_objdir/$soname.def;
24782 else
24783 echo EXPORTS > $output_objdir/$soname.def;
24784 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024785 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024786 $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 +000024787 else
Reid Spencera773bd52006-08-04 18:18:08 +000024788 ld_shlibs_GCJ=no
24789 fi
24790 ;;
24791
24792 interix3*)
24793 hardcode_direct_GCJ=no
24794 hardcode_shlibpath_var_GCJ=no
24795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24796 export_dynamic_flag_spec_GCJ='${wl}-E'
24797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24798 # Instead, shared libraries are loaded at an image base (0x10000000 by
24799 # default) and relocated if they conflict, which is a slow very memory
24800 # consuming and fragmenting process. To avoid this, we pick a random,
24801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24803 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'
24804 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'
24805 ;;
24806
24807 linux*)
24808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24809 tmp_addflag=
24810 case $cc_basename,$host_cpu in
24811 pgcc*) # Portland Group C compiler
24812 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'
24813 tmp_addflag=' $pic_flag'
24814 ;;
24815 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24816 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'
24817 tmp_addflag=' $pic_flag -Mnomain' ;;
24818 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24819 tmp_addflag=' -i_dynamic' ;;
24820 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24821 tmp_addflag=' -i_dynamic -nofor_main' ;;
24822 ifc* | ifort*) # Intel Fortran compiler
24823 tmp_addflag=' -nofor_main' ;;
24824 esac
24825 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24826
24827 if test $supports_anon_versioning = yes; then
24828 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24830 $echo "local: *; };" >> $output_objdir/$libname.ver~
24831 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24832 fi
24833 else
24834 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024835 fi
24836 ;;
24837
24838 netbsd*)
24839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24840 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24841 wlarc=
24842 else
24843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24845 fi
24846 ;;
24847
Reid Spencera773bd52006-08-04 18:18:08 +000024848 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024849 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24850 ld_shlibs_GCJ=no
24851 cat <<EOF 1>&2
24852
24853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24854*** create shared libraries on Solaris systems. Therefore, libtool
24855*** is disabling shared libraries support. We urge you to upgrade GNU
24856*** binutils to release 2.9.1 or newer. Another option is to modify
24857*** your PATH or compiler configuration so that the native linker is
24858*** used, and then restart.
24859
24860EOF
24861 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24864 else
24865 ld_shlibs_GCJ=no
24866 fi
24867 ;;
24868
Reid Spencera773bd52006-08-04 18:18:08 +000024869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24870 case `$LD -v 2>&1` in
24871 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24872 ld_shlibs_GCJ=no
24873 cat <<_LT_EOF 1>&2
24874
24875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24876*** reliably create shared libraries on SCO systems. Therefore, libtool
24877*** is disabling shared libraries support. We urge you to upgrade GNU
24878*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24879*** your PATH or compiler configuration so that the native linker is
24880*** used, and then restart.
24881
24882_LT_EOF
24883 ;;
24884 *)
24885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24886 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24889 else
24890 ld_shlibs_GCJ=no
24891 fi
24892 ;;
24893 esac
24894 ;;
24895
John Criswell47fdd832003-07-14 16:52:07 +000024896 sunos4*)
24897 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24898 wlarc=
24899 hardcode_direct_GCJ=yes
24900 hardcode_shlibpath_var_GCJ=no
24901 ;;
24902
24903 *)
24904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24906 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24907 else
24908 ld_shlibs_GCJ=no
24909 fi
24910 ;;
24911 esac
24912
Reid Spencera773bd52006-08-04 18:18:08 +000024913 if test "$ld_shlibs_GCJ" = no; then
24914 runpath_var=
24915 hardcode_libdir_flag_spec_GCJ=
24916 export_dynamic_flag_spec_GCJ=
24917 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024918 fi
24919 else
24920 # PORTME fill in a description of your system's linker (not GNU ld)
24921 case $host_os in
24922 aix3*)
24923 allow_undefined_flag_GCJ=unsupported
24924 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024925 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 +000024926 # Note: this linker hardcodes the directories in LIBPATH if there
24927 # are no directories specified by -L.
24928 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024929 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024930 # Neither direct hardcoding nor static linking is supported with a
24931 # broken collect2.
24932 hardcode_direct_GCJ=unsupported
24933 fi
24934 ;;
24935
24936 aix4* | aix5*)
24937 if test "$host_cpu" = ia64; then
24938 # On IA64, the linker does run time linking by default, so we don't
24939 # have to do anything special.
24940 aix_use_runtimelinking=no
24941 exp_sym_flag='-Bexport'
24942 no_entry_flag=""
24943 else
24944 # If we're using GNU nm, then we don't want the "-C" option.
24945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24946 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24947 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'
24948 else
24949 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'
24950 fi
24951 aix_use_runtimelinking=no
24952
24953 # Test if we are trying to use run time linking or normal
24954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24955 # need to do runtime linking.
24956 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24957 for ld_flag in $LDFLAGS; do
24958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24959 aix_use_runtimelinking=yes
24960 break
24961 fi
24962 done
Reid Spencera773bd52006-08-04 18:18:08 +000024963 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024964 esac
24965
24966 exp_sym_flag='-bexport'
24967 no_entry_flag='-bnoentry'
24968 fi
24969
24970 # When large executables or shared objects are built, AIX ld can
24971 # have problems creating the table of contents. If linking a library
24972 # or program results in "error TOC overflow" add -mminimal-toc to
24973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24975
24976 archive_cmds_GCJ=''
24977 hardcode_direct_GCJ=yes
24978 hardcode_libdir_separator_GCJ=':'
24979 link_all_deplibs_GCJ=yes
24980
24981 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024982 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024983 # We only want to do this on AIX 4.2 and lower, the check
24984 # below for broken collect2 doesn't work under 4.3+
24985 collect2name=`${CC} -print-prog-name=collect2`
24986 if test -f "$collect2name" && \
24987 strings "$collect2name" | grep resolve_lib_name >/dev/null
24988 then
24989 # We have reworked collect2
24990 hardcode_direct_GCJ=yes
24991 else
24992 # We have old collect2
24993 hardcode_direct_GCJ=unsupported
24994 # It fails to find uninstalled libraries when the uninstalled
24995 # path is not listed in the libpath. Setting hardcode_minus_L
24996 # to unsupported forces relinking
24997 hardcode_minus_L_GCJ=yes
24998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24999 hardcode_libdir_separator_GCJ=
25000 fi
Reid Spencera773bd52006-08-04 18:18:08 +000025001 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025002 esac
25003 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000025004 if test "$aix_use_runtimelinking" = yes; then
25005 shared_flag="$shared_flag "'${wl}-G'
25006 fi
John Criswell47fdd832003-07-14 16:52:07 +000025007 else
25008 # not using gcc
25009 if test "$host_cpu" = ia64; then
25010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25011 # chokes on -Wl,-G. The following line is correct:
25012 shared_flag='-G'
25013 else
Reid Spencera773bd52006-08-04 18:18:08 +000025014 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000025015 shared_flag='${wl}-G'
25016 else
25017 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000025018 fi
John Criswell47fdd832003-07-14 16:52:07 +000025019 fi
25020 fi
25021
25022 # It seems that -bexpall does not export symbols beginning with
25023 # underscore (_), so it is better to generate a list of symbols to export.
25024 always_export_symbols_GCJ=yes
25025 if test "$aix_use_runtimelinking" = yes; then
25026 # Warning - without using the other runtime loading flags (-brtl),
25027 # -berok will link without error, but may produce a broken library.
25028 allow_undefined_flag_GCJ='-berok'
25029 # Determine the default libpath from the value encoded in an empty executable.
25030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025031/* confdefs.h. */
25032_ACEOF
25033cat confdefs.h >>conftest.$ac_ext
25034cat >>conftest.$ac_ext <<_ACEOF
25035/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025036
John Criswell47fdd832003-07-14 16:52:07 +000025037int
25038main ()
25039{
25040
25041 ;
25042 return 0;
25043}
25044_ACEOF
25045rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025046if { (ac_try="$ac_link"
25047case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050esac
25051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025058 (exit $ac_status); } &&
25059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25060 { (case "(($ac_try" in
25061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062 *) ac_try_echo=$ac_try;;
25063esac
25064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065 (eval "$ac_try") 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest$ac_exeext'
25070 { (case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25073esac
25074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_try") 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025079
25080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25081}'`
25082# Check for a 64-bit object if we didn't find anything.
25083if 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; }
25084}'`; fi
25085else
25086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025087sed 's/^/| /' conftest.$ac_ext >&5
25088
Reid Spencera773bd52006-08-04 18:18:08 +000025089
John Criswell47fdd832003-07-14 16:52:07 +000025090fi
Reid Spencera773bd52006-08-04 18:18:08 +000025091
Bill Wendlingebcceee2009-04-18 11:20:33 +000025092rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025093 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25095
25096 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025097 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 +000025098 else
25099 if test "$host_cpu" = ia64; then
25100 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25101 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025102 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 +000025103 else
25104 # Determine the default libpath from the value encoded in an empty executable.
25105 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025106/* confdefs.h. */
25107_ACEOF
25108cat confdefs.h >>conftest.$ac_ext
25109cat >>conftest.$ac_ext <<_ACEOF
25110/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025111
John Criswell47fdd832003-07-14 16:52:07 +000025112int
25113main ()
25114{
25115
25116 ;
25117 return 0;
25118}
25119_ACEOF
25120rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025121if { (ac_try="$ac_link"
25122case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25125esac
25126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025128 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025133 (exit $ac_status); } &&
25134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25135 { (case "(($ac_try" in
25136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25138esac
25139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_try") 2>&5
25141 ac_status=$?
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; } &&
25144 { ac_try='test -s conftest$ac_exeext'
25145 { (case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25148esac
25149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_try") 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025154
25155aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25156}'`
25157# Check for a 64-bit object if we didn't find anything.
25158if 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; }
25159}'`; fi
25160else
25161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025162sed 's/^/| /' conftest.$ac_ext >&5
25163
Reid Spencera773bd52006-08-04 18:18:08 +000025164
John Criswell47fdd832003-07-14 16:52:07 +000025165fi
Reid Spencera773bd52006-08-04 18:18:08 +000025166
Bill Wendlingebcceee2009-04-18 11:20:33 +000025167rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025168 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25170
25171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25172 # Warning - without using the other run time loading flags,
25173 # -berok will link without error, but may produce a broken library.
25174 no_undefined_flag_GCJ=' ${wl}-bernotok'
25175 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025176 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025177 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025178 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025179 # This is similar to how AIX traditionally builds its shared libraries.
25180 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 +000025181 fi
25182 fi
25183 ;;
25184
25185 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025186 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 +000025187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25188 hardcode_minus_L_GCJ=yes
25189 # see comment about different semantics on the GNU ld section
25190 ld_shlibs_GCJ=no
25191 ;;
25192
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025194 export_dynamic_flag_spec_GCJ=-rdynamic
25195 ;;
25196
25197 cygwin* | mingw* | pw32*)
25198 # When not using gcc, we currently assume that we are using
25199 # Microsoft Visual C++.
25200 # hardcode_libdir_flag_spec is actually meaningless, as there is
25201 # no search path for DLLs.
25202 hardcode_libdir_flag_spec_GCJ=' '
25203 allow_undefined_flag_GCJ=unsupported
25204 # Tell ltmain to make .lib files, not .a files.
25205 libext=lib
25206 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025208 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025209 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 +000025210 # The linker will automatically build a .lib file if we build a DLL.
25211 old_archive_From_new_cmds_GCJ='true'
25212 # FIXME: Should let the user specify the lib program.
25213 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025214 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025215 enable_shared_with_static_runtimes_GCJ=yes
25216 ;;
25217
25218 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025219 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025220 rhapsody* | darwin1.[012])
25221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25222 ;;
25223 *) # Darwin 1.3 on
25224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25225 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25226 else
25227 case ${MACOSX_DEPLOYMENT_TARGET} in
25228 10.[012])
25229 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25230 ;;
25231 10.*)
25232 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25233 ;;
25234 esac
25235 fi
25236 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025237 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025238 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025239 hardcode_direct_GCJ=no
25240 hardcode_automatic_GCJ=yes
25241 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025242 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025243 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025244 if test "$GCC" = yes ; then
25245 output_verbose_link_cmd='echo'
25246 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25247 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025248 # 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 +000025249 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}'
25250 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 +000025251 else
Reid Spencera773bd52006-08-04 18:18:08 +000025252 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025253 xlc*)
25254 output_verbose_link_cmd='echo'
25255 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25256 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025257 # 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 +000025258 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}'
25259 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 +000025260 ;;
25261 *)
25262 ld_shlibs_GCJ=no
25263 ;;
25264 esac
John Criswell47fdd832003-07-14 16:52:07 +000025265 fi
25266 ;;
25267
25268 dgux*)
25269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25271 hardcode_shlibpath_var_GCJ=no
25272 ;;
25273
25274 freebsd1*)
25275 ld_shlibs_GCJ=no
25276 ;;
25277
25278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25279 # support. Future versions do this automatically, but an explicit c++rt0.o
25280 # does not break anything, and helps significantly (at the cost of a little
25281 # extra space).
25282 freebsd2.2*)
25283 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25285 hardcode_direct_GCJ=yes
25286 hardcode_shlibpath_var_GCJ=no
25287 ;;
25288
25289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25290 freebsd2*)
25291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25292 hardcode_direct_GCJ=yes
25293 hardcode_minus_L_GCJ=yes
25294 hardcode_shlibpath_var_GCJ=no
25295 ;;
25296
25297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025298 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025299 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25301 hardcode_direct_GCJ=yes
25302 hardcode_shlibpath_var_GCJ=no
25303 ;;
25304
25305 hpux9*)
25306 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025307 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 +000025308 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025309 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 +000025310 fi
25311 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25312 hardcode_libdir_separator_GCJ=:
25313 hardcode_direct_GCJ=yes
25314
25315 # hardcode_minus_L: Not really in the search PATH,
25316 # but as the default location of the library.
25317 hardcode_minus_L_GCJ=yes
25318 export_dynamic_flag_spec_GCJ='${wl}-E'
25319 ;;
25320
Reid Spencera773bd52006-08-04 18:18:08 +000025321 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025323 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25324 else
25325 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25326 fi
25327 if test "$with_gnu_ld" = no; then
25328 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25329 hardcode_libdir_separator_GCJ=:
25330
25331 hardcode_direct_GCJ=yes
25332 export_dynamic_flag_spec_GCJ='${wl}-E'
25333
25334 # hardcode_minus_L: Not really in the search PATH,
25335 # but as the default location of the library.
25336 hardcode_minus_L_GCJ=yes
25337 fi
25338 ;;
25339
25340 hpux11*)
25341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25342 case $host_cpu in
25343 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025344 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025346 ia64*)
25347 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25348 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025349 *)
25350 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25351 ;;
25352 esac
25353 else
Reid Spencera773bd52006-08-04 18:18:08 +000025354 case $host_cpu in
25355 hppa*64*)
25356 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25357 ;;
25358 ia64*)
25359 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025360 ;;
25361 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025362 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 +000025363 ;;
25364 esac
25365 fi
25366 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25368 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025369
Reid Spencera773bd52006-08-04 18:18:08 +000025370 case $host_cpu in
25371 hppa*64*|ia64*)
25372 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25373 hardcode_direct_GCJ=no
25374 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025375 ;;
25376 *)
John Criswell47fdd832003-07-14 16:52:07 +000025377 hardcode_direct_GCJ=yes
25378 export_dynamic_flag_spec_GCJ='${wl}-E'
25379
25380 # hardcode_minus_L: Not really in the search PATH,
25381 # but as the default location of the library.
25382 hardcode_minus_L_GCJ=yes
25383 ;;
25384 esac
25385 fi
25386 ;;
25387
25388 irix5* | irix6* | nonstopux*)
25389 if test "$GCC" = yes; then
25390 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'
25391 else
25392 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'
25393 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25394 fi
25395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25396 hardcode_libdir_separator_GCJ=:
25397 link_all_deplibs_GCJ=yes
25398 ;;
25399
25400 netbsd*)
25401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25403 else
25404 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25405 fi
25406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25407 hardcode_direct_GCJ=yes
25408 hardcode_shlibpath_var_GCJ=no
25409 ;;
25410
25411 newsos6)
25412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25413 hardcode_direct_GCJ=yes
25414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25415 hardcode_libdir_separator_GCJ=:
25416 hardcode_shlibpath_var_GCJ=no
25417 ;;
25418
25419 openbsd*)
25420 hardcode_direct_GCJ=yes
25421 hardcode_shlibpath_var_GCJ=no
25422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25423 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025424 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 +000025425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25426 export_dynamic_flag_spec_GCJ='${wl}-E'
25427 else
25428 case $host_os in
25429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25431 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25432 ;;
25433 *)
25434 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25436 ;;
25437 esac
25438 fi
25439 ;;
25440
25441 os2*)
25442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25443 hardcode_minus_L_GCJ=yes
25444 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025445 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 +000025446 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25447 ;;
25448
25449 osf3*)
25450 if test "$GCC" = yes; then
25451 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25452 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'
25453 else
25454 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25455 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'
25456 fi
25457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25458 hardcode_libdir_separator_GCJ=:
25459 ;;
25460
25461 osf4* | osf5*) # as osf3* with the addition of -msym flag
25462 if test "$GCC" = yes; then
25463 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25464 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'
25465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25466 else
25467 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25468 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 +000025469 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 +000025470 $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 +000025471
John Criswell47fdd832003-07-14 16:52:07 +000025472 # Both c and cxx compiler support -rpath directly
25473 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25474 fi
25475 hardcode_libdir_separator_GCJ=:
25476 ;;
25477
John Criswell47fdd832003-07-14 16:52:07 +000025478 solaris*)
25479 no_undefined_flag_GCJ=' -z text'
25480 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025481 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025482 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025483 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25484 $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 +000025485 else
Reid Spencera773bd52006-08-04 18:18:08 +000025486 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025487 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025488 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25489 $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 +000025490 fi
25491 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25492 hardcode_shlibpath_var_GCJ=no
25493 case $host_os in
25494 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025495 *)
25496 # The compiler driver will combine linker options so we
25497 # cannot just pass the convience library names through
25498 # without $wl, iff we do not link with $LD.
25499 # Luckily, gcc supports the same syntax we need for Sun Studio.
25500 # Supported since Solaris 2.6 (maybe 2.5.1?)
25501 case $wlarc in
25502 '')
25503 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25504 *)
25505 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' ;;
25506 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025507 esac
25508 link_all_deplibs_GCJ=yes
25509 ;;
25510
25511 sunos4*)
25512 if test "x$host_vendor" = xsequent; then
25513 # Use $CC to link under sequent, because it throws in some extra .o
25514 # files that make .init and .fini sections work.
25515 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25516 else
25517 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25518 fi
25519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25520 hardcode_direct_GCJ=yes
25521 hardcode_minus_L_GCJ=yes
25522 hardcode_shlibpath_var_GCJ=no
25523 ;;
25524
25525 sysv4)
25526 case $host_vendor in
25527 sni)
25528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25529 hardcode_direct_GCJ=yes # is this really true???
25530 ;;
25531 siemens)
25532 ## LD is ld it makes a PLAMLIB
25533 ## CC just makes a GrossModule.
25534 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25535 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25536 hardcode_direct_GCJ=no
25537 ;;
25538 motorola)
25539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25540 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25541 ;;
25542 esac
25543 runpath_var='LD_RUN_PATH'
25544 hardcode_shlibpath_var_GCJ=no
25545 ;;
25546
25547 sysv4.3*)
25548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25549 hardcode_shlibpath_var_GCJ=no
25550 export_dynamic_flag_spec_GCJ='-Bexport'
25551 ;;
25552
25553 sysv4*MP*)
25554 if test -d /usr/nec; then
25555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556 hardcode_shlibpath_var_GCJ=no
25557 runpath_var=LD_RUN_PATH
25558 hardcode_runpath_var=yes
25559 ld_shlibs_GCJ=yes
25560 fi
25561 ;;
25562
Reid Spencera773bd52006-08-04 18:18:08 +000025563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25564 no_undefined_flag_GCJ='${wl}-z,text'
25565 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025566 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025567 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025568
John Criswell47fdd832003-07-14 16:52:07 +000025569 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025570 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25571 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 +000025572 else
Reid Spencera773bd52006-08-04 18:18:08 +000025573 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25574 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 +000025575 fi
John Criswell47fdd832003-07-14 16:52:07 +000025576 ;;
25577
Reid Spencera773bd52006-08-04 18:18:08 +000025578 sysv5* | sco3.2v5* | sco5v6*)
25579 # Note: We can NOT use -z defs as we might desire, because we do not
25580 # link with -lc, and that would cause any symbols used from libc to
25581 # always be unresolved, which means just about no library would
25582 # ever link correctly. If we're not using GNU ld we use -z text
25583 # though, which does catch some bad symbols but isn't as heavy-handed
25584 # as -z defs.
25585 no_undefined_flag_GCJ='${wl}-z,text'
25586 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25587 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025588 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025589 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25590 hardcode_libdir_separator_GCJ=':'
25591 link_all_deplibs_GCJ=yes
25592 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025593 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025594
25595 if test "$GCC" = yes; then
25596 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25597 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25598 else
25599 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25600 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25601 fi
John Criswell47fdd832003-07-14 16:52:07 +000025602 ;;
25603
25604 uts4*)
25605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25607 hardcode_shlibpath_var_GCJ=no
25608 ;;
25609
25610 *)
25611 ld_shlibs_GCJ=no
25612 ;;
25613 esac
25614 fi
25615
Reid Spencera773bd52006-08-04 18:18:08 +000025616{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25617echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025618test "$ld_shlibs_GCJ" = no && can_build_shared=no
25619
John Criswell47fdd832003-07-14 16:52:07 +000025620#
25621# Do we need to explicitly link libc?
25622#
25623case "x$archive_cmds_need_lc_GCJ" in
25624x|xyes)
25625 # Assume -lc should be added
25626 archive_cmds_need_lc_GCJ=yes
25627
25628 if test "$enable_shared" = yes && test "$GCC" = yes; then
25629 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025630 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025631 # FIXME: we may have to deal with multi-command sequences.
25632 ;;
25633 '$CC '*)
25634 # Test whether the compiler implicitly links with -lc since on some
25635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25636 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25638echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025639 $rm conftest*
25640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25641
25642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25643 (eval $ac_compile) 2>&5
25644 ac_status=$?
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } 2>conftest.err; then
25647 soname=conftest
25648 lib=conftest
25649 libobjs=conftest.$ac_objext
25650 deplibs=
25651 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025652 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025653 compiler_flags=-v
25654 linker_flags=-v
25655 verstring=
25656 output_objdir=.
25657 libname=conftest
25658 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25659 allow_undefined_flag_GCJ=
25660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25661 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25662 ac_status=$?
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }
25665 then
25666 archive_cmds_need_lc_GCJ=no
25667 else
25668 archive_cmds_need_lc_GCJ=yes
25669 fi
25670 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25671 else
25672 cat conftest.err 1>&5
25673 fi
25674 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25676echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025677 ;;
25678 esac
25679 fi
25680 ;;
25681esac
25682
Reid Spencera773bd52006-08-04 18:18:08 +000025683{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25684echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025685library_names_spec=
25686libname_spec='lib$name'
25687soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025688shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025689postinstall_cmds=
25690postuninstall_cmds=
25691finish_cmds=
25692finish_eval=
25693shlibpath_var=
25694shlibpath_overrides_runpath=unknown
25695version_type=none
25696dynamic_linker="$host_os ld.so"
25697sys_lib_dlsearch_path_spec="/lib /usr/lib"
25698if test "$GCC" = yes; then
25699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25701 # if the path contains ";" then we assume it to be the separator
25702 # otherwise default to the standard path separator (i.e. ":") - it is
25703 # assumed that no part of a normal pathname contains ";" but that should
25704 # okay in the real world where ";" in dirpaths is itself problematic.
25705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25706 else
25707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25708 fi
25709else
25710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25711fi
25712need_lib_prefix=unknown
25713hardcode_into_libs=no
25714
25715# when you set need_version to no, make sure it does not cause -set_version
25716# flags to be left without arguments
25717need_version=unknown
25718
25719case $host_os in
25720aix3*)
25721 version_type=linux
25722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25723 shlibpath_var=LIBPATH
25724
25725 # AIX 3 has no versioning support, so we append a major version to the name.
25726 soname_spec='${libname}${release}${shared_ext}$major'
25727 ;;
25728
25729aix4* | aix5*)
25730 version_type=linux
25731 need_lib_prefix=no
25732 need_version=no
25733 hardcode_into_libs=yes
25734 if test "$host_cpu" = ia64; then
25735 # AIX 5 supports IA64
25736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25737 shlibpath_var=LD_LIBRARY_PATH
25738 else
25739 # With GCC up to 2.95.x, collect2 would create an import file
25740 # for dependence libraries. The import file would start with
25741 # the line `#! .'. This would cause the generated library to
25742 # depend on `.', always an invalid library. This was fixed in
25743 # development snapshots of GCC prior to 3.0.
25744 case $host_os in
25745 aix4 | aix4.[01] | aix4.[01].*)
25746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25747 echo ' yes '
25748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25749 :
25750 else
25751 can_build_shared=no
25752 fi
25753 ;;
25754 esac
25755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25756 # soname into executable. Probably we can add versioning support to
25757 # collect2, so additional links can be useful in future.
25758 if test "$aix_use_runtimelinking" = yes; then
25759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25760 # instead of lib<name>.a to let people know that these are not
25761 # typical AIX shared libraries.
25762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763 else
25764 # We preserve .a as extension for shared libraries through AIX4.2
25765 # and later when we are not doing run time linking.
25766 library_names_spec='${libname}${release}.a $libname.a'
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 fi
25769 shlibpath_var=LIBPATH
25770 fi
25771 ;;
25772
25773amigaos*)
25774 library_names_spec='$libname.ixlibrary $libname.a'
25775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025776 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 +000025777 ;;
25778
25779beos*)
25780 library_names_spec='${libname}${shared_ext}'
25781 dynamic_linker="$host_os ld.so"
25782 shlibpath_var=LIBRARY_PATH
25783 ;;
25784
Reid Spencer2706f8c2004-09-19 23:53:36 +000025785bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025786 version_type=linux
25787 need_version=no
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789 soname_spec='${libname}${release}${shared_ext}$major'
25790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25794 # the default ld.so.conf also contains /usr/contrib/lib and
25795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25796 # libtool to hard-code these into programs
25797 ;;
25798
25799cygwin* | mingw* | pw32*)
25800 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025801 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025802 need_version=no
25803 need_lib_prefix=no
25804
25805 case $GCC,$host_os in
25806 yes,cygwin* | yes,mingw* | yes,pw32*)
25807 library_names_spec='$libname.dll.a'
25808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025809 postinstall_cmds='base_file=`basename \${file}`~
25810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25811 dldir=$destdir/`dirname \$dlpath`~
25812 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025813 $install_prog $dir/$dlname \$dldir/$dlname~
25814 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25816 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025817 $rm \$dlpath'
25818 shlibpath_overrides_runpath=yes
25819
25820 case $host_os in
25821 cygwin*)
25822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25823 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 +000025824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025825 ;;
25826 mingw*)
25827 # MinGW DLLs use traditional 'lib' prefix
25828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25831 # It is most probably a Windows format PATH printed by
25832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25833 # path with ; separators, and with drive letters. We can handle the
25834 # drive letters (cygwin fileutils understands them), so leave them,
25835 # especially as we might pass files found there to a mingw objdump,
25836 # which wouldn't understand a cygwinified path. Ahh.
25837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25838 else
25839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25840 fi
25841 ;;
25842 pw32*)
25843 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025844 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 +000025845 ;;
25846 esac
25847 ;;
25848
25849 *)
25850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25851 ;;
25852 esac
25853 dynamic_linker='Win32 ld.exe'
25854 # FIXME: first we should search . and the directory the executable is in
25855 shlibpath_var=PATH
25856 ;;
25857
25858darwin* | rhapsody*)
25859 dynamic_linker="$host_os dyld"
25860 version_type=darwin
25861 need_lib_prefix=no
25862 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025864 soname_spec='${libname}${release}${major}$shared_ext'
25865 shlibpath_overrides_runpath=yes
25866 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025867 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025869 if test "$GCC" = yes; then
25870 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"`
25871 else
25872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025873 fi
25874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25875 ;;
25876
25877dgux*)
25878 version_type=linux
25879 need_lib_prefix=no
25880 need_version=no
25881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25882 soname_spec='${libname}${release}${shared_ext}$major'
25883 shlibpath_var=LD_LIBRARY_PATH
25884 ;;
25885
25886freebsd1*)
25887 dynamic_linker=no
25888 ;;
25889
Reid Spencer2706f8c2004-09-19 23:53:36 +000025890kfreebsd*-gnu)
25891 version_type=linux
25892 need_lib_prefix=no
25893 need_version=no
25894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25895 soname_spec='${libname}${release}${shared_ext}$major'
25896 shlibpath_var=LD_LIBRARY_PATH
25897 shlibpath_overrides_runpath=no
25898 hardcode_into_libs=yes
25899 dynamic_linker='GNU ld.so'
25900 ;;
25901
Reid Spencera773bd52006-08-04 18:18:08 +000025902freebsd* | dragonfly*)
25903 # DragonFly does not have aout. When/if they implement a new
25904 # versioning mechanism, adjust this.
25905 if test -x /usr/bin/objformat; then
25906 objformat=`/usr/bin/objformat`
25907 else
25908 case $host_os in
25909 freebsd[123]*) objformat=aout ;;
25910 *) objformat=elf ;;
25911 esac
25912 fi
John Criswell47fdd832003-07-14 16:52:07 +000025913 version_type=freebsd-$objformat
25914 case $version_type in
25915 freebsd-elf*)
25916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25917 need_version=no
25918 need_lib_prefix=no
25919 ;;
25920 freebsd-*)
25921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25922 need_version=yes
25923 ;;
25924 esac
25925 shlibpath_var=LD_LIBRARY_PATH
25926 case $host_os in
25927 freebsd2*)
25928 shlibpath_overrides_runpath=yes
25929 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025930 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025931 shlibpath_overrides_runpath=yes
25932 hardcode_into_libs=yes
25933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025936 shlibpath_overrides_runpath=no
25937 hardcode_into_libs=yes
25938 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025939 freebsd*) # from 4.6 on
25940 shlibpath_overrides_runpath=yes
25941 hardcode_into_libs=yes
25942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025943 esac
25944 ;;
25945
25946gnu*)
25947 version_type=linux
25948 need_lib_prefix=no
25949 need_version=no
25950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25951 soname_spec='${libname}${release}${shared_ext}$major'
25952 shlibpath_var=LD_LIBRARY_PATH
25953 hardcode_into_libs=yes
25954 ;;
25955
25956hpux9* | hpux10* | hpux11*)
25957 # Give a soname corresponding to the major version so that dld.sl refuses to
25958 # link against other versions.
25959 version_type=sunos
25960 need_lib_prefix=no
25961 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025962 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025963 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025964 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025965 hardcode_into_libs=yes
25966 dynamic_linker="$host_os dld.so"
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 soname_spec='${libname}${release}${shared_ext}$major'
25971 if test "X$HPUX_IA64_MODE" = X32; then
25972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25973 else
25974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25975 fi
25976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25977 ;;
25978 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025979 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025980 hardcode_into_libs=yes
25981 dynamic_linker="$host_os dld.sl"
25982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 soname_spec='${libname}${release}${shared_ext}$major'
25986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25988 ;;
25989 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025990 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025991 dynamic_linker="$host_os dld.sl"
25992 shlibpath_var=SHLIB_PATH
25993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25995 soname_spec='${libname}${release}${shared_ext}$major'
25996 ;;
25997 esac
25998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25999 postinstall_cmds='chmod 555 $lib'
26000 ;;
26001
Reid Spencera773bd52006-08-04 18:18:08 +000026002interix3*)
26003 version_type=linux
26004 need_lib_prefix=no
26005 need_version=no
26006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26007 soname_spec='${libname}${release}${shared_ext}$major'
26008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26009 shlibpath_var=LD_LIBRARY_PATH
26010 shlibpath_overrides_runpath=no
26011 hardcode_into_libs=yes
26012 ;;
26013
John Criswell47fdd832003-07-14 16:52:07 +000026014irix5* | irix6* | nonstopux*)
26015 case $host_os in
26016 nonstopux*) version_type=nonstopux ;;
26017 *)
26018 if test "$lt_cv_prog_gnu_ld" = yes; then
26019 version_type=linux
26020 else
26021 version_type=irix
26022 fi ;;
26023 esac
26024 need_lib_prefix=no
26025 need_version=no
26026 soname_spec='${libname}${release}${shared_ext}$major'
26027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26028 case $host_os in
26029 irix5* | nonstopux*)
26030 libsuff= shlibsuff=
26031 ;;
26032 *)
26033 case $LD in # libtool.m4 will add one of these switches to LD
26034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26035 libsuff= shlibsuff= libmagic=32-bit;;
26036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26037 libsuff=32 shlibsuff=N32 libmagic=N32;;
26038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26040 *) libsuff= shlibsuff= libmagic=never-match;;
26041 esac
26042 ;;
26043 esac
26044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26045 shlibpath_overrides_runpath=no
26046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26048 hardcode_into_libs=yes
26049 ;;
26050
26051# No shared lib support for Linux oldld, aout, or coff.
26052linux*oldld* | linux*aout* | linux*coff*)
26053 dynamic_linker=no
26054 ;;
26055
26056# This must be Linux ELF.
26057linux*)
26058 version_type=linux
26059 need_lib_prefix=no
26060 need_version=no
26061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26062 soname_spec='${libname}${release}${shared_ext}$major'
26063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26064 shlibpath_var=LD_LIBRARY_PATH
26065 shlibpath_overrides_runpath=no
26066 # This implies no fast_install, which is unacceptable.
26067 # Some rework will be needed to allow for fast_install
26068 # before this can be enabled.
26069 hardcode_into_libs=yes
26070
Reid Spencer2706f8c2004-09-19 23:53:36 +000026071 # Append ld.so.conf contents to the search path
26072 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026073 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 +000026074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26075 fi
26076
John Criswell47fdd832003-07-14 16:52:07 +000026077 # We used to test for /lib/ld.so.1 and disable shared libraries on
26078 # powerpc, because MkLinux only supported shared libraries with the
26079 # GNU dynamic linker. Since this was broken with cross compilers,
26080 # most powerpc-linux boxes support dynamic linking these days and
26081 # people can always --disable-shared, the test was removed, and we
26082 # assume the GNU/Linux dynamic linker is in use.
26083 dynamic_linker='GNU/Linux ld.so'
26084 ;;
26085
Reid Spencer2706f8c2004-09-19 23:53:36 +000026086knetbsd*-gnu)
26087 version_type=linux
26088 need_lib_prefix=no
26089 need_version=no
26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091 soname_spec='${libname}${release}${shared_ext}$major'
26092 shlibpath_var=LD_LIBRARY_PATH
26093 shlibpath_overrides_runpath=no
26094 hardcode_into_libs=yes
26095 dynamic_linker='GNU ld.so'
26096 ;;
26097
John Criswell47fdd832003-07-14 16:52:07 +000026098netbsd*)
26099 version_type=sunos
26100 need_lib_prefix=no
26101 need_version=no
26102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26105 dynamic_linker='NetBSD (a.out) ld.so'
26106 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026108 soname_spec='${libname}${release}${shared_ext}$major'
26109 dynamic_linker='NetBSD ld.elf_so'
26110 fi
26111 shlibpath_var=LD_LIBRARY_PATH
26112 shlibpath_overrides_runpath=yes
26113 hardcode_into_libs=yes
26114 ;;
26115
26116newsos6)
26117 version_type=linux
26118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26119 shlibpath_var=LD_LIBRARY_PATH
26120 shlibpath_overrides_runpath=yes
26121 ;;
26122
Reid Spencer2706f8c2004-09-19 23:53:36 +000026123nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026124 version_type=linux
26125 need_lib_prefix=no
26126 need_version=no
26127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26128 soname_spec='${libname}${release}${shared_ext}$major'
26129 shlibpath_var=LD_LIBRARY_PATH
26130 shlibpath_overrides_runpath=yes
26131 ;;
26132
26133openbsd*)
26134 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026135 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026136 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26138 case $host_os in
26139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26140 *) need_version=no ;;
26141 esac
John Criswell47fdd832003-07-14 16:52:07 +000026142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26144 shlibpath_var=LD_LIBRARY_PATH
26145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26146 case $host_os in
26147 openbsd2.[89] | openbsd2.[89].*)
26148 shlibpath_overrides_runpath=no
26149 ;;
26150 *)
26151 shlibpath_overrides_runpath=yes
26152 ;;
26153 esac
26154 else
26155 shlibpath_overrides_runpath=yes
26156 fi
26157 ;;
26158
26159os2*)
26160 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026161 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026162 need_lib_prefix=no
26163 library_names_spec='$libname${shared_ext} $libname.a'
26164 dynamic_linker='OS/2 ld.exe'
26165 shlibpath_var=LIBPATH
26166 ;;
26167
26168osf3* | osf4* | osf5*)
26169 version_type=osf
26170 need_lib_prefix=no
26171 need_version=no
26172 soname_spec='${libname}${release}${shared_ext}$major'
26173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26174 shlibpath_var=LD_LIBRARY_PATH
26175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26177 ;;
26178
John Criswell47fdd832003-07-14 16:52:07 +000026179solaris*)
26180 version_type=linux
26181 need_lib_prefix=no
26182 need_version=no
26183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26184 soname_spec='${libname}${release}${shared_ext}$major'
26185 shlibpath_var=LD_LIBRARY_PATH
26186 shlibpath_overrides_runpath=yes
26187 hardcode_into_libs=yes
26188 # ldd complains unless libraries are executable
26189 postinstall_cmds='chmod +x $lib'
26190 ;;
26191
26192sunos4*)
26193 version_type=sunos
26194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26196 shlibpath_var=LD_LIBRARY_PATH
26197 shlibpath_overrides_runpath=yes
26198 if test "$with_gnu_ld" = yes; then
26199 need_lib_prefix=no
26200 fi
26201 need_version=yes
26202 ;;
26203
Reid Spencera773bd52006-08-04 18:18:08 +000026204sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026205 version_type=linux
26206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26207 soname_spec='${libname}${release}${shared_ext}$major'
26208 shlibpath_var=LD_LIBRARY_PATH
26209 case $host_vendor in
26210 sni)
26211 shlibpath_overrides_runpath=no
26212 need_lib_prefix=no
26213 export_dynamic_flag_spec='${wl}-Blargedynsym'
26214 runpath_var=LD_RUN_PATH
26215 ;;
26216 siemens)
26217 need_lib_prefix=no
26218 ;;
26219 motorola)
26220 need_lib_prefix=no
26221 need_version=no
26222 shlibpath_overrides_runpath=no
26223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26224 ;;
26225 esac
26226 ;;
26227
26228sysv4*MP*)
26229 if test -d /usr/nec ;then
26230 version_type=linux
26231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26232 soname_spec='$libname${shared_ext}.$major'
26233 shlibpath_var=LD_LIBRARY_PATH
26234 fi
26235 ;;
26236
Reid Spencera773bd52006-08-04 18:18:08 +000026237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26238 version_type=freebsd-elf
26239 need_lib_prefix=no
26240 need_version=no
26241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26242 soname_spec='${libname}${release}${shared_ext}$major'
26243 shlibpath_var=LD_LIBRARY_PATH
26244 hardcode_into_libs=yes
26245 if test "$with_gnu_ld" = yes; then
26246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26247 shlibpath_overrides_runpath=no
26248 else
26249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26250 shlibpath_overrides_runpath=yes
26251 case $host_os in
26252 sco3.2v5*)
26253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26254 ;;
26255 esac
26256 fi
26257 sys_lib_dlsearch_path_spec='/usr/lib'
26258 ;;
26259
John Criswell47fdd832003-07-14 16:52:07 +000026260uts4*)
26261 version_type=linux
26262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26263 soname_spec='${libname}${release}${shared_ext}$major'
26264 shlibpath_var=LD_LIBRARY_PATH
26265 ;;
26266
26267*)
26268 dynamic_linker=no
26269 ;;
26270esac
Reid Spencera773bd52006-08-04 18:18:08 +000026271{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26272echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026273test "$dynamic_linker" = no && can_build_shared=no
26274
Reid Spencera773bd52006-08-04 18:18:08 +000026275variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26276if test "$GCC" = yes; then
26277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26278fi
26279
26280{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26281echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026282hardcode_action_GCJ=
26283if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26284 test -n "$runpath_var_GCJ" || \
26285 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26286
26287 # We can hardcode non-existant directories.
26288 if test "$hardcode_direct_GCJ" != no &&
26289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26290 # have to relink, otherwise we might link with an installed library
26291 # when we should be linking with a yet-to-be-installed one
26292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26293 test "$hardcode_minus_L_GCJ" != no; then
26294 # Linking always hardcodes the temporary library directory.
26295 hardcode_action_GCJ=relink
26296 else
26297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26298 hardcode_action_GCJ=immediate
26299 fi
26300else
26301 # We cannot hardcode anything, or else we can only hardcode existing
26302 # directories.
26303 hardcode_action_GCJ=unsupported
26304fi
Reid Spencera773bd52006-08-04 18:18:08 +000026305{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26306echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026307
26308if test "$hardcode_action_GCJ" = relink; then
26309 # Fast installation is not supported
26310 enable_fast_install=no
26311elif test "$shlibpath_overrides_runpath" = yes ||
26312 test "$enable_shared" = no; then
26313 # Fast installation is not necessary
26314 enable_fast_install=needless
26315fi
26316
John Criswell47fdd832003-07-14 16:52:07 +000026317
26318# The else clause should only fire when bootstrapping the
26319# libtool distribution, otherwise you forgot to ship ltmain.sh
26320# with your package, and you will get complaints that there are
26321# no rules to generate ltmain.sh.
26322if test -f "$ltmain"; then
26323 # See if we are running on zsh, and set the options which allow our commands through
26324 # without removal of \ escapes.
26325 if test -n "${ZSH_VERSION+set}" ; then
26326 setopt NO_GLOB_SUBST
26327 fi
26328 # Now quote all the things that may contain metacharacters while being
26329 # careful not to overquote the AC_SUBSTed values. We take copies of the
26330 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026331 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 +000026332 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26335 deplibs_check_method reload_flag reload_cmds need_locks \
26336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26337 lt_cv_sys_global_symbol_to_c_name_address \
26338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26339 old_postinstall_cmds old_postuninstall_cmds \
26340 compiler_GCJ \
26341 CC_GCJ \
26342 LD_GCJ \
26343 lt_prog_compiler_wl_GCJ \
26344 lt_prog_compiler_pic_GCJ \
26345 lt_prog_compiler_static_GCJ \
26346 lt_prog_compiler_no_builtin_flag_GCJ \
26347 export_dynamic_flag_spec_GCJ \
26348 thread_safe_flag_spec_GCJ \
26349 whole_archive_flag_spec_GCJ \
26350 enable_shared_with_static_runtimes_GCJ \
26351 old_archive_cmds_GCJ \
26352 old_archive_from_new_cmds_GCJ \
26353 predep_objects_GCJ \
26354 postdep_objects_GCJ \
26355 predeps_GCJ \
26356 postdeps_GCJ \
26357 compiler_lib_search_path_GCJ \
26358 archive_cmds_GCJ \
26359 archive_expsym_cmds_GCJ \
26360 postinstall_cmds_GCJ \
26361 postuninstall_cmds_GCJ \
26362 old_archive_from_expsyms_cmds_GCJ \
26363 allow_undefined_flag_GCJ \
26364 no_undefined_flag_GCJ \
26365 export_symbols_cmds_GCJ \
26366 hardcode_libdir_flag_spec_GCJ \
26367 hardcode_libdir_flag_spec_ld_GCJ \
26368 hardcode_libdir_separator_GCJ \
26369 hardcode_automatic_GCJ \
26370 module_cmds_GCJ \
26371 module_expsym_cmds_GCJ \
26372 lt_cv_prog_compiler_c_o_GCJ \
26373 exclude_expsyms_GCJ \
26374 include_expsyms_GCJ; do
26375
26376 case $var in
26377 old_archive_cmds_GCJ | \
26378 old_archive_from_new_cmds_GCJ | \
26379 archive_cmds_GCJ | \
26380 archive_expsym_cmds_GCJ | \
26381 module_cmds_GCJ | \
26382 module_expsym_cmds_GCJ | \
26383 old_archive_from_expsyms_cmds_GCJ | \
26384 export_symbols_cmds_GCJ | \
26385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26386 postinstall_cmds | postuninstall_cmds | \
26387 old_postinstall_cmds | old_postuninstall_cmds | \
26388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26389 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026390 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 +000026391 ;;
26392 *)
26393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26394 ;;
26395 esac
26396 done
26397
26398 case $lt_echo in
26399 *'\$0 --fallback-echo"')
26400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26401 ;;
26402 esac
26403
26404cfgfile="$ofile"
26405
26406 cat <<__EOF__ >> "$cfgfile"
26407# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26408
26409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26410
26411# Shell to use when invoking shell scripts.
26412SHELL=$lt_SHELL
26413
26414# Whether or not to build shared libraries.
26415build_libtool_libs=$enable_shared
26416
26417# Whether or not to build static libraries.
26418build_old_libs=$enable_static
26419
26420# Whether or not to add -lc for building shared libraries.
26421build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26422
26423# Whether or not to disallow shared libs when runtime libs are static
26424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26425
26426# Whether or not to optimize for fast installation.
26427fast_install=$enable_fast_install
26428
26429# The host system.
26430host_alias=$host_alias
26431host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026432host_os=$host_os
26433
26434# The build system.
26435build_alias=$build_alias
26436build=$build
26437build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026438
26439# An echo program that does not interpret backslashes.
26440echo=$lt_echo
26441
26442# The archiver.
26443AR=$lt_AR
26444AR_FLAGS=$lt_AR_FLAGS
26445
26446# A C compiler.
26447LTCC=$lt_LTCC
26448
Reid Spencera773bd52006-08-04 18:18:08 +000026449# LTCC compiler flags.
26450LTCFLAGS=$lt_LTCFLAGS
26451
John Criswell47fdd832003-07-14 16:52:07 +000026452# A language-specific compiler.
26453CC=$lt_compiler_GCJ
26454
26455# Is the compiler the GNU C compiler?
26456with_gcc=$GCC_GCJ
26457
26458# An ERE matcher.
26459EGREP=$lt_EGREP
26460
26461# The linker used to build libraries.
26462LD=$lt_LD_GCJ
26463
26464# Whether we need hard or soft links.
26465LN_S=$lt_LN_S
26466
26467# A BSD-compatible nm program.
26468NM=$lt_NM
26469
26470# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026471STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026472
26473# Used to examine libraries when file_magic_cmd begins "file"
26474MAGIC_CMD=$MAGIC_CMD
26475
26476# Used on cygwin: DLL creation program.
26477DLLTOOL="$DLLTOOL"
26478
26479# Used on cygwin: object dumper.
26480OBJDUMP="$OBJDUMP"
26481
26482# Used on cygwin: assembler.
26483AS="$AS"
26484
26485# The name of the directory that contains temporary libtool files.
26486objdir=$objdir
26487
26488# How to create reloadable object files.
26489reload_flag=$lt_reload_flag
26490reload_cmds=$lt_reload_cmds
26491
26492# How to pass a linker flag through the compiler.
26493wl=$lt_lt_prog_compiler_wl_GCJ
26494
26495# Object file suffix (normally "o").
26496objext="$ac_objext"
26497
26498# Old archive suffix (normally "a").
26499libext="$libext"
26500
26501# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026502shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026503
26504# Executable file suffix (normally "").
26505exeext="$exeext"
26506
26507# Additional compiler flags for building library objects.
26508pic_flag=$lt_lt_prog_compiler_pic_GCJ
26509pic_mode=$pic_mode
26510
26511# What is the maximum length of a command?
26512max_cmd_len=$lt_cv_sys_max_cmd_len
26513
26514# Does compiler simultaneously support -c and -o options?
26515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26516
Reid Spencera773bd52006-08-04 18:18:08 +000026517# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026518need_locks=$lt_need_locks
26519
26520# Do we need the lib prefix for modules?
26521need_lib_prefix=$need_lib_prefix
26522
26523# Do we need a version for libraries?
26524need_version=$need_version
26525
26526# Whether dlopen is supported.
26527dlopen_support=$enable_dlopen
26528
26529# Whether dlopen of programs is supported.
26530dlopen_self=$enable_dlopen_self
26531
26532# Whether dlopen of statically linked programs is supported.
26533dlopen_self_static=$enable_dlopen_self_static
26534
26535# Compiler flag to prevent dynamic linking.
26536link_static_flag=$lt_lt_prog_compiler_static_GCJ
26537
26538# Compiler flag to turn off builtin functions.
26539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26540
26541# Compiler flag to allow reflexive dlopens.
26542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26543
26544# Compiler flag to generate shared objects directly from archives.
26545whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26546
26547# Compiler flag to generate thread-safe objects.
26548thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26549
26550# Library versioning type.
26551version_type=$version_type
26552
26553# Format of library name prefix.
26554libname_spec=$lt_libname_spec
26555
26556# List of archive names. First name is the real one, the rest are links.
26557# The last name is the one that the linker finds with -lNAME.
26558library_names_spec=$lt_library_names_spec
26559
26560# The coded name of the library, if different from the real name.
26561soname_spec=$lt_soname_spec
26562
26563# Commands used to build and install an old-style archive.
26564RANLIB=$lt_RANLIB
26565old_archive_cmds=$lt_old_archive_cmds_GCJ
26566old_postinstall_cmds=$lt_old_postinstall_cmds
26567old_postuninstall_cmds=$lt_old_postuninstall_cmds
26568
26569# Create an old-style archive from a shared archive.
26570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26571
26572# Create a temporary old-style archive to link instead of a shared archive.
26573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26574
26575# Commands used to build and install a shared archive.
26576archive_cmds=$lt_archive_cmds_GCJ
26577archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26578postinstall_cmds=$lt_postinstall_cmds
26579postuninstall_cmds=$lt_postuninstall_cmds
26580
26581# Commands used to build a loadable module (assumed same as above if empty)
26582module_cmds=$lt_module_cmds_GCJ
26583module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26584
26585# Commands to strip libraries.
26586old_striplib=$lt_old_striplib
26587striplib=$lt_striplib
26588
26589# Dependencies to place before the objects being linked to create a
26590# shared library.
26591predep_objects=$lt_predep_objects_GCJ
26592
26593# Dependencies to place after the objects being linked to create a
26594# shared library.
26595postdep_objects=$lt_postdep_objects_GCJ
26596
26597# Dependencies to place before the objects being linked to create a
26598# shared library.
26599predeps=$lt_predeps_GCJ
26600
26601# Dependencies to place after the objects being linked to create a
26602# shared library.
26603postdeps=$lt_postdeps_GCJ
26604
26605# The library search path used internally by the compiler when linking
26606# a shared library.
26607compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26608
26609# Method to check whether dependent libraries are shared objects.
26610deplibs_check_method=$lt_deplibs_check_method
26611
26612# Command to use when deplibs_check_method == file_magic.
26613file_magic_cmd=$lt_file_magic_cmd
26614
26615# Flag that allows shared libraries with undefined symbols to be built.
26616allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26617
26618# Flag that forces no undefined symbols.
26619no_undefined_flag=$lt_no_undefined_flag_GCJ
26620
26621# Commands used to finish a libtool library installation in a directory.
26622finish_cmds=$lt_finish_cmds
26623
26624# Same as above, but a single script fragment to be evaled but not shown.
26625finish_eval=$lt_finish_eval
26626
26627# Take the output of nm and produce a listing of raw symbols and C names.
26628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26629
26630# Transform the output of nm in a proper C declaration
26631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26632
26633# Transform the output of nm in a C name address pair
26634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26635
26636# This is the shared library runtime path variable.
26637runpath_var=$runpath_var
26638
26639# This is the shared library path variable.
26640shlibpath_var=$shlibpath_var
26641
26642# Is shlibpath searched before the hard-coded library search path?
26643shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26644
26645# How to hardcode a shared library path into an executable.
26646hardcode_action=$hardcode_action_GCJ
26647
26648# Whether we should hardcode library paths into libraries.
26649hardcode_into_libs=$hardcode_into_libs
26650
26651# Flag to hardcode \$libdir into a binary during linking.
26652# This must work even if \$libdir does not exist.
26653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26654
26655# If ld is used when linking, flag to hardcode \$libdir into
26656# a binary during linking. This must work even if \$libdir does
26657# not exist.
26658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26659
26660# Whether we need a single -rpath flag with a separated argument.
26661hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26662
26663# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26664# resulting binary.
26665hardcode_direct=$hardcode_direct_GCJ
26666
26667# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26668# resulting binary.
26669hardcode_minus_L=$hardcode_minus_L_GCJ
26670
26671# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26672# the resulting binary.
26673hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26674
26675# Set to yes if building a shared library automatically hardcodes DIR into the library
26676# and all subsequent libraries and executables linked against it.
26677hardcode_automatic=$hardcode_automatic_GCJ
26678
26679# Variables whose values should be saved in libtool wrapper scripts and
26680# restored at relink time.
26681variables_saved_for_relink="$variables_saved_for_relink"
26682
26683# Whether libtool must link a program against all its dependency libraries.
26684link_all_deplibs=$link_all_deplibs_GCJ
26685
26686# Compile-time system search path for libraries
26687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26688
26689# Run-time system search path for libraries
26690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26691
26692# Fix the shell variable \$srcfile for the compiler.
26693fix_srcfile_path="$fix_srcfile_path_GCJ"
26694
26695# Set to yes if exported symbols are required.
26696always_export_symbols=$always_export_symbols_GCJ
26697
26698# The commands to list exported symbols.
26699export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26700
26701# The commands to extract the exported symbol list from a shared archive.
26702extract_expsyms_cmds=$lt_extract_expsyms_cmds
26703
26704# Symbols that should not be listed in the preloaded symbols.
26705exclude_expsyms=$lt_exclude_expsyms_GCJ
26706
26707# Symbols that must always be exported.
26708include_expsyms=$lt_include_expsyms_GCJ
26709
26710# ### END LIBTOOL TAG CONFIG: $tagname
26711
26712__EOF__
26713
26714
26715else
26716 # If there is no Makefile yet, we rely on a make rule to execute
26717 # `config.status --recheck' to rerun these tests and create the
26718 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26720 if test -f "$ltmain_in"; then
26721 test -f Makefile && make "$ltmain"
26722 fi
John Criswell47fdd832003-07-14 16:52:07 +000026723fi
26724
26725
26726ac_ext=c
26727ac_cpp='$CPP $CPPFLAGS'
26728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730ac_compiler_gnu=$ac_cv_c_compiler_gnu
26731
26732CC="$lt_save_CC"
26733
26734 else
26735 tagname=""
26736 fi
26737 ;;
26738
26739 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026740 ac_ext=c
26741ac_cpp='$CPP $CPPFLAGS'
26742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26744ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026745
26746
26747# Source file extension for RC test sources.
26748ac_ext=rc
26749
26750# Object file extension for compiled RC test sources.
26751objext=o
26752objext_RC=$objext
26753
26754# Code to be used in simple compile tests
26755lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26756
26757# Code to be used in simple link tests
26758lt_simple_link_test_code="$lt_simple_compile_test_code"
26759
26760# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26761
26762# If no C compiler was specified, use CC.
26763LTCC=${LTCC-"$CC"}
26764
Reid Spencera773bd52006-08-04 18:18:08 +000026765# If no C compiler flags were specified, use CFLAGS.
26766LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26767
John Criswell47fdd832003-07-14 16:52:07 +000026768# Allow CC to be a program name with arguments.
26769compiler=$CC
26770
26771
Reid Spencera773bd52006-08-04 18:18:08 +000026772# save warnings/boilerplate of simple test code
26773ac_outfile=conftest.$ac_objext
26774printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26776_lt_compiler_boilerplate=`cat conftest.err`
26777$rm conftest*
26778
26779ac_outfile=conftest.$ac_objext
26780printf "$lt_simple_link_test_code" >conftest.$ac_ext
26781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26782_lt_linker_boilerplate=`cat conftest.err`
26783$rm conftest*
26784
26785
John Criswell47fdd832003-07-14 16:52:07 +000026786# Allow CC to be a program name with arguments.
26787lt_save_CC="$CC"
26788CC=${RC-"windres"}
26789compiler=$CC
26790compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026791for cc_temp in $compiler""; do
26792 case $cc_temp in
26793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26795 \-*) ;;
26796 *) break;;
26797 esac
26798done
26799cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26800
John Criswell47fdd832003-07-14 16:52:07 +000026801lt_cv_prog_compiler_c_o_RC=yes
26802
26803# The else clause should only fire when bootstrapping the
26804# libtool distribution, otherwise you forgot to ship ltmain.sh
26805# with your package, and you will get complaints that there are
26806# no rules to generate ltmain.sh.
26807if test -f "$ltmain"; then
26808 # See if we are running on zsh, and set the options which allow our commands through
26809 # without removal of \ escapes.
26810 if test -n "${ZSH_VERSION+set}" ; then
26811 setopt NO_GLOB_SUBST
26812 fi
26813 # Now quote all the things that may contain metacharacters while being
26814 # careful not to overquote the AC_SUBSTed values. We take copies of the
26815 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026816 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 +000026817 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026818 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26819 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26820 deplibs_check_method reload_flag reload_cmds need_locks \
26821 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26822 lt_cv_sys_global_symbol_to_c_name_address \
26823 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26824 old_postinstall_cmds old_postuninstall_cmds \
26825 compiler_RC \
26826 CC_RC \
26827 LD_RC \
26828 lt_prog_compiler_wl_RC \
26829 lt_prog_compiler_pic_RC \
26830 lt_prog_compiler_static_RC \
26831 lt_prog_compiler_no_builtin_flag_RC \
26832 export_dynamic_flag_spec_RC \
26833 thread_safe_flag_spec_RC \
26834 whole_archive_flag_spec_RC \
26835 enable_shared_with_static_runtimes_RC \
26836 old_archive_cmds_RC \
26837 old_archive_from_new_cmds_RC \
26838 predep_objects_RC \
26839 postdep_objects_RC \
26840 predeps_RC \
26841 postdeps_RC \
26842 compiler_lib_search_path_RC \
26843 archive_cmds_RC \
26844 archive_expsym_cmds_RC \
26845 postinstall_cmds_RC \
26846 postuninstall_cmds_RC \
26847 old_archive_from_expsyms_cmds_RC \
26848 allow_undefined_flag_RC \
26849 no_undefined_flag_RC \
26850 export_symbols_cmds_RC \
26851 hardcode_libdir_flag_spec_RC \
26852 hardcode_libdir_flag_spec_ld_RC \
26853 hardcode_libdir_separator_RC \
26854 hardcode_automatic_RC \
26855 module_cmds_RC \
26856 module_expsym_cmds_RC \
26857 lt_cv_prog_compiler_c_o_RC \
26858 exclude_expsyms_RC \
26859 include_expsyms_RC; do
26860
26861 case $var in
26862 old_archive_cmds_RC | \
26863 old_archive_from_new_cmds_RC | \
26864 archive_cmds_RC | \
26865 archive_expsym_cmds_RC | \
26866 module_cmds_RC | \
26867 module_expsym_cmds_RC | \
26868 old_archive_from_expsyms_cmds_RC | \
26869 export_symbols_cmds_RC | \
26870 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26871 postinstall_cmds | postuninstall_cmds | \
26872 old_postinstall_cmds | old_postuninstall_cmds | \
26873 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26874 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026875 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 +000026876 ;;
26877 *)
26878 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26879 ;;
26880 esac
26881 done
26882
26883 case $lt_echo in
26884 *'\$0 --fallback-echo"')
26885 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26886 ;;
26887 esac
26888
26889cfgfile="$ofile"
26890
26891 cat <<__EOF__ >> "$cfgfile"
26892# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26893
26894# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26895
26896# Shell to use when invoking shell scripts.
26897SHELL=$lt_SHELL
26898
26899# Whether or not to build shared libraries.
26900build_libtool_libs=$enable_shared
26901
26902# Whether or not to build static libraries.
26903build_old_libs=$enable_static
26904
26905# Whether or not to add -lc for building shared libraries.
26906build_libtool_need_lc=$archive_cmds_need_lc_RC
26907
26908# Whether or not to disallow shared libs when runtime libs are static
26909allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26910
26911# Whether or not to optimize for fast installation.
26912fast_install=$enable_fast_install
26913
26914# The host system.
26915host_alias=$host_alias
26916host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026917host_os=$host_os
26918
26919# The build system.
26920build_alias=$build_alias
26921build=$build
26922build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026923
26924# An echo program that does not interpret backslashes.
26925echo=$lt_echo
26926
26927# The archiver.
26928AR=$lt_AR
26929AR_FLAGS=$lt_AR_FLAGS
26930
26931# A C compiler.
26932LTCC=$lt_LTCC
26933
Reid Spencera773bd52006-08-04 18:18:08 +000026934# LTCC compiler flags.
26935LTCFLAGS=$lt_LTCFLAGS
26936
John Criswell47fdd832003-07-14 16:52:07 +000026937# A language-specific compiler.
26938CC=$lt_compiler_RC
26939
26940# Is the compiler the GNU C compiler?
26941with_gcc=$GCC_RC
26942
26943# An ERE matcher.
26944EGREP=$lt_EGREP
26945
26946# The linker used to build libraries.
26947LD=$lt_LD_RC
26948
26949# Whether we need hard or soft links.
26950LN_S=$lt_LN_S
26951
26952# A BSD-compatible nm program.
26953NM=$lt_NM
26954
26955# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026956STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026957
26958# Used to examine libraries when file_magic_cmd begins "file"
26959MAGIC_CMD=$MAGIC_CMD
26960
26961# Used on cygwin: DLL creation program.
26962DLLTOOL="$DLLTOOL"
26963
26964# Used on cygwin: object dumper.
26965OBJDUMP="$OBJDUMP"
26966
26967# Used on cygwin: assembler.
26968AS="$AS"
26969
26970# The name of the directory that contains temporary libtool files.
26971objdir=$objdir
26972
26973# How to create reloadable object files.
26974reload_flag=$lt_reload_flag
26975reload_cmds=$lt_reload_cmds
26976
26977# How to pass a linker flag through the compiler.
26978wl=$lt_lt_prog_compiler_wl_RC
26979
26980# Object file suffix (normally "o").
26981objext="$ac_objext"
26982
26983# Old archive suffix (normally "a").
26984libext="$libext"
26985
26986# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026987shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026988
26989# Executable file suffix (normally "").
26990exeext="$exeext"
26991
26992# Additional compiler flags for building library objects.
26993pic_flag=$lt_lt_prog_compiler_pic_RC
26994pic_mode=$pic_mode
26995
26996# What is the maximum length of a command?
26997max_cmd_len=$lt_cv_sys_max_cmd_len
26998
26999# Does compiler simultaneously support -c and -o options?
27000compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27001
Reid Spencera773bd52006-08-04 18:18:08 +000027002# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000027003need_locks=$lt_need_locks
27004
27005# Do we need the lib prefix for modules?
27006need_lib_prefix=$need_lib_prefix
27007
27008# Do we need a version for libraries?
27009need_version=$need_version
27010
27011# Whether dlopen is supported.
27012dlopen_support=$enable_dlopen
27013
27014# Whether dlopen of programs is supported.
27015dlopen_self=$enable_dlopen_self
27016
27017# Whether dlopen of statically linked programs is supported.
27018dlopen_self_static=$enable_dlopen_self_static
27019
27020# Compiler flag to prevent dynamic linking.
27021link_static_flag=$lt_lt_prog_compiler_static_RC
27022
27023# Compiler flag to turn off builtin functions.
27024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27025
27026# Compiler flag to allow reflexive dlopens.
27027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27028
27029# Compiler flag to generate shared objects directly from archives.
27030whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27031
27032# Compiler flag to generate thread-safe objects.
27033thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27034
27035# Library versioning type.
27036version_type=$version_type
27037
27038# Format of library name prefix.
27039libname_spec=$lt_libname_spec
27040
27041# List of archive names. First name is the real one, the rest are links.
27042# The last name is the one that the linker finds with -lNAME.
27043library_names_spec=$lt_library_names_spec
27044
27045# The coded name of the library, if different from the real name.
27046soname_spec=$lt_soname_spec
27047
27048# Commands used to build and install an old-style archive.
27049RANLIB=$lt_RANLIB
27050old_archive_cmds=$lt_old_archive_cmds_RC
27051old_postinstall_cmds=$lt_old_postinstall_cmds
27052old_postuninstall_cmds=$lt_old_postuninstall_cmds
27053
27054# Create an old-style archive from a shared archive.
27055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27056
27057# Create a temporary old-style archive to link instead of a shared archive.
27058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27059
27060# Commands used to build and install a shared archive.
27061archive_cmds=$lt_archive_cmds_RC
27062archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27063postinstall_cmds=$lt_postinstall_cmds
27064postuninstall_cmds=$lt_postuninstall_cmds
27065
27066# Commands used to build a loadable module (assumed same as above if empty)
27067module_cmds=$lt_module_cmds_RC
27068module_expsym_cmds=$lt_module_expsym_cmds_RC
27069
27070# Commands to strip libraries.
27071old_striplib=$lt_old_striplib
27072striplib=$lt_striplib
27073
27074# Dependencies to place before the objects being linked to create a
27075# shared library.
27076predep_objects=$lt_predep_objects_RC
27077
27078# Dependencies to place after the objects being linked to create a
27079# shared library.
27080postdep_objects=$lt_postdep_objects_RC
27081
27082# Dependencies to place before the objects being linked to create a
27083# shared library.
27084predeps=$lt_predeps_RC
27085
27086# Dependencies to place after the objects being linked to create a
27087# shared library.
27088postdeps=$lt_postdeps_RC
27089
27090# The library search path used internally by the compiler when linking
27091# a shared library.
27092compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27093
27094# Method to check whether dependent libraries are shared objects.
27095deplibs_check_method=$lt_deplibs_check_method
27096
27097# Command to use when deplibs_check_method == file_magic.
27098file_magic_cmd=$lt_file_magic_cmd
27099
27100# Flag that allows shared libraries with undefined symbols to be built.
27101allow_undefined_flag=$lt_allow_undefined_flag_RC
27102
27103# Flag that forces no undefined symbols.
27104no_undefined_flag=$lt_no_undefined_flag_RC
27105
27106# Commands used to finish a libtool library installation in a directory.
27107finish_cmds=$lt_finish_cmds
27108
27109# Same as above, but a single script fragment to be evaled but not shown.
27110finish_eval=$lt_finish_eval
27111
27112# Take the output of nm and produce a listing of raw symbols and C names.
27113global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27114
27115# Transform the output of nm in a proper C declaration
27116global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27117
27118# Transform the output of nm in a C name address pair
27119global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27120
27121# This is the shared library runtime path variable.
27122runpath_var=$runpath_var
27123
27124# This is the shared library path variable.
27125shlibpath_var=$shlibpath_var
27126
27127# Is shlibpath searched before the hard-coded library search path?
27128shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27129
27130# How to hardcode a shared library path into an executable.
27131hardcode_action=$hardcode_action_RC
27132
27133# Whether we should hardcode library paths into libraries.
27134hardcode_into_libs=$hardcode_into_libs
27135
27136# Flag to hardcode \$libdir into a binary during linking.
27137# This must work even if \$libdir does not exist.
27138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27139
27140# If ld is used when linking, flag to hardcode \$libdir into
27141# a binary during linking. This must work even if \$libdir does
27142# not exist.
27143hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27144
27145# Whether we need a single -rpath flag with a separated argument.
27146hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27147
27148# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27149# resulting binary.
27150hardcode_direct=$hardcode_direct_RC
27151
27152# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27153# resulting binary.
27154hardcode_minus_L=$hardcode_minus_L_RC
27155
27156# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27157# the resulting binary.
27158hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27159
27160# Set to yes if building a shared library automatically hardcodes DIR into the library
27161# and all subsequent libraries and executables linked against it.
27162hardcode_automatic=$hardcode_automatic_RC
27163
27164# Variables whose values should be saved in libtool wrapper scripts and
27165# restored at relink time.
27166variables_saved_for_relink="$variables_saved_for_relink"
27167
27168# Whether libtool must link a program against all its dependency libraries.
27169link_all_deplibs=$link_all_deplibs_RC
27170
27171# Compile-time system search path for libraries
27172sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27173
27174# Run-time system search path for libraries
27175sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27176
27177# Fix the shell variable \$srcfile for the compiler.
27178fix_srcfile_path="$fix_srcfile_path_RC"
27179
27180# Set to yes if exported symbols are required.
27181always_export_symbols=$always_export_symbols_RC
27182
27183# The commands to list exported symbols.
27184export_symbols_cmds=$lt_export_symbols_cmds_RC
27185
27186# The commands to extract the exported symbol list from a shared archive.
27187extract_expsyms_cmds=$lt_extract_expsyms_cmds
27188
27189# Symbols that should not be listed in the preloaded symbols.
27190exclude_expsyms=$lt_exclude_expsyms_RC
27191
27192# Symbols that must always be exported.
27193include_expsyms=$lt_include_expsyms_RC
27194
27195# ### END LIBTOOL TAG CONFIG: $tagname
27196
27197__EOF__
27198
27199
27200else
27201 # If there is no Makefile yet, we rely on a make rule to execute
27202 # `config.status --recheck' to rerun these tests and create the
27203 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27205 if test -f "$ltmain_in"; then
27206 test -f Makefile && make "$ltmain"
27207 fi
John Criswell47fdd832003-07-14 16:52:07 +000027208fi
27209
27210
27211ac_ext=c
27212ac_cpp='$CPP $CPPFLAGS'
27213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27215ac_compiler_gnu=$ac_cv_c_compiler_gnu
27216
27217CC="$lt_save_CC"
27218
27219 ;;
27220
27221 *)
27222 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27223echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27224 { (exit 1); exit 1; }; }
27225 ;;
27226 esac
27227
27228 # Append the new tag name to the list of available tags.
27229 if test -n "$tagname" ; then
27230 available_tags="$available_tags $tagname"
27231 fi
27232 fi
27233 done
27234 IFS="$lt_save_ifs"
27235
27236 # Now substitute the updated list of available tags.
27237 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27238 mv "${ofile}T" "$ofile"
27239 chmod +x "$ofile"
27240 else
27241 rm -f "${ofile}T"
27242 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27243echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27244 { (exit 1); exit 1; }; }
27245 fi
27246fi
John Criswell7a73b802003-06-30 21:59:07 +000027247
27248
27249
27250# This can be used to rebuild libtool when needed
27251LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27252
27253# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027254LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027255
27256# Prevent multiple expansion
27257
27258
27259
John Criswell47fdd832003-07-14 16:52:07 +000027260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027277
Reid Spencer582a23c2004-12-29 07:07:57 +000027278if test "$lt_cv_dlopen_self" = "yes" ; then
27279
27280cat >>confdefs.h <<\_ACEOF
27281#define CAN_DLOPEN_SELF 1
27282_ACEOF
27283
27284fi
27285
Douglas Gregor01746742009-05-11 18:05:52 +000027286
Reid Spencer7931a782004-12-27 06:15:02 +000027287if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027288 LLVMGCC="llvm-gcc${EXEEXT}"
27289 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027290 LLVMGCCCOMMAND="$LLVMGCC"
27291 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027292 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27293
27294 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27295
Reid Spencerc84492c2005-06-02 22:34:49 +000027296 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27297set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027300if test "${ac_cv_path_LLVMGCC+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27302else
27303 case $LLVMGCC in
27304 [\\/]* | ?:[\\/]*)
27305 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27306 ;;
27307 *)
27308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309for as_dir in $PATH
27310do
27311 IFS=$as_save_IFS
27312 test -z "$as_dir" && as_dir=.
27313 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027314 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 +000027315 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317 break 2
27318 fi
27319done
27320done
Reid Spencera773bd52006-08-04 18:18:08 +000027321IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027322
Reid Spencer59473af2004-12-25 07:31:29 +000027323 ;;
27324esac
27325fi
27326LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027327if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027328 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27329echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027330else
Reid Spencera773bd52006-08-04 18:18:08 +000027331 { echo "$as_me:$LINENO: result: no" >&5
27332echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027333fi
27334
Reid Spencera773bd52006-08-04 18:18:08 +000027335
Reid Spencerc84492c2005-06-02 22:34:49 +000027336 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27337set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027340if test "${ac_cv_path_LLVMGXX+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342else
27343 case $LLVMGXX in
27344 [\\/]* | ?:[\\/]*)
27345 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27346 ;;
27347 *)
27348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27349for as_dir in $PATH
27350do
27351 IFS=$as_save_IFS
27352 test -z "$as_dir" && as_dir=.
27353 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027354 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 +000027355 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27357 break 2
27358 fi
27359done
27360done
Reid Spencera773bd52006-08-04 18:18:08 +000027361IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027362
Reid Spencer59473af2004-12-25 07:31:29 +000027363 ;;
27364esac
27365fi
27366LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027367if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027368 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27369echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027370else
Reid Spencera773bd52006-08-04 18:18:08 +000027371 { echo "$as_me:$LINENO: result: no" >&5
27372echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027373fi
27374
Reid Spencera773bd52006-08-04 18:18:08 +000027375
Reid Spencer59473af2004-12-25 07:31:29 +000027376else
Devang Patel5d28b882007-12-04 22:54:47 +000027377 if test -z "$LLVMGCC"; then
27378 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027379 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027380 fi
27381 if test -z "$LLVMGXX"; then
27382 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027383 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027384 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027385
Reid Spencer59473af2004-12-25 07:31:29 +000027386 LLVMGCC=$LLVMGCC
27387
27388 LLVMGXX=$LLVMGXX
27389
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027390 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27391
27392 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27393
Reid Spencer59473af2004-12-25 07:31:29 +000027394fi
27395
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027396
Reid Spencera773bd52006-08-04 18:18:08 +000027397{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27398echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027399
Reid Spencer86901802004-12-08 23:07:27 +000027400ICC=no
27401IXX=no
27402case $CC in
27403 icc*|icpc*)
27404 ICC=yes
27405 IXX=yes
27406 ;;
27407 *)
27408 ;;
27409esac
27410
Duraid Madina937c60a2006-02-15 07:57:42 +000027411if test "$GCC" != "yes" && test "$ICC" != "yes"
27412then
27413 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27414echo "$as_me: error: gcc|icc required but not found" >&2;}
27415 { (exit 1); exit 1; }; }
27416fi
27417
27418if test "$GXX" != "yes" && test "$IXX" != "yes"
27419then
27420 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27421echo "$as_me: error: g++|icc required but not found" >&2;}
27422 { (exit 1); exit 1; }; }
27423fi
27424
Reid Spencer86901802004-12-08 23:07:27 +000027425if test "$GCC" = "yes"
27426then
Chris Lattner399c7c72008-02-05 19:43:53 +000027427 cat >conftest.$ac_ext <<_ACEOF
27428#if !defined(__GNUC__) || __GNUC__ < 3
27429#error Unsupported GCC version
27430#endif
27431
27432_ACEOF
27433rm -f conftest.$ac_objext
27434if { (ac_try="$ac_compile"
27435case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438esac
27439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_compile") 2>conftest.er1
27441 ac_status=$?
27442 grep -v '^ *+' conftest.er1 >conftest.err
27443 rm -f conftest.er1
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27451esac
27452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try='test -s conftest.$ac_objext'
27458 { (case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27461esac
27462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_try") 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027467 :
27468else
27469 echo "$as_me: failed program was:" >&5
27470sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027473echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27474 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027475fi
27476
27477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027478fi
27479
27480if test -z "$llvm_cv_gnu_make_command"
27481then
27482 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27483echo "$as_me: error: GNU Make required but not found" >&2;}
27484 { (exit 1); exit 1; }; }
27485fi
27486
Reid Spencera773bd52006-08-04 18:18:08 +000027487{ echo "$as_me:$LINENO: result: ok" >&5
27488echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027489
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000027490{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27491echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27492NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27493
27494NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27495
27496{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27497echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27498
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027499
27500
Reid Spencera773bd52006-08-04 18:18:08 +000027501{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27502echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027503if test "${ac_cv_lib_m_sin+set}" = set; then
27504 echo $ECHO_N "(cached) $ECHO_C" >&6
27505else
27506 ac_check_lib_save_LIBS=$LIBS
27507LIBS="-lm $LIBS"
27508cat >conftest.$ac_ext <<_ACEOF
27509/* confdefs.h. */
27510_ACEOF
27511cat confdefs.h >>conftest.$ac_ext
27512cat >>conftest.$ac_ext <<_ACEOF
27513/* end confdefs.h. */
27514
Reid Spencera773bd52006-08-04 18:18:08 +000027515/* Override any GCC internal prototype to avoid an error.
27516 Use char because int might match the return type of a GCC
27517 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027518#ifdef __cplusplus
27519extern "C"
27520#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027521char sin ();
27522int
27523main ()
27524{
Reid Spencera773bd52006-08-04 18:18:08 +000027525return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027526 ;
27527 return 0;
27528}
27529_ACEOF
27530rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027531if { (ac_try="$ac_link"
27532case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27535esac
27536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027543 (exit $ac_status); } &&
27544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27545 { (case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27548esac
27549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_try") 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } &&
27554 { ac_try='test -s conftest$ac_exeext'
27555 { (case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27558esac
27559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_try") 2>&5
27561 ac_status=$?
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027564 ac_cv_lib_m_sin=yes
27565else
27566 echo "$as_me: failed program was:" >&5
27567sed 's/^/| /' conftest.$ac_ext >&5
27568
Reid Spencera773bd52006-08-04 18:18:08 +000027569 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027570fi
Reid Spencera773bd52006-08-04 18:18:08 +000027571
Bill Wendlingebcceee2009-04-18 11:20:33 +000027572rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027573 conftest$ac_exeext conftest.$ac_ext
27574LIBS=$ac_check_lib_save_LIBS
27575fi
Reid Spencera773bd52006-08-04 18:18:08 +000027576{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27577echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027578if test $ac_cv_lib_m_sin = yes; then
27579 cat >>confdefs.h <<_ACEOF
27580#define HAVE_LIBM 1
27581_ACEOF
27582
27583 LIBS="-lm $LIBS"
27584
27585fi
27586
Jeff Cohen28783c32007-01-12 18:22:38 +000027587if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027588
Reid Spencera773bd52006-08-04 18:18:08 +000027589{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27590echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027591if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 ac_check_lib_save_LIBS=$LIBS
27595LIBS="-limagehlp $LIBS"
27596cat >conftest.$ac_ext <<_ACEOF
27597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
27602
Reid Spencer48fdf912006-06-01 19:03:21 +000027603
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604int
27605main ()
27606{
Reid Spencera773bd52006-08-04 18:18:08 +000027607return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027608 ;
27609 return 0;
27610}
27611_ACEOF
27612rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027613if { (ac_try="$ac_link"
27614case "(($ac_try" in
27615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27617esac
27618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027620 ac_status=$?
27621 grep -v '^ *+' conftest.er1 >conftest.err
27622 rm -f conftest.er1
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627 { (case "(($ac_try" in
27628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629 *) ac_try_echo=$ac_try;;
27630esac
27631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632 (eval "$ac_try") 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest$ac_exeext'
27637 { (case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27640esac
27641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_try") 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027646 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027647else
27648 echo "$as_me: failed program was:" >&5
27649sed 's/^/| /' conftest.$ac_ext >&5
27650
Reid Spencera773bd52006-08-04 18:18:08 +000027651 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027652fi
Reid Spencera773bd52006-08-04 18:18:08 +000027653
Bill Wendlingebcceee2009-04-18 11:20:33 +000027654rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027655 conftest$ac_exeext conftest.$ac_ext
27656LIBS=$ac_check_lib_save_LIBS
27657fi
Reid Spencera773bd52006-08-04 18:18:08 +000027658{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27659echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027660if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027661 cat >>confdefs.h <<_ACEOF
27662#define HAVE_LIBIMAGEHLP 1
27663_ACEOF
27664
27665 LIBS="-limagehlp $LIBS"
27666
27667fi
27668
27669
Reid Spencera773bd52006-08-04 18:18:08 +000027670{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27671echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027672if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027673 echo $ECHO_N "(cached) $ECHO_C" >&6
27674else
27675 ac_check_lib_save_LIBS=$LIBS
27676LIBS="-lpsapi $LIBS"
27677cat >conftest.$ac_ext <<_ACEOF
27678/* confdefs.h. */
27679_ACEOF
27680cat confdefs.h >>conftest.$ac_ext
27681cat >>conftest.$ac_ext <<_ACEOF
27682/* end confdefs.h. */
27683
Reid Spencer48fdf912006-06-01 19:03:21 +000027684
Reid Spencer484fc8e2006-06-01 16:55:59 +000027685int
27686main ()
27687{
Reid Spencera773bd52006-08-04 18:18:08 +000027688return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027689 ;
27690 return 0;
27691}
27692_ACEOF
27693rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027694if { (ac_try="$ac_link"
27695case "(($ac_try" in
27696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697 *) ac_try_echo=$ac_try;;
27698esac
27699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027701 ac_status=$?
27702 grep -v '^ *+' conftest.er1 >conftest.err
27703 rm -f conftest.er1
27704 cat conftest.err >&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027706 (exit $ac_status); } &&
27707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27708 { (case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27711esac
27712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
27714 ac_status=$?
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; } &&
27717 { ac_try='test -s conftest$ac_exeext'
27718 { (case "(($ac_try" in
27719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720 *) ac_try_echo=$ac_try;;
27721esac
27722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_try") 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027727 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027728else
27729 echo "$as_me: failed program was:" >&5
27730sed 's/^/| /' conftest.$ac_ext >&5
27731
Reid Spencera773bd52006-08-04 18:18:08 +000027732 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027733fi
Reid Spencera773bd52006-08-04 18:18:08 +000027734
Bill Wendlingebcceee2009-04-18 11:20:33 +000027735rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027736 conftest$ac_exeext conftest.$ac_ext
27737LIBS=$ac_check_lib_save_LIBS
27738fi
Reid Spencera773bd52006-08-04 18:18:08 +000027739{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27740echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027741if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027742 cat >>confdefs.h <<_ACEOF
27743#define HAVE_LIBPSAPI 1
27744_ACEOF
27745
27746 LIBS="-lpsapi $LIBS"
27747
27748fi
27749
27750fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027751
Reid Spencera773bd52006-08-04 18:18:08 +000027752{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27753echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027754if test "${ac_cv_search_dlopen+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756else
27757 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027764
Reid Spencera773bd52006-08-04 18:18:08 +000027765/* Override any GCC internal prototype to avoid an error.
27766 Use char because int might match the return type of a GCC
27767 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027768#ifdef __cplusplus
27769extern "C"
27770#endif
John Criswell7a73b802003-06-30 21:59:07 +000027771char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027772int
27773main ()
27774{
Reid Spencera773bd52006-08-04 18:18:08 +000027775return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027776 ;
27777 return 0;
27778}
27779_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027780for ac_lib in '' dl; do
27781 if test -z "$ac_lib"; then
27782 ac_res="none required"
27783 else
27784 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027786 fi
27787 rm -f conftest.$ac_objext conftest$ac_exeext
27788if { (ac_try="$ac_link"
27789case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27792esac
27793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027796 grep -v '^ *+' conftest.er1 >conftest.err
27797 rm -f conftest.er1
27798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027800 (exit $ac_status); } &&
27801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27805esac
27806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; } &&
27811 { ac_try='test -s conftest$ac_exeext'
27812 { (case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27815esac
27816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_try") 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027821 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027822else
27823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027824sed 's/^/| /' conftest.$ac_ext >&5
27825
Reid Spencera773bd52006-08-04 18:18:08 +000027826
John Criswell7a73b802003-06-30 21:59:07 +000027827fi
Reid Spencera773bd52006-08-04 18:18:08 +000027828
Bill Wendlingebcceee2009-04-18 11:20:33 +000027829rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027830 conftest$ac_exeext
27831 if test "${ac_cv_search_dlopen+set}" = set; then
27832 break
John Criswell7a73b802003-06-30 21:59:07 +000027833fi
Reid Spencera773bd52006-08-04 18:18:08 +000027834done
27835if test "${ac_cv_search_dlopen+set}" = set; then
27836 :
27837else
27838 ac_cv_search_dlopen=no
27839fi
27840rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027841LIBS=$ac_func_search_save_LIBS
27842fi
Reid Spencera773bd52006-08-04 18:18:08 +000027843{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27844echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27845ac_res=$ac_cv_search_dlopen
27846if test "$ac_res" != no; then
27847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027848
27849cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027850#define HAVE_DLOPEN 1
27851_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027852
27853else
Brian Gaekec45be042003-10-07 06:01:34 +000027854 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27855echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027856fi
27857
27858
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027859if test "$llvm_cv_enable_libffi" = "yes" ; then
27860 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027861echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27862if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027863 echo $ECHO_N "(cached) $ECHO_C" >&6
27864else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027865 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027866cat >conftest.$ac_ext <<_ACEOF
27867/* confdefs.h. */
27868_ACEOF
27869cat confdefs.h >>conftest.$ac_ext
27870cat >>conftest.$ac_ext <<_ACEOF
27871/* end confdefs.h. */
27872
27873/* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27876#ifdef __cplusplus
27877extern "C"
27878#endif
27879char ffi_call ();
27880int
27881main ()
27882{
27883return ffi_call ();
27884 ;
27885 return 0;
27886}
27887_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027888for ac_lib in '' ffi; do
27889 if test -z "$ac_lib"; then
27890 ac_res="none required"
27891 else
27892 ac_res=-l$ac_lib
27893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27894 fi
27895 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027896if { (ac_try="$ac_link"
27897case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_link") 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910 { (case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27913esac
27914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_try") 2>&5
27916 ac_status=$?
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; } &&
27919 { ac_try='test -s conftest$ac_exeext'
27920 { (case "(($ac_try" in
27921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922 *) ac_try_echo=$ac_try;;
27923esac
27924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_try") 2>&5
27926 ac_status=$?
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027929 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027930else
27931 echo "$as_me: failed program was:" >&5
27932sed 's/^/| /' conftest.$ac_ext >&5
27933
Nick Lewycky267fddb2009-04-13 04:26:27 +000027934
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027935fi
27936
Bill Wendlingebcceee2009-04-18 11:20:33 +000027937rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027938 conftest$ac_exeext
27939 if test "${ac_cv_search_ffi_call+set}" = set; then
27940 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027941fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027942done
27943if test "${ac_cv_search_ffi_call+set}" = set; then
27944 :
27945else
27946 ac_cv_search_ffi_call=no
27947fi
27948rm conftest.$ac_ext
27949LIBS=$ac_func_search_save_LIBS
27950fi
27951{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27952echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27953ac_res=$ac_cv_search_ffi_call
27954if test "$ac_res" != no; then
27955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27956
27957cat >>confdefs.h <<\_ACEOF
27958#define HAVE_FFI_CALL 1
27959_ACEOF
27960
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027961else
27962 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27963echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27964fi
27965
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027966fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027967
Reid Spencera773bd52006-08-04 18:18:08 +000027968{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27969echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027970if test "${ac_cv_search_mallinfo+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27972else
27973 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027974cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027975/* confdefs.h. */
27976_ACEOF
27977cat confdefs.h >>conftest.$ac_ext
27978cat >>conftest.$ac_ext <<_ACEOF
27979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027980
Reid Spencera773bd52006-08-04 18:18:08 +000027981/* Override any GCC internal prototype to avoid an error.
27982 Use char because int might match the return type of a GCC
27983 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027984#ifdef __cplusplus
27985extern "C"
27986#endif
John Criswell7a73b802003-06-30 21:59:07 +000027987char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027988int
27989main ()
27990{
Reid Spencera773bd52006-08-04 18:18:08 +000027991return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027992 ;
27993 return 0;
27994}
27995_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027996for ac_lib in '' malloc; do
27997 if test -z "$ac_lib"; then
27998 ac_res="none required"
27999 else
28000 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000028001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028002 fi
28003 rm -f conftest.$ac_objext conftest$ac_exeext
28004if { (ac_try="$ac_link"
28005case "(($ac_try" in
28006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007 *) ac_try_echo=$ac_try;;
28008esac
28009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028012 grep -v '^ *+' conftest.er1 >conftest.err
28013 rm -f conftest.er1
28014 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028016 (exit $ac_status); } &&
28017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28018 { (case "(($ac_try" in
28019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020 *) ac_try_echo=$ac_try;;
28021esac
28022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28023 (eval "$ac_try") 2>&5
28024 ac_status=$?
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); }; } &&
28027 { ac_try='test -s conftest$ac_exeext'
28028 { (case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_try") 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028037 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028038else
28039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028040sed 's/^/| /' conftest.$ac_ext >&5
28041
Reid Spencera773bd52006-08-04 18:18:08 +000028042
John Criswell7a73b802003-06-30 21:59:07 +000028043fi
Reid Spencera773bd52006-08-04 18:18:08 +000028044
Bill Wendlingebcceee2009-04-18 11:20:33 +000028045rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028046 conftest$ac_exeext
28047 if test "${ac_cv_search_mallinfo+set}" = set; then
28048 break
John Criswell7a73b802003-06-30 21:59:07 +000028049fi
Reid Spencera773bd52006-08-04 18:18:08 +000028050done
28051if test "${ac_cv_search_mallinfo+set}" = set; then
28052 :
28053else
28054 ac_cv_search_mallinfo=no
28055fi
28056rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028057LIBS=$ac_func_search_save_LIBS
28058fi
Reid Spencera773bd52006-08-04 18:18:08 +000028059{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28060echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28061ac_res=$ac_cv_search_mallinfo
28062if test "$ac_res" != no; then
28063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028064
28065cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028066#define HAVE_MALLINFO 1
28067_ACEOF
28068
28069fi
28070
28071
Reid Spencer0a262ba2005-08-24 10:07:20 +000028072if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028073
28074{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28075echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28076if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lpthread $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028081cat >conftest.$ac_ext <<_ACEOF
28082/* confdefs.h. */
28083_ACEOF
28084cat confdefs.h >>conftest.$ac_ext
28085cat >>conftest.$ac_ext <<_ACEOF
28086/* end confdefs.h. */
28087
Reid Spencera773bd52006-08-04 18:18:08 +000028088/* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028091#ifdef __cplusplus
28092extern "C"
28093#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028094char pthread_mutex_init ();
28095int
28096main ()
28097{
Reid Spencera773bd52006-08-04 18:18:08 +000028098return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028099 ;
28100 return 0;
28101}
28102_ACEOF
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028104if { (ac_try="$ac_link"
28105case "(($ac_try" in
28106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107 *) ac_try_echo=$ac_try;;
28108esac
28109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028111 ac_status=$?
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028116 (exit $ac_status); } &&
28117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28118 { (case "(($ac_try" in
28119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28121esac
28122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_try") 2>&5
28124 ac_status=$?
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest$ac_exeext'
28128 { (case "(($ac_try" in
28129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130 *) ac_try_echo=$ac_try;;
28131esac
28132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_try") 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028137 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000028138else
28139 echo "$as_me: failed program was:" >&5
28140sed 's/^/| /' conftest.$ac_ext >&5
28141
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028142 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028143fi
Reid Spencera773bd52006-08-04 18:18:08 +000028144
Bill Wendlingebcceee2009-04-18 11:20:33 +000028145rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028146 conftest$ac_exeext conftest.$ac_ext
28147LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028148fi
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028149{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28150echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28151if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28152 cat >>confdefs.h <<_ACEOF
28153#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028154_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028155
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028156 LIBS="-lpthread $LIBS"
28157
Reid Spencer22177fe2005-07-12 15:24:20 +000028158fi
28159
Reid Spencera773bd52006-08-04 18:18:08 +000028160 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28161echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028162if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28164else
28165 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028166cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
28172
Reid Spencera773bd52006-08-04 18:18:08 +000028173/* Override any GCC internal prototype to avoid an error.
28174 Use char because int might match the return type of a GCC
28175 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028176#ifdef __cplusplus
28177extern "C"
28178#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028179char pthread_mutex_lock ();
28180int
28181main ()
28182{
Reid Spencera773bd52006-08-04 18:18:08 +000028183return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028184 ;
28185 return 0;
28186}
28187_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028188for ac_lib in '' pthread; do
28189 if test -z "$ac_lib"; then
28190 ac_res="none required"
28191 else
28192 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028194 fi
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196if { (ac_try="$ac_link"
28197case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028208 (exit $ac_status); } &&
28209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210 { (case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28213esac
28214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_try") 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest$ac_exeext'
28220 { (case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28223esac
28224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_try") 2>&5
28226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028229 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028230else
28231 echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
Reid Spencera773bd52006-08-04 18:18:08 +000028234
Brian Gaeke5f268f72003-12-05 19:29:01 +000028235fi
Reid Spencera773bd52006-08-04 18:18:08 +000028236
Bill Wendlingebcceee2009-04-18 11:20:33 +000028237rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028238 conftest$ac_exeext
28239 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28240 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028241fi
Reid Spencera773bd52006-08-04 18:18:08 +000028242done
28243if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28244 :
28245else
28246 ac_cv_search_pthread_mutex_lock=no
28247fi
28248rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028249LIBS=$ac_func_search_save_LIBS
28250fi
Reid Spencera773bd52006-08-04 18:18:08 +000028251{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28252echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28253ac_res=$ac_cv_search_pthread_mutex_lock
28254if test "$ac_res" != no; then
28255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028256
John Criswell40468462004-09-24 21:19:06 +000028257cat >>confdefs.h <<\_ACEOF
28258#define HAVE_PTHREAD_MUTEX_LOCK 1
28259_ACEOF
28260
28261fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028262
Owen Andersonde8aed22009-06-16 18:20:20 +000028263 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28264echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28265if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28267else
28268 ac_func_search_save_LIBS=$LIBS
28269cat >conftest.$ac_ext <<_ACEOF
28270/* confdefs.h. */
28271_ACEOF
28272cat confdefs.h >>conftest.$ac_ext
28273cat >>conftest.$ac_ext <<_ACEOF
28274/* end confdefs.h. */
28275
28276/* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28279#ifdef __cplusplus
28280extern "C"
28281#endif
28282char pthread_rwlock_init ();
28283int
28284main ()
28285{
28286return pthread_rwlock_init ();
28287 ;
28288 return 0;
28289}
28290_ACEOF
28291for ac_lib in '' pthread; do
28292 if test -z "$ac_lib"; then
28293 ac_res="none required"
28294 else
28295 ac_res=-l$ac_lib
28296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28297 fi
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299if { (ac_try="$ac_link"
28300case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28303esac
28304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
28312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28316esac
28317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; } &&
28322 { ac_try='test -s conftest$ac_exeext'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28326esac
28327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; }; then
28332 ac_cv_search_pthread_rwlock_init=$ac_res
28333else
28334 echo "$as_me: failed program was:" >&5
28335sed 's/^/| /' conftest.$ac_ext >&5
28336
28337
28338fi
28339
28340rm -f core conftest.err conftest.$ac_objext \
28341 conftest$ac_exeext
28342 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28343 break
28344fi
28345done
28346if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28347 :
28348else
28349 ac_cv_search_pthread_rwlock_init=no
28350fi
28351rm conftest.$ac_ext
28352LIBS=$ac_func_search_save_LIBS
28353fi
28354{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28355echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28356ac_res=$ac_cv_search_pthread_rwlock_init
28357if test "$ac_res" != no; then
28358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28359
28360cat >>confdefs.h <<\_ACEOF
28361#define HAVE_PTHREAD_RWLOCK_INIT 1
28362_ACEOF
28363
28364fi
28365
Owen Anderson27fcfe12009-06-25 23:10:26 +000028366 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28367echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28368if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28370else
28371 ac_func_search_save_LIBS=$LIBS
28372cat >conftest.$ac_ext <<_ACEOF
28373/* confdefs.h. */
28374_ACEOF
28375cat confdefs.h >>conftest.$ac_ext
28376cat >>conftest.$ac_ext <<_ACEOF
28377/* end confdefs.h. */
28378
28379/* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
28382#ifdef __cplusplus
28383extern "C"
28384#endif
28385char pthread_getspecific ();
28386int
28387main ()
28388{
28389return pthread_getspecific ();
28390 ;
28391 return 0;
28392}
28393_ACEOF
28394for ac_lib in '' pthread; do
28395 if test -z "$ac_lib"; then
28396 ac_res="none required"
28397 else
28398 ac_res=-l$ac_lib
28399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28400 fi
28401 rm -f conftest.$ac_objext conftest$ac_exeext
28402if { (ac_try="$ac_link"
28403case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_link") 2>conftest.er1
28409 ac_status=$?
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416 { (case "(($ac_try" in
28417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418 *) ac_try_echo=$ac_try;;
28419esac
28420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421 (eval "$ac_try") 2>&5
28422 ac_status=$?
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; } &&
28425 { ac_try='test -s conftest$ac_exeext'
28426 { (case "(($ac_try" in
28427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428 *) ac_try_echo=$ac_try;;
28429esac
28430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431 (eval "$ac_try") 2>&5
28432 ac_status=$?
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28435 ac_cv_search_pthread_getspecific=$ac_res
28436else
28437 echo "$as_me: failed program was:" >&5
28438sed 's/^/| /' conftest.$ac_ext >&5
28439
28440
28441fi
28442
28443rm -f core conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext
28445 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28446 break
28447fi
28448done
28449if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28450 :
28451else
28452 ac_cv_search_pthread_getspecific=no
28453fi
28454rm conftest.$ac_ext
28455LIBS=$ac_func_search_save_LIBS
28456fi
28457{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28458echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28459ac_res=$ac_cv_search_pthread_getspecific
28460if test "$ac_res" != no; then
28461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28462
28463cat >>confdefs.h <<\_ACEOF
28464#define HAVE_PTHREAD_GETSPECIFIC 1
28465_ACEOF
28466
28467fi
28468
Reid Spencer0a262ba2005-08-24 10:07:20 +000028469fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028470
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028471
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028472# Check whether --with-udis86 was given.
28473if test "${with_udis86+set}" = set; then
28474 withval=$with_udis86;
28475 USE_UDIS86=1
28476
28477 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028478 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028479 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28480 esac
28481
28482{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28483echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28484if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487 ac_check_lib_save_LIBS=$LIBS
28488LIBS="-ludis86 $LIBS"
28489cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495
28496/* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502char ud_init ();
28503int
28504main ()
28505{
28506return ud_init ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext conftest$ac_exeext
28512if { (ac_try="$ac_link"
28513case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28516esac
28517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>conftest.er1
28519 ac_status=$?
28520 grep -v '^ *+' conftest.er1 >conftest.err
28521 rm -f conftest.er1
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028524 (exit $ac_status); } &&
28525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28526 { (case "(($ac_try" in
28527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28529esac
28530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_try") 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (case "(($ac_try" in
28537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538 *) ac_try_echo=$ac_try;;
28539esac
28540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541 (eval "$ac_try") 2>&5
28542 ac_status=$?
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028545 ac_cv_lib_udis86_ud_init=yes
28546else
28547 echo "$as_me: failed program was:" >&5
28548sed 's/^/| /' conftest.$ac_ext >&5
28549
28550 ac_cv_lib_udis86_ud_init=no
28551fi
28552
Bill Wendlingebcceee2009-04-18 11:20:33 +000028553rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028554 conftest$ac_exeext conftest.$ac_ext
28555LIBS=$ac_check_lib_save_LIBS
28556fi
28557{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28558echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28559if test $ac_cv_lib_udis86_ud_init = yes; then
28560 cat >>confdefs.h <<_ACEOF
28561#define HAVE_LIBUDIS86 1
28562_ACEOF
28563
28564 LIBS="-ludis86 $LIBS"
28565
28566else
28567
28568 echo "Error! You need to have libudis86 around."
28569 exit -1
28570
28571fi
28572
28573
28574else
28575 USE_UDIS86=0
28576
28577fi
28578
28579
28580cat >>confdefs.h <<_ACEOF
28581#define USE_UDIS86 $USE_UDIS86
28582_ACEOF
28583
28584
28585
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028586# Check whether --with-oprofile was given.
28587if test "${with_oprofile+set}" = set; then
28588 withval=$with_oprofile;
28589 USE_OPROFILE=1
28590
28591 case "$withval" in
28592 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028593 no) llvm_cv_oppath=
28594 USE_OPROFILE=0
28595 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028596 *) llvm_cv_oppath="${withval}/lib/oprofile"
28597 CPPFLAGS="-I${withval}/include";;
28598 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028599 if test -n "$llvm_cv_oppath" ; then
28600 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28601 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28602echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28603if test "${ac_cv_search_bfd_init+set}" = set; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28605else
28606 ac_func_search_save_LIBS=$LIBS
28607cat >conftest.$ac_ext <<_ACEOF
28608/* confdefs.h. */
28609_ACEOF
28610cat confdefs.h >>conftest.$ac_ext
28611cat >>conftest.$ac_ext <<_ACEOF
28612/* end confdefs.h. */
28613
28614/* Override any GCC internal prototype to avoid an error.
28615 Use char because int might match the return type of a GCC
28616 builtin and then its argument prototype would still apply. */
28617#ifdef __cplusplus
28618extern "C"
28619#endif
28620char bfd_init ();
28621int
28622main ()
28623{
28624return bfd_init ();
28625 ;
28626 return 0;
28627}
28628_ACEOF
28629for ac_lib in '' bfd; do
28630 if test -z "$ac_lib"; then
28631 ac_res="none required"
28632 else
28633 ac_res=-l$ac_lib
28634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28635 fi
28636 rm -f conftest.$ac_objext conftest$ac_exeext
28637if { (ac_try="$ac_link"
28638case "(($ac_try" in
28639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640 *) ac_try_echo=$ac_try;;
28641esac
28642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643 (eval "$ac_link") 2>conftest.er1
28644 ac_status=$?
28645 grep -v '^ *+' conftest.er1 >conftest.err
28646 rm -f conftest.er1
28647 cat conftest.err >&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } &&
28650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28651 { (case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654esac
28655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_try") 2>&5
28657 ac_status=$?
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try='test -s conftest$ac_exeext'
28661 { (case "(($ac_try" in
28662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663 *) ac_try_echo=$ac_try;;
28664esac
28665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666 (eval "$ac_try") 2>&5
28667 ac_status=$?
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; }; then
28670 ac_cv_search_bfd_init=$ac_res
28671else
28672 echo "$as_me: failed program was:" >&5
28673sed 's/^/| /' conftest.$ac_ext >&5
28674
28675
28676fi
28677
28678rm -f core conftest.err conftest.$ac_objext \
28679 conftest$ac_exeext
28680 if test "${ac_cv_search_bfd_init+set}" = set; then
28681 break
28682fi
28683done
28684if test "${ac_cv_search_bfd_init+set}" = set; then
28685 :
28686else
28687 ac_cv_search_bfd_init=no
28688fi
28689rm conftest.$ac_ext
28690LIBS=$ac_func_search_save_LIBS
28691fi
28692{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28693echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28694ac_res=$ac_cv_search_bfd_init
28695if test "$ac_res" != no; then
28696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28697
28698fi
28699
28700 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028701echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28702if test "${ac_cv_search_op_open_agent+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704else
28705 ac_func_search_save_LIBS=$LIBS
28706cat >conftest.$ac_ext <<_ACEOF
28707/* confdefs.h. */
28708_ACEOF
28709cat confdefs.h >>conftest.$ac_ext
28710cat >>conftest.$ac_ext <<_ACEOF
28711/* end confdefs.h. */
28712
28713/* Override any GCC internal prototype to avoid an error.
28714 Use char because int might match the return type of a GCC
28715 builtin and then its argument prototype would still apply. */
28716#ifdef __cplusplus
28717extern "C"
28718#endif
28719char op_open_agent ();
28720int
28721main ()
28722{
28723return op_open_agent ();
28724 ;
28725 return 0;
28726}
28727_ACEOF
28728for ac_lib in '' opagent; do
28729 if test -z "$ac_lib"; then
28730 ac_res="none required"
28731 else
28732 ac_res=-l$ac_lib
28733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28734 fi
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736if { (ac_try="$ac_link"
28737case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28740esac
28741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_link") 2>conftest.er1
28743 ac_status=$?
28744 grep -v '^ *+' conftest.er1 >conftest.err
28745 rm -f conftest.er1
28746 cat conftest.err >&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } &&
28749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28750 { (case "(($ac_try" in
28751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28753esac
28754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_try") 2>&5
28756 ac_status=$?
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; } &&
28759 { ac_try='test -s conftest$ac_exeext'
28760 { (case "(($ac_try" in
28761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762 *) ac_try_echo=$ac_try;;
28763esac
28764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765 (eval "$ac_try") 2>&5
28766 ac_status=$?
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; }; then
28769 ac_cv_search_op_open_agent=$ac_res
28770else
28771 echo "$as_me: failed program was:" >&5
28772sed 's/^/| /' conftest.$ac_ext >&5
28773
28774
28775fi
28776
28777rm -f core conftest.err conftest.$ac_objext \
28778 conftest$ac_exeext
28779 if test "${ac_cv_search_op_open_agent+set}" = set; then
28780 break
28781fi
28782done
28783if test "${ac_cv_search_op_open_agent+set}" = set; then
28784 :
28785else
28786 ac_cv_search_op_open_agent=no
28787fi
28788rm conftest.$ac_ext
28789LIBS=$ac_func_search_save_LIBS
28790fi
28791{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28792echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28793ac_res=$ac_cv_search_op_open_agent
28794if test "$ac_res" != no; then
28795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28796
28797else
28798
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028799 echo "Error! You need to have libopagent around."
28800 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028801
28802fi
28803
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028804 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028805 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28806echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28807if test "${ac_cv_header_opagent_h+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28809fi
28810{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28811echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28812else
28813 # Is the header compilable?
28814{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28815echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28816cat >conftest.$ac_ext <<_ACEOF
28817/* confdefs.h. */
28818_ACEOF
28819cat confdefs.h >>conftest.$ac_ext
28820cat >>conftest.$ac_ext <<_ACEOF
28821/* end confdefs.h. */
28822$ac_includes_default
28823#include <opagent.h>
28824_ACEOF
28825rm -f conftest.$ac_objext
28826if { (ac_try="$ac_compile"
28827case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28830esac
28831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_compile") 2>conftest.er1
28833 ac_status=$?
28834 grep -v '^ *+' conftest.er1 >conftest.err
28835 rm -f conftest.er1
28836 cat conftest.err >&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } &&
28839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28840 { (case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28843esac
28844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_try") 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; } &&
28849 { ac_try='test -s conftest.$ac_objext'
28850 { (case "(($ac_try" in
28851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852 *) ac_try_echo=$ac_try;;
28853esac
28854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855 (eval "$ac_try") 2>&5
28856 ac_status=$?
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); }; }; then
28859 ac_header_compiler=yes
28860else
28861 echo "$as_me: failed program was:" >&5
28862sed 's/^/| /' conftest.$ac_ext >&5
28863
28864 ac_header_compiler=no
28865fi
28866
28867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28869echo "${ECHO_T}$ac_header_compiler" >&6; }
28870
28871# Is the header present?
28872{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28873echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28874cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880#include <opagent.h>
28881_ACEOF
28882if { (ac_try="$ac_cpp conftest.$ac_ext"
28883case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28886esac
28887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28889 ac_status=$?
28890 grep -v '^ *+' conftest.er1 >conftest.err
28891 rm -f conftest.er1
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } >/dev/null; then
28895 if test -s conftest.err; then
28896 ac_cpp_err=$ac_c_preproc_warn_flag
28897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28898 else
28899 ac_cpp_err=
28900 fi
28901else
28902 ac_cpp_err=yes
28903fi
28904if test -z "$ac_cpp_err"; then
28905 ac_header_preproc=yes
28906else
28907 echo "$as_me: failed program was:" >&5
28908sed 's/^/| /' conftest.$ac_ext >&5
28909
28910 ac_header_preproc=no
28911fi
28912
28913rm -f conftest.err conftest.$ac_ext
28914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28915echo "${ECHO_T}$ac_header_preproc" >&6; }
28916
28917# So? What about this header?
28918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28919 yes:no: )
28920 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28921echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28923echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28924 ac_header_preproc=yes
28925 ;;
28926 no:yes:* )
28927 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28928echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28930echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28931 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28932echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28934echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28936echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28937 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28938echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28939 ( cat <<\_ASBOX
28940## ----------------------------------- ##
28941## Report this to llvmbugs@cs.uiuc.edu ##
28942## ----------------------------------- ##
28943_ASBOX
28944 ) | sed "s/^/$as_me: WARNING: /" >&2
28945 ;;
28946esac
28947{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28948echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28949if test "${ac_cv_header_opagent_h+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 ac_cv_header_opagent_h=$ac_header_preproc
28953fi
28954{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28955echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28956
28957fi
28958if test $ac_cv_header_opagent_h = yes; then
28959 :
28960else
28961
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028962 echo "Error! You need to have opagent.h around."
28963 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028964
28965fi
28966
28967
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028968 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028969
28970else
28971
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028972 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028973
28974
28975fi
28976
28977
28978cat >>confdefs.h <<_ACEOF
28979#define USE_OPROFILE $USE_OPROFILE
28980_ACEOF
28981
28982
28983
Reid Spencer59473af2004-12-25 07:31:29 +000028984
28985
28986
28987
28988
28989ac_header_dirent=no
28990for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28991 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028992{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28993echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028995 echo $ECHO_N "(cached) $ECHO_C" >&6
28996else
28997 cat >conftest.$ac_ext <<_ACEOF
28998/* confdefs.h. */
28999_ACEOF
29000cat confdefs.h >>conftest.$ac_ext
29001cat >>conftest.$ac_ext <<_ACEOF
29002/* end confdefs.h. */
29003#include <sys/types.h>
29004#include <$ac_hdr>
29005
29006int
29007main ()
29008{
29009if ((DIR *) 0)
29010return 0;
29011 ;
29012 return 0;
29013}
29014_ACEOF
29015rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029016if { (ac_try="$ac_compile"
29017case "(($ac_try" in
29018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29020esac
29021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029023 ac_status=$?
29024 grep -v '^ *+' conftest.er1 >conftest.err
29025 rm -f conftest.er1
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29030 { (case "(($ac_try" in
29031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032 *) ac_try_echo=$ac_try;;
29033esac
29034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29035 (eval "$ac_try") 2>&5
29036 ac_status=$?
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; } &&
29039 { ac_try='test -s conftest.$ac_objext'
29040 { (case "(($ac_try" in
29041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29043esac
29044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045 (eval "$ac_try") 2>&5
29046 ac_status=$?
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029049 eval "$as_ac_Header=yes"
29050else
29051 echo "$as_me: failed program was:" >&5
29052sed 's/^/| /' conftest.$ac_ext >&5
29053
Reid Spencera773bd52006-08-04 18:18:08 +000029054 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029055fi
Reid Spencera773bd52006-08-04 18:18:08 +000029056
29057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029058fi
Reid Spencera773bd52006-08-04 18:18:08 +000029059ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029062if test `eval echo '${'$as_ac_Header'}'` = yes; then
29063 cat >>confdefs.h <<_ACEOF
29064#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29065_ACEOF
29066
29067ac_header_dirent=$ac_hdr; break
29068fi
29069
29070done
29071# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29072if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029073 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29074echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029075if test "${ac_cv_search_opendir+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29077else
29078 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029079cat >conftest.$ac_ext <<_ACEOF
29080/* confdefs.h. */
29081_ACEOF
29082cat confdefs.h >>conftest.$ac_ext
29083cat >>conftest.$ac_ext <<_ACEOF
29084/* end confdefs.h. */
29085
Reid Spencera773bd52006-08-04 18:18:08 +000029086/* Override any GCC internal prototype to avoid an error.
29087 Use char because int might match the return type of a GCC
29088 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029089#ifdef __cplusplus
29090extern "C"
29091#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029092char opendir ();
29093int
29094main ()
29095{
Reid Spencera773bd52006-08-04 18:18:08 +000029096return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029097 ;
29098 return 0;
29099}
29100_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029101for ac_lib in '' dir; do
29102 if test -z "$ac_lib"; then
29103 ac_res="none required"
29104 else
29105 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029107 fi
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109if { (ac_try="$ac_link"
29110case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29113esac
29114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029116 ac_status=$?
29117 grep -v '^ *+' conftest.er1 >conftest.err
29118 rm -f conftest.er1
29119 cat conftest.err >&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029121 (exit $ac_status); } &&
29122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29123 { (case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29126esac
29127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_try") 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest$ac_exeext'
29133 { (case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29136esac
29137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_try") 2>&5
29139 ac_status=$?
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029142 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029143else
29144 echo "$as_me: failed program was:" >&5
29145sed 's/^/| /' conftest.$ac_ext >&5
29146
Reid Spencera773bd52006-08-04 18:18:08 +000029147
Reid Spencer59473af2004-12-25 07:31:29 +000029148fi
Reid Spencera773bd52006-08-04 18:18:08 +000029149
Bill Wendlingebcceee2009-04-18 11:20:33 +000029150rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029151 conftest$ac_exeext
29152 if test "${ac_cv_search_opendir+set}" = set; then
29153 break
Reid Spencer59473af2004-12-25 07:31:29 +000029154fi
Reid Spencera773bd52006-08-04 18:18:08 +000029155done
29156if test "${ac_cv_search_opendir+set}" = set; then
29157 :
29158else
29159 ac_cv_search_opendir=no
29160fi
29161rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029162LIBS=$ac_func_search_save_LIBS
29163fi
Reid Spencera773bd52006-08-04 18:18:08 +000029164{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29165echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29166ac_res=$ac_cv_search_opendir
29167if test "$ac_res" != no; then
29168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029169
29170fi
29171
29172else
Reid Spencera773bd52006-08-04 18:18:08 +000029173 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29174echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029175if test "${ac_cv_search_opendir+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29177else
29178 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029179cat >conftest.$ac_ext <<_ACEOF
29180/* confdefs.h. */
29181_ACEOF
29182cat confdefs.h >>conftest.$ac_ext
29183cat >>conftest.$ac_ext <<_ACEOF
29184/* end confdefs.h. */
29185
Reid Spencera773bd52006-08-04 18:18:08 +000029186/* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029189#ifdef __cplusplus
29190extern "C"
29191#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029192char opendir ();
29193int
29194main ()
29195{
Reid Spencera773bd52006-08-04 18:18:08 +000029196return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029197 ;
29198 return 0;
29199}
29200_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029201for ac_lib in '' x; do
29202 if test -z "$ac_lib"; then
29203 ac_res="none required"
29204 else
29205 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029207 fi
29208 rm -f conftest.$ac_objext conftest$ac_exeext
29209if { (ac_try="$ac_link"
29210case "(($ac_try" in
29211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29213esac
29214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029216 ac_status=$?
29217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029221 (exit $ac_status); } &&
29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29223 { (case "(($ac_try" in
29224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225 *) ac_try_echo=$ac_try;;
29226esac
29227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228 (eval "$ac_try") 2>&5
29229 ac_status=$?
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); }; } &&
29232 { ac_try='test -s conftest$ac_exeext'
29233 { (case "(($ac_try" in
29234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235 *) ac_try_echo=$ac_try;;
29236esac
29237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_try") 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029242 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029243else
29244 echo "$as_me: failed program was:" >&5
29245sed 's/^/| /' conftest.$ac_ext >&5
29246
Reid Spencera773bd52006-08-04 18:18:08 +000029247
Reid Spencer59473af2004-12-25 07:31:29 +000029248fi
Reid Spencera773bd52006-08-04 18:18:08 +000029249
Bill Wendlingebcceee2009-04-18 11:20:33 +000029250rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029251 conftest$ac_exeext
29252 if test "${ac_cv_search_opendir+set}" = set; then
29253 break
Reid Spencer59473af2004-12-25 07:31:29 +000029254fi
Reid Spencera773bd52006-08-04 18:18:08 +000029255done
29256if test "${ac_cv_search_opendir+set}" = set; then
29257 :
29258else
29259 ac_cv_search_opendir=no
29260fi
29261rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029262LIBS=$ac_func_search_save_LIBS
29263fi
Reid Spencera773bd52006-08-04 18:18:08 +000029264{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29265echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29266ac_res=$ac_cv_search_opendir
29267if test "$ac_res" != no; then
29268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029269
29270fi
29271
29272fi
29273
Reid Spencera773bd52006-08-04 18:18:08 +000029274{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29275echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029276if test "${ac_cv_header_mmap_anon+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278else
29279 ac_ext=c
29280ac_cpp='$CPP $CPPFLAGS'
29281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283ac_compiler_gnu=$ac_cv_c_compiler_gnu
29284
29285 cat >conftest.$ac_ext <<_ACEOF
29286/* confdefs.h. */
29287_ACEOF
29288cat confdefs.h >>conftest.$ac_ext
29289cat >>conftest.$ac_ext <<_ACEOF
29290/* end confdefs.h. */
29291#include <sys/mman.h>
29292#include <unistd.h>
29293#include <fcntl.h>
29294int
29295main ()
29296{
29297mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29298 ;
29299 return 0;
29300}
29301_ACEOF
29302rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029303if { (ac_try="$ac_compile"
29304case "(($ac_try" in
29305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306 *) ac_try_echo=$ac_try;;
29307esac
29308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029310 ac_status=$?
29311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029315 (exit $ac_status); } &&
29316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317 { (case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29320esac
29321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
29327 { (case "(($ac_try" in
29328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29329 *) ac_try_echo=$ac_try;;
29330esac
29331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332 (eval "$ac_try") 2>&5
29333 ac_status=$?
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029336 ac_cv_header_mmap_anon=yes
29337else
29338 echo "$as_me: failed program was:" >&5
29339sed 's/^/| /' conftest.$ac_ext >&5
29340
Reid Spencera773bd52006-08-04 18:18:08 +000029341 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029342fi
Reid Spencera773bd52006-08-04 18:18:08 +000029343
29344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029345 ac_ext=c
29346ac_cpp='$CPP $CPPFLAGS'
29347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29349ac_compiler_gnu=$ac_cv_c_compiler_gnu
29350
29351
29352fi
Reid Spencera773bd52006-08-04 18:18:08 +000029353{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29354echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029355if test "$ac_cv_header_mmap_anon" = yes; then
29356
29357cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029358#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029359_ACEOF
29360
29361fi
29362
Reid Spencera773bd52006-08-04 18:18:08 +000029363{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29364echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029365if test "${ac_cv_header_stat_broken+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368 cat >conftest.$ac_ext <<_ACEOF
29369/* confdefs.h. */
29370_ACEOF
29371cat confdefs.h >>conftest.$ac_ext
29372cat >>conftest.$ac_ext <<_ACEOF
29373/* end confdefs.h. */
29374#include <sys/types.h>
29375#include <sys/stat.h>
29376
Reid Spencera773bd52006-08-04 18:18:08 +000029377#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029378# if S_ISBLK (S_IFDIR)
29379You lose.
29380# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029381#endif
29382
Reid Spencera773bd52006-08-04 18:18:08 +000029383#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029384# if S_ISBLK (S_IFCHR)
29385You lose.
29386# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029387#endif
29388
Reid Spencera773bd52006-08-04 18:18:08 +000029389#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029390# if S_ISLNK (S_IFREG)
29391You lose.
29392# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029393#endif
29394
Reid Spencera773bd52006-08-04 18:18:08 +000029395#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029396# if S_ISSOCK (S_IFREG)
29397You lose.
29398# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029399#endif
29400
29401_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29403 $EGREP "You lose" >/dev/null 2>&1; then
29404 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029405else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029406 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029407fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029408rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029409
Reid Spencer59473af2004-12-25 07:31:29 +000029410fi
Reid Spencera773bd52006-08-04 18:18:08 +000029411{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29412echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029413if test $ac_cv_header_stat_broken = yes; then
29414
29415cat >>confdefs.h <<\_ACEOF
29416#define STAT_MACROS_BROKEN 1
29417_ACEOF
29418
29419fi
29420
Reid Spencera773bd52006-08-04 18:18:08 +000029421{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29422echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029423if test "${ac_cv_header_stdc+set}" = set; then
29424 echo $ECHO_N "(cached) $ECHO_C" >&6
29425else
29426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029427/* confdefs.h. */
29428_ACEOF
29429cat confdefs.h >>conftest.$ac_ext
29430cat >>conftest.$ac_ext <<_ACEOF
29431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029432#include <stdlib.h>
29433#include <stdarg.h>
29434#include <string.h>
29435#include <float.h>
29436
John Criswell0c38eaf2003-09-10 15:17:25 +000029437int
29438main ()
29439{
29440
29441 ;
29442 return 0;
29443}
John Criswell7a73b802003-06-30 21:59:07 +000029444_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029445rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029446if { (ac_try="$ac_compile"
29447case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29450esac
29451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029454 grep -v '^ *+' conftest.er1 >conftest.err
29455 rm -f conftest.er1
29456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest.$ac_objext'
29470 { (case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473esac
29474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_try") 2>&5
29476 ac_status=$?
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029479 ac_cv_header_stdc=yes
29480else
29481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029482sed 's/^/| /' conftest.$ac_ext >&5
29483
Reid Spencera773bd52006-08-04 18:18:08 +000029484 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029485fi
Reid Spencera773bd52006-08-04 18:18:08 +000029486
29487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029488
29489if test $ac_cv_header_stdc = yes; then
29490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29491 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029497#include <string.h>
29498
29499_ACEOF
29500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029501 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029502 :
29503else
29504 ac_cv_header_stdc=no
29505fi
29506rm -f conftest*
29507
29508fi
29509
29510if test $ac_cv_header_stdc = yes; then
29511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029513/* confdefs.h. */
29514_ACEOF
29515cat confdefs.h >>conftest.$ac_ext
29516cat >>conftest.$ac_ext <<_ACEOF
29517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029518#include <stdlib.h>
29519
29520_ACEOF
29521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029522 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029523 :
29524else
29525 ac_cv_header_stdc=no
29526fi
29527rm -f conftest*
29528
29529fi
29530
29531if test $ac_cv_header_stdc = yes; then
29532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29533 if test "$cross_compiling" = yes; then
29534 :
29535else
29536 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029537/* confdefs.h. */
29538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029542#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029543#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029544#if ((' ' & 0x0FF) == 0x020)
29545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29547#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029548# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 (('a' <= (c) && (c) <= 'i') \
29550 || ('j' <= (c) && (c) <= 'r') \
29551 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29553#endif
29554
29555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29556int
29557main ()
29558{
29559 int i;
29560 for (i = 0; i < 256; i++)
29561 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029562 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029563 return 2;
29564 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029565}
29566_ACEOF
29567rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029568if { (ac_try="$ac_link"
29569case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29572esac
29573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029575 ac_status=$?
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29581esac
29582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029584 ac_status=$?
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29587 :
29588else
29589 echo "$as_me: program exited with status $ac_status" >&5
29590echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029591sed 's/^/| /' conftest.$ac_ext >&5
29592
John Criswell7a73b802003-06-30 21:59:07 +000029593( exit $ac_status )
29594ac_cv_header_stdc=no
29595fi
Reid Spencera773bd52006-08-04 18:18:08 +000029596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29597fi
29598
29599
John Criswell7a73b802003-06-30 21:59:07 +000029600fi
29601fi
Reid Spencera773bd52006-08-04 18:18:08 +000029602{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29603echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029604if test $ac_cv_header_stdc = yes; then
29605
29606cat >>confdefs.h <<\_ACEOF
29607#define STDC_HEADERS 1
29608_ACEOF
29609
29610fi
29611
Reid Spencera773bd52006-08-04 18:18:08 +000029612{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29613echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029614if test "${ac_cv_header_sys_wait_h+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029623#include <sys/types.h>
29624#include <sys/wait.h>
29625#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029626# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029627#endif
29628#ifndef WIFEXITED
29629# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29630#endif
29631
John Criswell7a73b802003-06-30 21:59:07 +000029632int
29633main ()
29634{
29635 int s;
29636 wait (&s);
29637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29638 ;
29639 return 0;
29640}
29641_ACEOF
29642rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029643if { (ac_try="$ac_compile"
29644case "(($ac_try" in
29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646 *) ac_try_echo=$ac_try;;
29647esac
29648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029651 grep -v '^ *+' conftest.er1 >conftest.err
29652 rm -f conftest.er1
29653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029655 (exit $ac_status); } &&
29656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29657 { (case "(($ac_try" in
29658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29660esac
29661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_try") 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; } &&
29666 { ac_try='test -s conftest.$ac_objext'
29667 { (case "(($ac_try" in
29668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669 *) ac_try_echo=$ac_try;;
29670esac
29671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_try") 2>&5
29673 ac_status=$?
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029676 ac_cv_header_sys_wait_h=yes
29677else
29678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029679sed 's/^/| /' conftest.$ac_ext >&5
29680
Reid Spencera773bd52006-08-04 18:18:08 +000029681 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029682fi
Reid Spencera773bd52006-08-04 18:18:08 +000029683
29684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029685fi
Reid Spencera773bd52006-08-04 18:18:08 +000029686{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29687echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029688if test $ac_cv_header_sys_wait_h = yes; then
29689
29690cat >>confdefs.h <<\_ACEOF
29691#define HAVE_SYS_WAIT_H 1
29692_ACEOF
29693
29694fi
29695
Reid Spencera773bd52006-08-04 18:18:08 +000029696{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29697echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029698if test "${ac_cv_header_time+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701 cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029707#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029708#include <sys/time.h>
29709#include <time.h>
29710
29711int
29712main ()
29713{
29714if ((struct tm *) 0)
29715return 0;
29716 ;
29717 return 0;
29718}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029719_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029721if { (ac_try="$ac_compile"
29722case "(($ac_try" in
29723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29724 *) ac_try_echo=$ac_try;;
29725esac
29726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029728 ac_status=$?
29729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29735 { (case "(($ac_try" in
29736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737 *) ac_try_echo=$ac_try;;
29738esac
29739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740 (eval "$ac_try") 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try='test -s conftest.$ac_objext'
29745 { (case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29748esac
29749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_try") 2>&5
29751 ac_status=$?
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029754 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029755else
29756 echo "$as_me: failed program was:" >&5
29757sed 's/^/| /' conftest.$ac_ext >&5
29758
Reid Spencera773bd52006-08-04 18:18:08 +000029759 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029760fi
Reid Spencera773bd52006-08-04 18:18:08 +000029761
29762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029763fi
Reid Spencera773bd52006-08-04 18:18:08 +000029764{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29765echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029766if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029767
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029768cat >>confdefs.h <<\_ACEOF
29769#define TIME_WITH_SYS_TIME 1
29770_ACEOF
29771
29772fi
29773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029774
Reid Spencer59473af2004-12-25 07:31:29 +000029775
29776
29777
29778
29779
29780
29781for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29782do
29783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029788 echo $ECHO_N "(cached) $ECHO_C" >&6
29789fi
Reid Spencera773bd52006-08-04 18:18:08 +000029790ac_res=`eval echo '${'$as_ac_Header'}'`
29791 { echo "$as_me:$LINENO: result: $ac_res" >&5
29792echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029793else
29794 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029795{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029797cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029798/* confdefs.h. */
29799_ACEOF
29800cat confdefs.h >>conftest.$ac_ext
29801cat >>conftest.$ac_ext <<_ACEOF
29802/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029803$ac_includes_default
29804#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029805_ACEOF
29806rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029807if { (ac_try="$ac_compile"
29808case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29811esac
29812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029814 ac_status=$?
29815 grep -v '^ *+' conftest.er1 >conftest.err
29816 rm -f conftest.er1
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029819 (exit $ac_status); } &&
29820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821 { (case "(($ac_try" in
29822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823 *) ac_try_echo=$ac_try;;
29824esac
29825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826 (eval "$ac_try") 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29834esac
29835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029840 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029841else
29842 echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
Reid Spencera773bd52006-08-04 18:18:08 +000029845 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029846fi
Reid Spencera773bd52006-08-04 18:18:08 +000029847
29848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29849{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29850echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029851
Reid Spencer59473af2004-12-25 07:31:29 +000029852# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029853{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029855cat >conftest.$ac_ext <<_ACEOF
29856/* confdefs.h. */
29857_ACEOF
29858cat confdefs.h >>conftest.$ac_ext
29859cat >>conftest.$ac_ext <<_ACEOF
29860/* end confdefs.h. */
29861#include <$ac_header>
29862_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029863if { (ac_try="$ac_cpp conftest.$ac_ext"
29864case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029870 ac_status=$?
29871 grep -v '^ *+' conftest.er1 >conftest.err
29872 rm -f conftest.er1
29873 cat conftest.err >&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029875 (exit $ac_status); } >/dev/null; then
29876 if test -s conftest.err; then
29877 ac_cpp_err=$ac_c_preproc_warn_flag
29878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29879 else
29880 ac_cpp_err=
29881 fi
29882else
29883 ac_cpp_err=yes
29884fi
29885if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029886 ac_header_preproc=yes
29887else
29888 echo "$as_me: failed program was:" >&5
29889sed 's/^/| /' conftest.$ac_ext >&5
29890
29891 ac_header_preproc=no
29892fi
Reid Spencera773bd52006-08-04 18:18:08 +000029893
Reid Spencer59473af2004-12-25 07:31:29 +000029894rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029895{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29896echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029897
29898# So? What about this header?
29899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29900 yes:no: )
29901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29905 ac_header_preproc=yes
29906 ;;
29907 no:yes:* )
29908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029920 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029921## ----------------------------------- ##
29922## Report this to llvmbugs@cs.uiuc.edu ##
29923## ----------------------------------- ##
29924_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029925 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029926 ;;
29927esac
Reid Spencera773bd52006-08-04 18:18:08 +000029928{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029931 echo $ECHO_N "(cached) $ECHO_C" >&6
29932else
29933 eval "$as_ac_Header=\$ac_header_preproc"
29934fi
Reid Spencera773bd52006-08-04 18:18:08 +000029935ac_res=`eval echo '${'$as_ac_Header'}'`
29936 { echo "$as_me:$LINENO: result: $ac_res" >&5
29937echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029938
29939fi
Reid Spencer59473af2004-12-25 07:31:29 +000029940if test `eval echo '${'$as_ac_Header'}'` = yes; then
29941 cat >>confdefs.h <<_ACEOF
29942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029943_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029944
29945fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029946
Reid Spencer59473af2004-12-25 07:31:29 +000029947done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029949
29950
Reid Spencer59473af2004-12-25 07:31:29 +000029951
29952
29953
29954
Douglas Gregor071d73d2009-05-18 17:21:34 +000029955for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029956do
29957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029962 echo $ECHO_N "(cached) $ECHO_C" >&6
29963fi
Reid Spencera773bd52006-08-04 18:18:08 +000029964ac_res=`eval echo '${'$as_ac_Header'}'`
29965 { echo "$as_me:$LINENO: result: $ac_res" >&5
29966echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029967else
29968 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029971cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977$ac_includes_default
29978#include <$ac_header>
29979_ACEOF
29980rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029981if { (ac_try="$ac_compile"
29982case "(($ac_try" in
29983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984 *) ac_try_echo=$ac_try;;
29985esac
29986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029988 ac_status=$?
29989 grep -v '^ *+' conftest.er1 >conftest.err
29990 rm -f conftest.er1
29991 cat conftest.err >&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029993 (exit $ac_status); } &&
29994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29995 { (case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29998esac
29999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_try") 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest.$ac_objext'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007 *) ac_try_echo=$ac_try;;
30008esac
30009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030014 ac_header_compiler=yes
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
Reid Spencera773bd52006-08-04 18:18:08 +000030019 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030020fi
Reid Spencera773bd52006-08-04 18:18:08 +000030021
30022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030025
30026# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030027{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030029cat >conftest.$ac_ext <<_ACEOF
30030/* confdefs.h. */
30031_ACEOF
30032cat confdefs.h >>conftest.$ac_ext
30033cat >>conftest.$ac_ext <<_ACEOF
30034/* end confdefs.h. */
30035#include <$ac_header>
30036_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030037if { (ac_try="$ac_cpp conftest.$ac_ext"
30038case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030044 ac_status=$?
30045 grep -v '^ *+' conftest.er1 >conftest.err
30046 rm -f conftest.er1
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030049 (exit $ac_status); } >/dev/null; then
30050 if test -s conftest.err; then
30051 ac_cpp_err=$ac_c_preproc_warn_flag
30052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30053 else
30054 ac_cpp_err=
30055 fi
30056else
30057 ac_cpp_err=yes
30058fi
30059if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030060 ac_header_preproc=yes
30061else
30062 echo "$as_me: failed program was:" >&5
30063sed 's/^/| /' conftest.$ac_ext >&5
30064
30065 ac_header_preproc=no
30066fi
Reid Spencera773bd52006-08-04 18:18:08 +000030067
Reid Spencer59473af2004-12-25 07:31:29 +000030068rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30070echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030071
30072# So? What about this header?
30073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30074 yes:no: )
30075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30079 ac_header_preproc=yes
30080 ;;
30081 no:yes:* )
30082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030094 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030095## ----------------------------------- ##
30096## Report this to llvmbugs@cs.uiuc.edu ##
30097## ----------------------------------- ##
30098_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030099 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030100 ;;
30101esac
Reid Spencera773bd52006-08-04 18:18:08 +000030102{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030105 echo $ECHO_N "(cached) $ECHO_C" >&6
30106else
30107 eval "$as_ac_Header=\$ac_header_preproc"
30108fi
Reid Spencera773bd52006-08-04 18:18:08 +000030109ac_res=`eval echo '${'$as_ac_Header'}'`
30110 { echo "$as_me:$LINENO: result: $ac_res" >&5
30111echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030112
30113fi
30114if test `eval echo '${'$as_ac_Header'}'` = yes; then
30115 cat >>confdefs.h <<_ACEOF
30116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30117_ACEOF
30118
30119fi
30120
30121done
30122
30123
Douglas Gregor071d73d2009-05-18 17:21:34 +000030124
30125for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030126do
30127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30133fi
30134ac_res=`eval echo '${'$as_ac_Header'}'`
30135 { echo "$as_me:$LINENO: result: $ac_res" >&5
30136echo "${ECHO_T}$ac_res" >&6; }
30137else
30138 # Is the header compilable?
30139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30141cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
30147$ac_includes_default
30148#include <$ac_header>
30149_ACEOF
30150rm -f conftest.$ac_objext
30151if { (ac_try="$ac_compile"
30152case "(($ac_try" in
30153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154 *) ac_try_echo=$ac_try;;
30155esac
30156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157 (eval "$ac_compile") 2>conftest.er1
30158 ac_status=$?
30159 grep -v '^ *+' conftest.er1 >conftest.err
30160 rm -f conftest.er1
30161 cat conftest.err >&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030163 (exit $ac_status); } &&
30164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30165 { (case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30168esac
30169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_try") 2>&5
30171 ac_status=$?
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; } &&
30174 { ac_try='test -s conftest.$ac_objext'
30175 { (case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30178esac
30179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_try") 2>&5
30181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030184 ac_header_compiler=yes
30185else
30186 echo "$as_me: failed program was:" >&5
30187sed 's/^/| /' conftest.$ac_ext >&5
30188
30189 ac_header_compiler=no
30190fi
30191
30192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30194echo "${ECHO_T}$ac_header_compiler" >&6; }
30195
30196# Is the header present?
30197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30199cat >conftest.$ac_ext <<_ACEOF
30200/* confdefs.h. */
30201_ACEOF
30202cat confdefs.h >>conftest.$ac_ext
30203cat >>conftest.$ac_ext <<_ACEOF
30204/* end confdefs.h. */
30205#include <$ac_header>
30206_ACEOF
30207if { (ac_try="$ac_cpp conftest.$ac_ext"
30208case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30214 ac_status=$?
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030219 (exit $ac_status); } >/dev/null; then
30220 if test -s conftest.err; then
30221 ac_cpp_err=$ac_c_preproc_warn_flag
30222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30223 else
30224 ac_cpp_err=
30225 fi
30226else
30227 ac_cpp_err=yes
30228fi
30229if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030230 ac_header_preproc=yes
30231else
30232 echo "$as_me: failed program was:" >&5
30233sed 's/^/| /' conftest.$ac_ext >&5
30234
30235 ac_header_preproc=no
30236fi
30237
30238rm -f conftest.err conftest.$ac_ext
30239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30240echo "${ECHO_T}$ac_header_preproc" >&6; }
30241
30242# So? What about this header?
30243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30244 yes:no: )
30245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30249 ac_header_preproc=yes
30250 ;;
30251 no:yes:* )
30252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30264 ( cat <<\_ASBOX
30265## ----------------------------------- ##
30266## Report this to llvmbugs@cs.uiuc.edu ##
30267## ----------------------------------- ##
30268_ASBOX
30269 ) | sed "s/^/$as_me: WARNING: /" >&2
30270 ;;
30271esac
30272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30276else
30277 eval "$as_ac_Header=\$ac_header_preproc"
30278fi
30279ac_res=`eval echo '${'$as_ac_Header'}'`
30280 { echo "$as_me:$LINENO: result: $ac_res" >&5
30281echo "${ECHO_T}$ac_res" >&6; }
30282
30283fi
30284if test `eval echo '${'$as_ac_Header'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30287_ACEOF
30288
30289fi
30290
30291done
Reid Spencer59473af2004-12-25 07:31:29 +000030292
30293
30294
30295
Reid Spencerbe3e4192007-08-17 05:45:26 +000030296
30297for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298do
30299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030304 echo $ECHO_N "(cached) $ECHO_C" >&6
30305fi
Reid Spencera773bd52006-08-04 18:18:08 +000030306ac_res=`eval echo '${'$as_ac_Header'}'`
30307 { echo "$as_me:$LINENO: result: $ac_res" >&5
30308echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030309else
30310 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030311{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030313cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030320#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030321_ACEOF
30322rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030323if { (ac_try="$ac_compile"
30324case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030331 grep -v '^ *+' conftest.er1 >conftest.err
30332 rm -f conftest.er1
30333 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030335 (exit $ac_status); } &&
30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30340esac
30341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30343 ac_status=$?
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30350esac
30351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030356 ac_header_compiler=yes
30357else
30358 echo "$as_me: failed program was:" >&5
30359sed 's/^/| /' conftest.$ac_ext >&5
30360
Reid Spencera773bd52006-08-04 18:18:08 +000030361 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030362fi
Reid Spencera773bd52006-08-04 18:18:08 +000030363
30364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30365{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30366echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030367
30368# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030369{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030371cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030372/* confdefs.h. */
30373_ACEOF
30374cat confdefs.h >>conftest.$ac_ext
30375cat >>conftest.$ac_ext <<_ACEOF
30376/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030377#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030378_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030379if { (ac_try="$ac_cpp conftest.$ac_ext"
30380case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030386 ac_status=$?
30387 grep -v '^ *+' conftest.er1 >conftest.err
30388 rm -f conftest.er1
30389 cat conftest.err >&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030391 (exit $ac_status); } >/dev/null; then
30392 if test -s conftest.err; then
30393 ac_cpp_err=$ac_c_preproc_warn_flag
30394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30395 else
30396 ac_cpp_err=
30397 fi
30398else
30399 ac_cpp_err=yes
30400fi
30401if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030402 ac_header_preproc=yes
30403else
30404 echo "$as_me: failed program was:" >&5
30405sed 's/^/| /' conftest.$ac_ext >&5
30406
30407 ac_header_preproc=no
30408fi
Reid Spencera773bd52006-08-04 18:18:08 +000030409
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030410rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030411{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030413
30414# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030421 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030422 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030423 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030436 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030437## ----------------------------------- ##
30438## Report this to llvmbugs@cs.uiuc.edu ##
30439## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030440_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030441 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030442 ;;
30443esac
Reid Spencera773bd52006-08-04 18:18:08 +000030444{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030447 echo $ECHO_N "(cached) $ECHO_C" >&6
30448else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030450fi
Reid Spencera773bd52006-08-04 18:18:08 +000030451ac_res=`eval echo '${'$as_ac_Header'}'`
30452 { echo "$as_me:$LINENO: result: $ac_res" >&5
30453echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030454
30455fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030456if test `eval echo '${'$as_ac_Header'}'` = yes; then
30457 cat >>confdefs.h <<_ACEOF
30458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030459_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030460
30461fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030462
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030463done
30464
John Criswell7ed43ad2004-07-19 16:12:29 +000030465
Reid Spencercdb08a32006-06-05 16:11:07 +000030466
Reid Spencera6d990a2006-09-14 06:17:21 +000030467
Douglas Gregor01746742009-05-11 18:05:52 +000030468
30469for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030470do
30471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030476 echo $ECHO_N "(cached) $ECHO_C" >&6
30477fi
Reid Spencera773bd52006-08-04 18:18:08 +000030478ac_res=`eval echo '${'$as_ac_Header'}'`
30479 { echo "$as_me:$LINENO: result: $ac_res" >&5
30480echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030481else
30482 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030485cat >conftest.$ac_ext <<_ACEOF
30486/* confdefs.h. */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h. */
30491$ac_includes_default
30492#include <$ac_header>
30493_ACEOF
30494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030495if { (ac_try="$ac_compile"
30496case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30499esac
30500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030502 ac_status=$?
30503 grep -v '^ *+' conftest.er1 >conftest.err
30504 rm -f conftest.er1
30505 cat conftest.err >&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030507 (exit $ac_status); } &&
30508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30509 { (case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_try") 2>&5
30515 ac_status=$?
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest.$ac_objext'
30519 { (case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30522esac
30523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_try") 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030528 ac_header_compiler=yes
30529else
30530 echo "$as_me: failed program was:" >&5
30531sed 's/^/| /' conftest.$ac_ext >&5
30532
Reid Spencera773bd52006-08-04 18:18:08 +000030533 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030534fi
Reid Spencera773bd52006-08-04 18:18:08 +000030535
30536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30538echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030539
30540# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030541{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030543cat >conftest.$ac_ext <<_ACEOF
30544/* confdefs.h. */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h. */
30549#include <$ac_header>
30550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030551if { (ac_try="$ac_cpp conftest.$ac_ext"
30552case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30555esac
30556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030558 ac_status=$?
30559 grep -v '^ *+' conftest.er1 >conftest.err
30560 rm -f conftest.er1
30561 cat conftest.err >&5
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030563 (exit $ac_status); } >/dev/null; then
30564 if test -s conftest.err; then
30565 ac_cpp_err=$ac_c_preproc_warn_flag
30566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30567 else
30568 ac_cpp_err=
30569 fi
30570else
30571 ac_cpp_err=yes
30572fi
30573if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030574 ac_header_preproc=yes
30575else
30576 echo "$as_me: failed program was:" >&5
30577sed 's/^/| /' conftest.$ac_ext >&5
30578
30579 ac_header_preproc=no
30580fi
Reid Spencera773bd52006-08-04 18:18:08 +000030581
Chris Lattner0b142592005-11-14 06:57:34 +000030582rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030583{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30584echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030585
30586# So? What about this header?
30587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30588 yes:no: )
30589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30593 ac_header_preproc=yes
30594 ;;
30595 no:yes:* )
30596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030608 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030609## ----------------------------------- ##
30610## Report this to llvmbugs@cs.uiuc.edu ##
30611## ----------------------------------- ##
30612_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030613 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030614 ;;
30615esac
Reid Spencera773bd52006-08-04 18:18:08 +000030616{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030619 echo $ECHO_N "(cached) $ECHO_C" >&6
30620else
30621 eval "$as_ac_Header=\$ac_header_preproc"
30622fi
Reid Spencera773bd52006-08-04 18:18:08 +000030623ac_res=`eval echo '${'$as_ac_Header'}'`
30624 { echo "$as_me:$LINENO: result: $ac_res" >&5
30625echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030626
30627fi
30628if test `eval echo '${'$as_ac_Header'}'` = yes; then
30629 cat >>confdefs.h <<_ACEOF
30630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30631_ACEOF
30632
30633fi
30634
30635done
30636
Reid Spencer0a262ba2005-08-24 10:07:20 +000030637if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030638
30639for ac_header in pthread.h
30640do
30641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030646 echo $ECHO_N "(cached) $ECHO_C" >&6
30647fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030648ac_res=`eval echo '${'$as_ac_Header'}'`
30649 { echo "$as_me:$LINENO: result: $ac_res" >&5
30650echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030651else
30652 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030655cat >conftest.$ac_ext <<_ACEOF
30656/* confdefs.h. */
30657_ACEOF
30658cat confdefs.h >>conftest.$ac_ext
30659cat >>conftest.$ac_ext <<_ACEOF
30660/* end confdefs.h. */
30661$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030662#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030663_ACEOF
30664rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030665if { (ac_try="$ac_compile"
30666case "(($ac_try" in
30667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668 *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030672 ac_status=$?
30673 grep -v '^ *+' conftest.er1 >conftest.err
30674 rm -f conftest.er1
30675 cat conftest.err >&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030677 (exit $ac_status); } &&
30678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30679 { (case "(($ac_try" in
30680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30682esac
30683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_try") 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; } &&
30688 { ac_try='test -s conftest.$ac_objext'
30689 { (case "(($ac_try" in
30690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30691 *) ac_try_echo=$ac_try;;
30692esac
30693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694 (eval "$ac_try") 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030698 ac_header_compiler=yes
30699else
30700 echo "$as_me: failed program was:" >&5
30701sed 's/^/| /' conftest.$ac_ext >&5
30702
Reid Spencera773bd52006-08-04 18:18:08 +000030703 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030704fi
Reid Spencera773bd52006-08-04 18:18:08 +000030705
30706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30708echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030709
30710# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030711{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030713cat >conftest.$ac_ext <<_ACEOF
30714/* confdefs.h. */
30715_ACEOF
30716cat confdefs.h >>conftest.$ac_ext
30717cat >>conftest.$ac_ext <<_ACEOF
30718/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030719#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030720_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030721if { (ac_try="$ac_cpp conftest.$ac_ext"
30722case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30725esac
30726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030728 ac_status=$?
30729 grep -v '^ *+' conftest.er1 >conftest.err
30730 rm -f conftest.er1
30731 cat conftest.err >&5
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030733 (exit $ac_status); } >/dev/null; then
30734 if test -s conftest.err; then
30735 ac_cpp_err=$ac_c_preproc_warn_flag
30736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30737 else
30738 ac_cpp_err=
30739 fi
30740else
30741 ac_cpp_err=yes
30742fi
30743if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030744 ac_header_preproc=yes
30745else
30746 echo "$as_me: failed program was:" >&5
30747sed 's/^/| /' conftest.$ac_ext >&5
30748
30749 ac_header_preproc=no
30750fi
Reid Spencera773bd52006-08-04 18:18:08 +000030751
Reid Spencer0a262ba2005-08-24 10:07:20 +000030752rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30754echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030755
30756# So? What about this header?
30757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30758 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030763 ac_header_preproc=yes
30764 ;;
30765 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030778 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030779## ----------------------------------- ##
30780## Report this to llvmbugs@cs.uiuc.edu ##
30781## ----------------------------------- ##
30782_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030783 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030784 ;;
30785esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030786{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030791 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030792fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030793ac_res=`eval echo '${'$as_ac_Header'}'`
30794 { echo "$as_me:$LINENO: result: $ac_res" >&5
30795echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030796
30797fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030798if test `eval echo '${'$as_ac_Header'}'` = yes; then
30799 cat >>confdefs.h <<_ACEOF
30800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30801_ACEOF
30802 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030803
30804else
30805 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030806
30807fi
30808
Reid Spencerbe3e4192007-08-17 05:45:26 +000030809done
Reid Spencer1000b732006-12-01 00:37:14 +000030810
30811else
30812 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030813
30814fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030815
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030816if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030817
30818
30819for ac_header in ffi.h ffi/ffi.h
30820do
30821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827fi
30828ac_res=`eval echo '${'$as_ac_Header'}'`
30829 { echo "$as_me:$LINENO: result: $ac_res" >&5
30830echo "${ECHO_T}$ac_res" >&6; }
30831else
30832 # Is the header compilable?
30833{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30835cat >conftest.$ac_ext <<_ACEOF
30836/* confdefs.h. */
30837_ACEOF
30838cat confdefs.h >>conftest.$ac_ext
30839cat >>conftest.$ac_ext <<_ACEOF
30840/* end confdefs.h. */
30841$ac_includes_default
30842#include <$ac_header>
30843_ACEOF
30844rm -f conftest.$ac_objext
30845if { (ac_try="$ac_compile"
30846case "(($ac_try" in
30847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848 *) ac_try_echo=$ac_try;;
30849esac
30850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851 (eval "$ac_compile") 2>conftest.er1
30852 ac_status=$?
30853 grep -v '^ *+' conftest.er1 >conftest.err
30854 rm -f conftest.er1
30855 cat conftest.err >&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030857 (exit $ac_status); } &&
30858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30859 { (case "(($ac_try" in
30860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861 *) ac_try_echo=$ac_try;;
30862esac
30863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864 (eval "$ac_try") 2>&5
30865 ac_status=$?
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; } &&
30868 { ac_try='test -s conftest.$ac_objext'
30869 { (case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_try") 2>&5
30875 ac_status=$?
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030878 ac_header_compiler=yes
30879else
30880 echo "$as_me: failed program was:" >&5
30881sed 's/^/| /' conftest.$ac_ext >&5
30882
30883 ac_header_compiler=no
30884fi
30885
30886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30888echo "${ECHO_T}$ac_header_compiler" >&6; }
30889
30890# Is the header present?
30891{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30893cat >conftest.$ac_ext <<_ACEOF
30894/* confdefs.h. */
30895_ACEOF
30896cat confdefs.h >>conftest.$ac_ext
30897cat >>conftest.$ac_ext <<_ACEOF
30898/* end confdefs.h. */
30899#include <$ac_header>
30900_ACEOF
30901if { (ac_try="$ac_cpp conftest.$ac_ext"
30902case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30905esac
30906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30908 ac_status=$?
30909 grep -v '^ *+' conftest.er1 >conftest.err
30910 rm -f conftest.er1
30911 cat conftest.err >&5
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030913 (exit $ac_status); } >/dev/null; then
30914 if test -s conftest.err; then
30915 ac_cpp_err=$ac_c_preproc_warn_flag
30916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30917 else
30918 ac_cpp_err=
30919 fi
30920else
30921 ac_cpp_err=yes
30922fi
30923if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030924 ac_header_preproc=yes
30925else
30926 echo "$as_me: failed program was:" >&5
30927sed 's/^/| /' conftest.$ac_ext >&5
30928
30929 ac_header_preproc=no
30930fi
30931
30932rm -f conftest.err conftest.$ac_ext
30933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30934echo "${ECHO_T}$ac_header_preproc" >&6; }
30935
30936# So? What about this header?
30937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30938 yes:no: )
30939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30943 ac_header_preproc=yes
30944 ;;
30945 no:yes:* )
30946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30958 ( cat <<\_ASBOX
30959## ----------------------------------- ##
30960## Report this to llvmbugs@cs.uiuc.edu ##
30961## ----------------------------------- ##
30962_ASBOX
30963 ) | sed "s/^/$as_me: WARNING: /" >&2
30964 ;;
30965esac
30966{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30969 echo $ECHO_N "(cached) $ECHO_C" >&6
30970else
30971 eval "$as_ac_Header=\$ac_header_preproc"
30972fi
30973ac_res=`eval echo '${'$as_ac_Header'}'`
30974 { echo "$as_me:$LINENO: result: $ac_res" >&5
30975echo "${ECHO_T}$ac_res" >&6; }
30976
30977fi
30978if test `eval echo '${'$as_ac_Header'}'` = yes; then
30979 cat >>confdefs.h <<_ACEOF
30980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30981_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030982
30983fi
30984
30985done
30986
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030987fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030988
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030989
Reid Spencer8085cff2005-01-16 02:58:39 +000030990
Reid Spencerb2ed05262006-11-03 18:04:08 +000030991 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30992echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30993if test "${ac_cv_huge_val_sanity+set}" = set; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30995else
30996
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030997 ac_ext=cpp
30998ac_cpp='$CXXCPP $CPPFLAGS'
30999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031002
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031003 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031004 if test "$cross_compiling" = yes; then
31005 ac_cv_huge_val_sanity=yes
31006else
31007 cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h. */
31013#include <math.h>
31014int
31015main ()
31016{
31017double x = HUGE_VAL; return x != x;
31018 ;
31019 return 0;
31020}
31021_ACEOF
31022rm -f conftest$ac_exeext
31023if { (ac_try="$ac_link"
31024case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31027esac
31028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_link") 2>&5
31030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31033 { (case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31036esac
31037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_try") 2>&5
31039 ac_status=$?
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; }; then
31042 ac_cv_huge_val_sanity=yes
31043else
31044 echo "$as_me: program exited with status $ac_status" >&5
31045echo "$as_me: failed program was:" >&5
31046sed 's/^/| /' conftest.$ac_ext >&5
31047
31048( exit $ac_status )
31049ac_cv_huge_val_sanity=no
31050fi
31051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31052fi
31053
31054
31055 ac_ext=c
31056ac_cpp='$CPP $CPPFLAGS'
31057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31059ac_compiler_gnu=$ac_cv_c_compiler_gnu
31060
31061
31062fi
31063{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31064echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31066
31067
Reid Spencera773bd52006-08-04 18:18:08 +000031068{ echo "$as_me:$LINENO: checking for pid_t" >&5
31069echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031070if test "${ac_cv_type_pid_t+set}" = set; then
31071 echo $ECHO_N "(cached) $ECHO_C" >&6
31072else
31073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031079$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031080typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031081int
31082main ()
31083{
Reid Spencera773bd52006-08-04 18:18:08 +000031084if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031085 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031086if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031087 return 0;
31088 ;
31089 return 0;
31090}
31091_ACEOF
31092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031093if { (ac_try="$ac_compile"
31094case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031101 grep -v '^ *+' conftest.er1 >conftest.err
31102 rm -f conftest.er1
31103 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031105 (exit $ac_status); } &&
31106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107 { (case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31110esac
31111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31123 ac_status=$?
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031126 ac_cv_type_pid_t=yes
31127else
31128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031129sed 's/^/| /' conftest.$ac_ext >&5
31130
Reid Spencera773bd52006-08-04 18:18:08 +000031131 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031132fi
Reid Spencera773bd52006-08-04 18:18:08 +000031133
31134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031135fi
Reid Spencera773bd52006-08-04 18:18:08 +000031136{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31137echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031138if test $ac_cv_type_pid_t = yes; then
31139 :
31140else
31141
31142cat >>confdefs.h <<_ACEOF
31143#define pid_t int
31144_ACEOF
31145
31146fi
31147
Reid Spencera773bd52006-08-04 18:18:08 +000031148{ echo "$as_me:$LINENO: checking for size_t" >&5
31149echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031150if test "${ac_cv_type_size_t+set}" = set; then
31151 echo $ECHO_N "(cached) $ECHO_C" >&6
31152else
31153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031154/* confdefs.h. */
31155_ACEOF
31156cat confdefs.h >>conftest.$ac_ext
31157cat >>conftest.$ac_ext <<_ACEOF
31158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031159$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031160typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031161int
31162main ()
31163{
Reid Spencera773bd52006-08-04 18:18:08 +000031164if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031165 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031166if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031167 return 0;
31168 ;
31169 return 0;
31170}
31171_ACEOF
31172rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031173if { (ac_try="$ac_compile"
31174case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031181 grep -v '^ *+' conftest.er1 >conftest.err
31182 rm -f conftest.er1
31183 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31190esac
31191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest.$ac_objext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31200esac
31201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031206 ac_cv_type_size_t=yes
31207else
31208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031209sed 's/^/| /' conftest.$ac_ext >&5
31210
Reid Spencera773bd52006-08-04 18:18:08 +000031211 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031212fi
Reid Spencera773bd52006-08-04 18:18:08 +000031213
31214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031215fi
Reid Spencera773bd52006-08-04 18:18:08 +000031216{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31217echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031218if test $ac_cv_type_size_t = yes; then
31219 :
31220else
31221
31222cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031223#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031224_ACEOF
31225
31226fi
31227
Reid Spencera773bd52006-08-04 18:18:08 +000031228{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31229echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031230if test "${ac_cv_type_signal+set}" = set; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31232else
31233 cat >conftest.$ac_ext <<_ACEOF
31234/* confdefs.h. */
31235_ACEOF
31236cat confdefs.h >>conftest.$ac_ext
31237cat >>conftest.$ac_ext <<_ACEOF
31238/* end confdefs.h. */
31239#include <sys/types.h>
31240#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031241
31242int
31243main ()
31244{
Reid Spencera773bd52006-08-04 18:18:08 +000031245return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031246 ;
31247 return 0;
31248}
31249_ACEOF
31250rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031251if { (ac_try="$ac_compile"
31252case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31255esac
31256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031258 ac_status=$?
31259 grep -v '^ *+' conftest.er1 >conftest.err
31260 rm -f conftest.er1
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265 { (case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31268esac
31269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_try") 2>&5
31271 ac_status=$?
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest.$ac_objext'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31278esac
31279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031284 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031285else
31286 echo "$as_me: failed program was:" >&5
31287sed 's/^/| /' conftest.$ac_ext >&5
31288
Reid Spencera773bd52006-08-04 18:18:08 +000031289 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290fi
Reid Spencera773bd52006-08-04 18:18:08 +000031291
31292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031293fi
Reid Spencera773bd52006-08-04 18:18:08 +000031294{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31295echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031296
31297cat >>confdefs.h <<_ACEOF
31298#define RETSIGTYPE $ac_cv_type_signal
31299_ACEOF
31300
31301
Reid Spencera773bd52006-08-04 18:18:08 +000031302{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31303echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031304if test "${ac_cv_struct_tm+set}" = set; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31306else
31307 cat >conftest.$ac_ext <<_ACEOF
31308/* confdefs.h. */
31309_ACEOF
31310cat confdefs.h >>conftest.$ac_ext
31311cat >>conftest.$ac_ext <<_ACEOF
31312/* end confdefs.h. */
31313#include <sys/types.h>
31314#include <time.h>
31315
31316int
31317main ()
31318{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031319struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320 ;
31321 return 0;
31322}
31323_ACEOF
31324rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031325if { (ac_try="$ac_compile"
31326case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31329esac
31330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031332 ac_status=$?
31333 grep -v '^ *+' conftest.er1 >conftest.err
31334 rm -f conftest.er1
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031337 (exit $ac_status); } &&
31338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339 { (case "(($ac_try" in
31340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341 *) ac_try_echo=$ac_try;;
31342esac
31343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_try") 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try='test -s conftest.$ac_objext'
31349 { (case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31352esac
31353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_try") 2>&5
31355 ac_status=$?
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031358 ac_cv_struct_tm=time.h
31359else
31360 echo "$as_me: failed program was:" >&5
31361sed 's/^/| /' conftest.$ac_ext >&5
31362
Reid Spencera773bd52006-08-04 18:18:08 +000031363 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031364fi
Reid Spencera773bd52006-08-04 18:18:08 +000031365
31366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031367fi
Reid Spencera773bd52006-08-04 18:18:08 +000031368{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31369echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031370if test $ac_cv_struct_tm = sys/time.h; then
31371
31372cat >>confdefs.h <<\_ACEOF
31373#define TM_IN_SYS_TIME 1
31374_ACEOF
31375
31376fi
31377
Reid Spencera773bd52006-08-04 18:18:08 +000031378{ echo "$as_me:$LINENO: checking for int64_t" >&5
31379echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031380if test "${ac_cv_type_int64_t+set}" = set; then
31381 echo $ECHO_N "(cached) $ECHO_C" >&6
31382else
31383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031384/* confdefs.h. */
31385_ACEOF
31386cat confdefs.h >>conftest.$ac_ext
31387cat >>conftest.$ac_ext <<_ACEOF
31388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031389$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031390typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031391int
31392main ()
31393{
Reid Spencera773bd52006-08-04 18:18:08 +000031394if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031395 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031396if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031397 return 0;
31398 ;
31399 return 0;
31400}
31401_ACEOF
31402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031403if { (ac_try="$ac_compile"
31404case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407esac
31408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031415 (exit $ac_status); } &&
31416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
31423 ac_status=$?
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31430esac
31431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031436 ac_cv_type_int64_t=yes
31437else
31438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031439sed 's/^/| /' conftest.$ac_ext >&5
31440
Reid Spencera773bd52006-08-04 18:18:08 +000031441 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031442fi
Reid Spencera773bd52006-08-04 18:18:08 +000031443
31444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031445fi
Reid Spencera773bd52006-08-04 18:18:08 +000031446{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31447echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031448if test $ac_cv_type_int64_t = yes; then
31449
31450cat >>confdefs.h <<_ACEOF
31451#define HAVE_INT64_T 1
31452_ACEOF
31453
31454
31455else
31456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31457echo "$as_me: error: Type int64_t required but not found" >&2;}
31458 { (exit 1); exit 1; }; }
31459fi
31460
Reid Spencera773bd52006-08-04 18:18:08 +000031461{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31462echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031463if test "${ac_cv_type_uint64_t+set}" = set; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465else
31466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031467/* confdefs.h. */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031472$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031473typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031474int
31475main ()
31476{
Reid Spencera773bd52006-08-04 18:18:08 +000031477if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031478 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031479if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031480 return 0;
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031486if { (ac_try="$ac_compile"
31487case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031494 grep -v '^ *+' conftest.er1 >conftest.err
31495 rm -f conftest.er1
31496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest.$ac_objext'
31510 { (case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31513esac
31514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031519 ac_cv_type_uint64_t=yes
31520else
31521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031522sed 's/^/| /' conftest.$ac_ext >&5
31523
Reid Spencera773bd52006-08-04 18:18:08 +000031524 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031525fi
Reid Spencera773bd52006-08-04 18:18:08 +000031526
31527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031528fi
Reid Spencera773bd52006-08-04 18:18:08 +000031529{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31530echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031531if test $ac_cv_type_uint64_t = yes; then
31532
31533cat >>confdefs.h <<_ACEOF
31534#define HAVE_UINT64_T 1
31535_ACEOF
31536
31537
31538else
Reid Spencera773bd52006-08-04 18:18:08 +000031539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31540echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031541if test "${ac_cv_type_u_int64_t+set}" = set; then
31542 echo $ECHO_N "(cached) $ECHO_C" >&6
31543else
31544 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031545/* confdefs.h. */
31546_ACEOF
31547cat confdefs.h >>conftest.$ac_ext
31548cat >>conftest.$ac_ext <<_ACEOF
31549/* end confdefs.h. */
31550$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031551typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031552int
31553main ()
31554{
Reid Spencera773bd52006-08-04 18:18:08 +000031555if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031556 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031557if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031558 return 0;
31559 ;
31560 return 0;
31561}
31562_ACEOF
31563rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031564if { (ac_try="$ac_compile"
31565case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31568esac
31569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031572 grep -v '^ *+' conftest.er1 >conftest.err
31573 rm -f conftest.er1
31574 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031576 (exit $ac_status); } &&
31577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31581esac
31582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest.$ac_objext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31591esac
31592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31594 ac_status=$?
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031597 ac_cv_type_u_int64_t=yes
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
Reid Spencera773bd52006-08-04 18:18:08 +000031602 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031603fi
Reid Spencera773bd52006-08-04 18:18:08 +000031604
31605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031606fi
Reid Spencera773bd52006-08-04 18:18:08 +000031607{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31608echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031609if test $ac_cv_type_u_int64_t = yes; then
31610
31611cat >>confdefs.h <<_ACEOF
31612#define HAVE_U_INT64_T 1
31613_ACEOF
31614
31615
Misha Brukmanceca9042004-09-02 23:02:30 +000031616else
31617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31618echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31619 { (exit 1); exit 1; }; }
31620fi
31621
John Criswell679ff312004-09-02 18:44:44 +000031622fi
31623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031624
31625
31626
31627
31628
31629
31630
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031631
31632
Reid Spencerdf3be822006-01-23 08:15:53 +000031633for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031634do
31635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031639 echo $ECHO_N "(cached) $ECHO_C" >&6
31640else
31641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031642/* confdefs.h. */
31643_ACEOF
31644cat confdefs.h >>conftest.$ac_ext
31645cat >>conftest.$ac_ext <<_ACEOF
31646/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31649#define $ac_func innocuous_$ac_func
31650
31651/* System header to define __stub macros and hopefully few prototypes,
31652 which can conflict with char $ac_func (); below.
31653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31654 <limits.h> exists even on freestanding compilers. */
31655
31656#ifdef __STDC__
31657# include <limits.h>
31658#else
31659# include <assert.h>
31660#endif
31661
31662#undef $ac_func
31663
Reid Spencera773bd52006-08-04 18:18:08 +000031664/* Override any GCC internal prototype to avoid an error.
31665 Use char because int might match the return type of a GCC
31666 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031667#ifdef __cplusplus
31668extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031669#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031670char $ac_func ();
31671/* The GNU C library defines this for functions which it implements
31672 to always fail with ENOSYS. Some functions are actually named
31673 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031674#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676#endif
John Criswell7a73b802003-06-30 21:59:07 +000031677
John Criswell7a73b802003-06-30 21:59:07 +000031678int
31679main ()
31680{
Reid Spencera773bd52006-08-04 18:18:08 +000031681return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031682 ;
31683 return 0;
31684}
31685_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031687if { (ac_try="$ac_link"
31688case "(($ac_try" in
31689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690 *) ac_try_echo=$ac_try;;
31691esac
31692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031699 (exit $ac_status); } &&
31700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31701 { (case "(($ac_try" in
31702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703 *) ac_try_echo=$ac_try;;
31704esac
31705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706 (eval "$ac_try") 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest$ac_exeext'
31711 { (case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31714esac
31715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_try") 2>&5
31717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031720 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031721else
31722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031723sed 's/^/| /' conftest.$ac_ext >&5
31724
Reid Spencera773bd52006-08-04 18:18:08 +000031725 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031726fi
Reid Spencera773bd52006-08-04 18:18:08 +000031727
Bill Wendlingebcceee2009-04-18 11:20:33 +000031728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031729 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031730fi
Reid Spencera773bd52006-08-04 18:18:08 +000031731ac_res=`eval echo '${'$as_ac_var'}'`
31732 { echo "$as_me:$LINENO: result: $ac_res" >&5
31733echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031734if test `eval echo '${'$as_ac_var'}'` = yes; then
31735 cat >>confdefs.h <<_ACEOF
31736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031737_ACEOF
31738
31739fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031740done
John Criswell7a73b802003-06-30 21:59:07 +000031741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031742
31743
31744
Reid Spencer6af3d262004-12-15 04:01:48 +000031745
Reid Spencer96cf5872007-07-13 10:05:30 +000031746for ac_func in powf fmodf strtof round
31747do
31748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31753else
31754 cat >conftest.$ac_ext <<_ACEOF
31755/* confdefs.h. */
31756_ACEOF
31757cat confdefs.h >>conftest.$ac_ext
31758cat >>conftest.$ac_ext <<_ACEOF
31759/* end confdefs.h. */
31760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31762#define $ac_func innocuous_$ac_func
31763
31764/* System header to define __stub macros and hopefully few prototypes,
31765 which can conflict with char $ac_func (); below.
31766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31767 <limits.h> exists even on freestanding compilers. */
31768
31769#ifdef __STDC__
31770# include <limits.h>
31771#else
31772# include <assert.h>
31773#endif
31774
31775#undef $ac_func
31776
31777/* Override any GCC internal prototype to avoid an error.
31778 Use char because int might match the return type of a GCC
31779 builtin and then its argument prototype would still apply. */
31780#ifdef __cplusplus
31781extern "C"
31782#endif
31783char $ac_func ();
31784/* The GNU C library defines this for functions which it implements
31785 to always fail with ENOSYS. Some functions are actually named
31786 something starting with __ and the normal name is an alias. */
31787#if defined __stub_$ac_func || defined __stub___$ac_func
31788choke me
31789#endif
31790
31791int
31792main ()
31793{
31794return $ac_func ();
31795 ;
31796 return 0;
31797}
31798_ACEOF
31799rm -f conftest.$ac_objext conftest$ac_exeext
31800if { (ac_try="$ac_link"
31801case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_link") 2>conftest.er1
31807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031812 (exit $ac_status); } &&
31813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest$ac_exeext'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031833 eval "$as_ac_var=yes"
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838 eval "$as_ac_var=no"
31839fi
31840
Bill Wendlingebcceee2009-04-18 11:20:33 +000031841rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031842 conftest$ac_exeext conftest.$ac_ext
31843fi
31844ac_res=`eval echo '${'$as_ac_var'}'`
31845 { echo "$as_me:$LINENO: result: $ac_res" >&5
31846echo "${ECHO_T}$ac_res" >&6; }
31847if test `eval echo '${'$as_ac_var'}'` = yes; then
31848 cat >>confdefs.h <<_ACEOF
31849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31850_ACEOF
31851
31852fi
31853done
31854
31855
31856
31857
31858
Reid Spencer6af3d262004-12-15 04:01:48 +000031859
Reid Spencerb90645c2007-02-16 19:17:20 +000031860for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31861do
31862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31867else
31868 cat >conftest.$ac_ext <<_ACEOF
31869/* confdefs.h. */
31870_ACEOF
31871cat confdefs.h >>conftest.$ac_ext
31872cat >>conftest.$ac_ext <<_ACEOF
31873/* end confdefs.h. */
31874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31876#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031877
Reid Spencerb90645c2007-02-16 19:17:20 +000031878/* System header to define __stub macros and hopefully few prototypes,
31879 which can conflict with char $ac_func (); below.
31880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881 <limits.h> exists even on freestanding compilers. */
31882
31883#ifdef __STDC__
31884# include <limits.h>
31885#else
31886# include <assert.h>
31887#endif
31888
31889#undef $ac_func
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
31897char $ac_func ();
31898/* The GNU C library defines this for functions which it implements
31899 to always fail with ENOSYS. Some functions are actually named
31900 something starting with __ and the normal name is an alias. */
31901#if defined __stub_$ac_func || defined __stub___$ac_func
31902choke me
31903#endif
31904
31905int
31906main ()
31907{
31908return $ac_func ();
31909 ;
31910 return 0;
31911}
31912_ACEOF
31913rm -f conftest.$ac_objext conftest$ac_exeext
31914if { (ac_try="$ac_link"
31915case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31918esac
31919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_link") 2>conftest.er1
31921 ac_status=$?
31922 grep -v '^ *+' conftest.er1 >conftest.err
31923 rm -f conftest.er1
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928 { (case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31931esac
31932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_try") 2>&5
31934 ac_status=$?
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest$ac_exeext'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031947 eval "$as_ac_var=yes"
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 eval "$as_ac_var=no"
31953fi
31954
Bill Wendlingebcceee2009-04-18 11:20:33 +000031955rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031956 conftest$ac_exeext conftest.$ac_ext
31957fi
31958ac_res=`eval echo '${'$as_ac_var'}'`
31959 { echo "$as_me:$LINENO: result: $ac_res" >&5
31960echo "${ECHO_T}$ac_res" >&6; }
31961if test `eval echo '${'$as_ac_var'}'` = yes; then
31962 cat >>confdefs.h <<_ACEOF
31963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964_ACEOF
31965
31966fi
31967done
31968
31969
31970
31971
31972for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031973do
31974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031978 echo $ECHO_N "(cached) $ECHO_C" >&6
31979else
31980 cat >conftest.$ac_ext <<_ACEOF
31981/* confdefs.h. */
31982_ACEOF
31983cat confdefs.h >>conftest.$ac_ext
31984cat >>conftest.$ac_ext <<_ACEOF
31985/* end confdefs.h. */
31986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31988#define $ac_func innocuous_$ac_func
31989
31990/* System header to define __stub macros and hopefully few prototypes,
31991 which can conflict with char $ac_func (); below.
31992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31993 <limits.h> exists even on freestanding compilers. */
31994
31995#ifdef __STDC__
31996# include <limits.h>
31997#else
31998# include <assert.h>
31999#endif
32000
32001#undef $ac_func
32002
Reid Spencera773bd52006-08-04 18:18:08 +000032003/* Override any GCC internal prototype to avoid an error.
32004 Use char because int might match the return type of a GCC
32005 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032006#ifdef __cplusplus
32007extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032008#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032009char $ac_func ();
32010/* The GNU C library defines this for functions which it implements
32011 to always fail with ENOSYS. Some functions are actually named
32012 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032013#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032014choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032015#endif
32016
32017int
32018main ()
32019{
Reid Spencera773bd52006-08-04 18:18:08 +000032020return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032021 ;
32022 return 0;
32023}
32024_ACEOF
32025rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032026if { (ac_try="$ac_link"
32027case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32030esac
32031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032033 ac_status=$?
32034 grep -v '^ *+' conftest.er1 >conftest.err
32035 rm -f conftest.er1
32036 cat conftest.err >&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032038 (exit $ac_status); } &&
32039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32040 { (case "(($ac_try" in
32041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042 *) ac_try_echo=$ac_try;;
32043esac
32044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_try") 2>&5
32046 ac_status=$?
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; } &&
32049 { ac_try='test -s conftest$ac_exeext'
32050 { (case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053esac
32054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_try") 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032059 eval "$as_ac_var=yes"
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
Reid Spencera773bd52006-08-04 18:18:08 +000032064 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032065fi
Reid Spencera773bd52006-08-04 18:18:08 +000032066
Bill Wendlingebcceee2009-04-18 11:20:33 +000032067rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032068 conftest$ac_exeext conftest.$ac_ext
32069fi
Reid Spencera773bd52006-08-04 18:18:08 +000032070ac_res=`eval echo '${'$as_ac_var'}'`
32071 { echo "$as_me:$LINENO: result: $ac_res" >&5
32072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032073if test `eval echo '${'$as_ac_var'}'` = yes; then
32074 cat >>confdefs.h <<_ACEOF
32075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32076_ACEOF
32077
32078fi
32079done
32080
32081
32082
32083
32084
32085
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032086for ac_func in mktemp realpath sbrk setrlimit strdup
32087do
32088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32092 echo $ECHO_N "(cached) $ECHO_C" >&6
32093else
32094 cat >conftest.$ac_ext <<_ACEOF
32095/* confdefs.h. */
32096_ACEOF
32097cat confdefs.h >>conftest.$ac_ext
32098cat >>conftest.$ac_ext <<_ACEOF
32099/* end confdefs.h. */
32100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32102#define $ac_func innocuous_$ac_func
32103
32104/* System header to define __stub macros and hopefully few prototypes,
32105 which can conflict with char $ac_func (); below.
32106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107 <limits.h> exists even on freestanding compilers. */
32108
32109#ifdef __STDC__
32110# include <limits.h>
32111#else
32112# include <assert.h>
32113#endif
32114
32115#undef $ac_func
32116
32117/* Override any GCC internal prototype to avoid an error.
32118 Use char because int might match the return type of a GCC
32119 builtin and then its argument prototype would still apply. */
32120#ifdef __cplusplus
32121extern "C"
32122#endif
32123char $ac_func ();
32124/* The GNU C library defines this for functions which it implements
32125 to always fail with ENOSYS. Some functions are actually named
32126 something starting with __ and the normal name is an alias. */
32127#if defined __stub_$ac_func || defined __stub___$ac_func
32128choke me
32129#endif
32130
32131int
32132main ()
32133{
32134return $ac_func ();
32135 ;
32136 return 0;
32137}
32138_ACEOF
32139rm -f conftest.$ac_objext conftest$ac_exeext
32140if { (ac_try="$ac_link"
32141case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_link") 2>conftest.er1
32147 ac_status=$?
32148 grep -v '^ *+' conftest.er1 >conftest.err
32149 rm -f conftest.er1
32150 cat conftest.err >&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest$ac_exeext'
32164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 eval "$as_ac_var=yes"
32174else
32175 echo "$as_me: failed program was:" >&5
32176sed 's/^/| /' conftest.$ac_ext >&5
32177
32178 eval "$as_ac_var=no"
32179fi
32180
32181rm -f core conftest.err conftest.$ac_objext \
32182 conftest$ac_exeext conftest.$ac_ext
32183fi
32184ac_res=`eval echo '${'$as_ac_var'}'`
32185 { echo "$as_me:$LINENO: result: $ac_res" >&5
32186echo "${ECHO_T}$ac_res" >&6; }
32187if test `eval echo '${'$as_ac_var'}'` = yes; then
32188 cat >>confdefs.h <<_ACEOF
32189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32190_ACEOF
32191
32192fi
32193done
Reid Spencerdf3be822006-01-23 08:15:53 +000032194
32195
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032196
32197
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032198
32199for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032200do
32201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032202{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032205 echo $ECHO_N "(cached) $ECHO_C" >&6
32206else
32207 cat >conftest.$ac_ext <<_ACEOF
32208/* confdefs.h. */
32209_ACEOF
32210cat confdefs.h >>conftest.$ac_ext
32211cat >>conftest.$ac_ext <<_ACEOF
32212/* end confdefs.h. */
32213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32215#define $ac_func innocuous_$ac_func
32216
32217/* System header to define __stub macros and hopefully few prototypes,
32218 which can conflict with char $ac_func (); below.
32219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32220 <limits.h> exists even on freestanding compilers. */
32221
32222#ifdef __STDC__
32223# include <limits.h>
32224#else
32225# include <assert.h>
32226#endif
32227
32228#undef $ac_func
32229
Reid Spencera773bd52006-08-04 18:18:08 +000032230/* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032233#ifdef __cplusplus
32234extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032235#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032236char $ac_func ();
32237/* The GNU C library defines this for functions which it implements
32238 to always fail with ENOSYS. Some functions are actually named
32239 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032240#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032241choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032242#endif
32243
32244int
32245main ()
32246{
Reid Spencera773bd52006-08-04 18:18:08 +000032247return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032248 ;
32249 return 0;
32250}
32251_ACEOF
32252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032253if { (ac_try="$ac_link"
32254case "(($ac_try" in
32255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256 *) ac_try_echo=$ac_try;;
32257esac
32258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032260 ac_status=$?
32261 grep -v '^ *+' conftest.er1 >conftest.err
32262 rm -f conftest.er1
32263 cat conftest.err >&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032265 (exit $ac_status); } &&
32266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32267 { (case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32270esac
32271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_try") 2>&5
32273 ac_status=$?
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; } &&
32276 { ac_try='test -s conftest$ac_exeext'
32277 { (case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32280esac
32281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_try") 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032286 eval "$as_ac_var=yes"
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
Reid Spencera773bd52006-08-04 18:18:08 +000032291 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032292fi
Reid Spencera773bd52006-08-04 18:18:08 +000032293
Bill Wendlingebcceee2009-04-18 11:20:33 +000032294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032295 conftest$ac_exeext conftest.$ac_ext
32296fi
Reid Spencera773bd52006-08-04 18:18:08 +000032297ac_res=`eval echo '${'$as_ac_var'}'`
32298 { echo "$as_me:$LINENO: result: $ac_res" >&5
32299echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032300if test `eval echo '${'$as_ac_var'}'` = yes; then
32301 cat >>confdefs.h <<_ACEOF
32302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32303_ACEOF
32304
32305fi
32306done
32307
32308
Reid Spencerba46ca32004-12-31 05:49:15 +000032309
32310
Chris Lattner0b142592005-11-14 06:57:34 +000032311
Chris Lattner511f11d2005-11-14 07:25:50 +000032312for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032313do
32314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032315{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032318 echo $ECHO_N "(cached) $ECHO_C" >&6
32319else
32320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032321/* confdefs.h. */
32322_ACEOF
32323cat confdefs.h >>conftest.$ac_ext
32324cat >>conftest.$ac_ext <<_ACEOF
32325/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32328#define $ac_func innocuous_$ac_func
32329
32330/* System header to define __stub macros and hopefully few prototypes,
32331 which can conflict with char $ac_func (); below.
32332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32333 <limits.h> exists even on freestanding compilers. */
32334
32335#ifdef __STDC__
32336# include <limits.h>
32337#else
32338# include <assert.h>
32339#endif
32340
32341#undef $ac_func
32342
Reid Spencera773bd52006-08-04 18:18:08 +000032343/* Override any GCC internal prototype to avoid an error.
32344 Use char because int might match the return type of a GCC
32345 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032346#ifdef __cplusplus
32347extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032348#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032349char $ac_func ();
32350/* The GNU C library defines this for functions which it implements
32351 to always fail with ENOSYS. Some functions are actually named
32352 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032353#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032354choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032355#endif
John Criswell7a73b802003-06-30 21:59:07 +000032356
John Criswell7a73b802003-06-30 21:59:07 +000032357int
32358main ()
32359{
Reid Spencera773bd52006-08-04 18:18:08 +000032360return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032361 ;
32362 return 0;
32363}
32364_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032365rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032366if { (ac_try="$ac_link"
32367case "(($ac_try" in
32368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32370esac
32371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032374 grep -v '^ *+' conftest.er1 >conftest.err
32375 rm -f conftest.er1
32376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032378 (exit $ac_status); } &&
32379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32380 { (case "(($ac_try" in
32381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382 *) ac_try_echo=$ac_try;;
32383esac
32384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_try") 2>&5
32386 ac_status=$?
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; } &&
32389 { ac_try='test -s conftest$ac_exeext'
32390 { (case "(($ac_try" in
32391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32392 *) ac_try_echo=$ac_try;;
32393esac
32394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395 (eval "$ac_try") 2>&5
32396 ac_status=$?
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032399 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032400else
32401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032402sed 's/^/| /' conftest.$ac_ext >&5
32403
Reid Spencera773bd52006-08-04 18:18:08 +000032404 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032405fi
Reid Spencera773bd52006-08-04 18:18:08 +000032406
Bill Wendlingebcceee2009-04-18 11:20:33 +000032407rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032409fi
Reid Spencera773bd52006-08-04 18:18:08 +000032410ac_res=`eval echo '${'$as_ac_var'}'`
32411 { echo "$as_me:$LINENO: result: $ac_res" >&5
32412echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032413if test `eval echo '${'$as_ac_var'}'` = yes; then
32414 cat >>confdefs.h <<_ACEOF
32415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032416_ACEOF
32417
32418fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032419done
John Criswell7a73b802003-06-30 21:59:07 +000032420
Reid Spencercdb08a32006-06-05 16:11:07 +000032421
32422
32423
32424
Reid Spencerafa22e22006-12-10 23:29:19 +000032425for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032426do
32427as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032428{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432else
32433 cat >conftest.$ac_ext <<_ACEOF
32434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
32439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32441#define $ac_func innocuous_$ac_func
32442
32443/* System header to define __stub macros and hopefully few prototypes,
32444 which can conflict with char $ac_func (); below.
32445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32446 <limits.h> exists even on freestanding compilers. */
32447
32448#ifdef __STDC__
32449# include <limits.h>
32450#else
32451# include <assert.h>
32452#endif
32453
32454#undef $ac_func
32455
Reid Spencera773bd52006-08-04 18:18:08 +000032456/* Override any GCC internal prototype to avoid an error.
32457 Use char because int might match the return type of a GCC
32458 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032459#ifdef __cplusplus
32460extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032461#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032462char $ac_func ();
32463/* The GNU C library defines this for functions which it implements
32464 to always fail with ENOSYS. Some functions are actually named
32465 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032466#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032467choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032468#endif
32469
32470int
32471main ()
32472{
Reid Spencera773bd52006-08-04 18:18:08 +000032473return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032474 ;
32475 return 0;
32476}
32477_ACEOF
32478rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032479if { (ac_try="$ac_link"
32480case "(($ac_try" in
32481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482 *) ac_try_echo=$ac_try;;
32483esac
32484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032486 ac_status=$?
32487 grep -v '^ *+' conftest.er1 >conftest.err
32488 rm -f conftest.er1
32489 cat conftest.err >&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032491 (exit $ac_status); } &&
32492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32493 { (case "(($ac_try" in
32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32496esac
32497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32498 (eval "$ac_try") 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try='test -s conftest$ac_exeext'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32506esac
32507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508 (eval "$ac_try") 2>&5
32509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032512 eval "$as_ac_var=yes"
32513else
32514 echo "$as_me: failed program was:" >&5
32515sed 's/^/| /' conftest.$ac_ext >&5
32516
Reid Spencera773bd52006-08-04 18:18:08 +000032517 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032518fi
Reid Spencera773bd52006-08-04 18:18:08 +000032519
Bill Wendlingebcceee2009-04-18 11:20:33 +000032520rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032521 conftest$ac_exeext conftest.$ac_ext
32522fi
Reid Spencera773bd52006-08-04 18:18:08 +000032523ac_res=`eval echo '${'$as_ac_var'}'`
32524 { echo "$as_me:$LINENO: result: $ac_res" >&5
32525echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032526if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h <<_ACEOF
32528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529_ACEOF
32530
32531fi
32532done
32533
Reid Spencera773bd52006-08-04 18:18:08 +000032534{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32535echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032536if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032537 echo $ECHO_N "(cached) $ECHO_C" >&6
32538else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032539 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032540ac_cpp='$CPP $CPPFLAGS'
32541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32543ac_compiler_gnu=$ac_cv_c_compiler_gnu
32544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032545 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032546 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032547else
32548 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032549
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032550 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032551_ACEOF
32552cat confdefs.h >>conftest.$ac_ext
32553cat >>conftest.$ac_ext <<_ACEOF
32554/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032555
John Criswella0137d32003-10-13 16:22:01 +000032556#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032557#include <stdlib.h>
32558
John Criswella0137d32003-10-13 16:22:01 +000032559int
32560main ()
32561{
32562
Reid Spencer2706f8c2004-09-19 23:53:36 +000032563volatile double A, B;
32564char Buffer[100];
32565A = 1;
32566A /= 10.0;
32567sprintf(Buffer, "%a", A);
32568B = atof(Buffer);
32569if (A != B)
32570 return (1);
32571if (A != 0x1.999999999999ap-4)
32572 return (1);
32573return (0);
John Criswella0137d32003-10-13 16:22:01 +000032574 ;
32575 return 0;
32576}
32577_ACEOF
32578rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032579if { (ac_try="$ac_link"
32580case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583esac
32584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032589 { (case "(($ac_try" in
32590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591 *) ac_try_echo=$ac_try;;
32592esac
32593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032595 ac_status=$?
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032598 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032599else
32600 echo "$as_me: program exited with status $ac_status" >&5
32601echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
32604( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032605llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032606fi
Reid Spencera773bd52006-08-04 18:18:08 +000032607rm -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 +000032608fi
Reid Spencera773bd52006-08-04 18:18:08 +000032609
32610
Reid Spencer2706f8c2004-09-19 23:53:36 +000032611 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032612ac_cpp='$CPP $CPPFLAGS'
32613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32615ac_compiler_gnu=$ac_cv_c_compiler_gnu
32616
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032617fi
Reid Spencera773bd52006-08-04 18:18:08 +000032618{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32619echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032620 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032621
32622cat >>confdefs.h <<\_ACEOF
32623#define HAVE_PRINTF_A 1
32624_ACEOF
32625
Reid Spencer2706f8c2004-09-19 23:53:36 +000032626 fi
John Criswella0137d32003-10-13 16:22:01 +000032627
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032628# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32629# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032630{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32631echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032632if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032633 echo $ECHO_N "(cached) $ECHO_C" >&6
32634else
John Criswell0021c312004-02-13 21:57:29 +000032635 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032636/* confdefs.h. */
32637_ACEOF
32638cat confdefs.h >>conftest.$ac_ext
32639cat >>conftest.$ac_ext <<_ACEOF
32640/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032641#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032642int
32643main ()
32644{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032645char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032646 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032647 ;
32648 return 0;
32649}
32650_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032652if { (ac_try="$ac_link"
32653case "(($ac_try" in
32654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655 *) ac_try_echo=$ac_try;;
32656esac
32657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032660 grep -v '^ *+' conftest.er1 >conftest.err
32661 rm -f conftest.er1
32662 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032664 (exit $ac_status); } &&
32665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32666 { (case "(($ac_try" in
32667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668 *) ac_try_echo=$ac_try;;
32669esac
32670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671 (eval "$ac_try") 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try='test -s conftest$ac_exeext'
32676 { (case "(($ac_try" in
32677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32678 *) ac_try_echo=$ac_try;;
32679esac
32680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681 (eval "$ac_try") 2>&5
32682 ac_status=$?
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032685 ac_cv_working_alloca_h=yes
32686else
32687 echo "$as_me: failed program was:" >&5
32688sed 's/^/| /' conftest.$ac_ext >&5
32689
Reid Spencera773bd52006-08-04 18:18:08 +000032690 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032691fi
Reid Spencera773bd52006-08-04 18:18:08 +000032692
Bill Wendlingebcceee2009-04-18 11:20:33 +000032693rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032694 conftest$ac_exeext conftest.$ac_ext
32695fi
Reid Spencera773bd52006-08-04 18:18:08 +000032696{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32697echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032698if test $ac_cv_working_alloca_h = yes; then
32699
32700cat >>confdefs.h <<\_ACEOF
32701#define HAVE_ALLOCA_H 1
32702_ACEOF
32703
32704fi
32705
Reid Spencera773bd52006-08-04 18:18:08 +000032706{ echo "$as_me:$LINENO: checking for alloca" >&5
32707echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032708if test "${ac_cv_func_alloca_works+set}" = set; then
32709 echo $ECHO_N "(cached) $ECHO_C" >&6
32710else
32711 cat >conftest.$ac_ext <<_ACEOF
32712/* confdefs.h. */
32713_ACEOF
32714cat confdefs.h >>conftest.$ac_ext
32715cat >>conftest.$ac_ext <<_ACEOF
32716/* end confdefs.h. */
32717#ifdef __GNUC__
32718# define alloca __builtin_alloca
32719#else
32720# ifdef _MSC_VER
32721# include <malloc.h>
32722# define alloca _alloca
32723# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032724# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032725# include <alloca.h>
32726# else
32727# ifdef _AIX
32728 #pragma alloca
32729# else
32730# ifndef alloca /* predefined by HP cc +Olibcalls */
32731char *alloca ();
32732# endif
32733# endif
32734# endif
32735# endif
32736#endif
32737
32738int
32739main ()
32740{
32741char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032742 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032743 ;
32744 return 0;
32745}
32746_ACEOF
32747rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032748if { (ac_try="$ac_link"
32749case "(($ac_try" in
32750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751 *) ac_try_echo=$ac_try;;
32752esac
32753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032755 ac_status=$?
32756 grep -v '^ *+' conftest.er1 >conftest.err
32757 rm -f conftest.er1
32758 cat conftest.err >&5
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032760 (exit $ac_status); } &&
32761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32762 { (case "(($ac_try" in
32763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764 *) ac_try_echo=$ac_try;;
32765esac
32766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767 (eval "$ac_try") 2>&5
32768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest$ac_exeext'
32772 { (case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32775esac
32776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_try") 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032781 ac_cv_func_alloca_works=yes
32782else
32783 echo "$as_me: failed program was:" >&5
32784sed 's/^/| /' conftest.$ac_ext >&5
32785
Reid Spencera773bd52006-08-04 18:18:08 +000032786 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032787fi
Reid Spencera773bd52006-08-04 18:18:08 +000032788
Bill Wendlingebcceee2009-04-18 11:20:33 +000032789rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032790 conftest$ac_exeext conftest.$ac_ext
32791fi
Reid Spencera773bd52006-08-04 18:18:08 +000032792{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32793echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032794
32795if test $ac_cv_func_alloca_works = yes; then
32796
32797cat >>confdefs.h <<\_ACEOF
32798#define HAVE_ALLOCA 1
32799_ACEOF
32800
32801else
32802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32803# that cause trouble. Some versions do not even contain alloca or
32804# contain a buggy version. If you still want to use their alloca,
32805# use ar to extract alloca.o from them instead of compiling alloca.c.
32806
Reid Spencera773bd52006-08-04 18:18:08 +000032807ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032808
32809cat >>confdefs.h <<\_ACEOF
32810#define C_ALLOCA 1
32811_ACEOF
32812
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32815echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032816if test "${ac_cv_os_cray+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32818else
32819 cat >conftest.$ac_ext <<_ACEOF
32820/* confdefs.h. */
32821_ACEOF
32822cat confdefs.h >>conftest.$ac_ext
32823cat >>conftest.$ac_ext <<_ACEOF
32824/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032825#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032826webecray
32827#else
32828wenotbecray
32829#endif
32830
32831_ACEOF
32832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32833 $EGREP "webecray" >/dev/null 2>&1; then
32834 ac_cv_os_cray=yes
32835else
32836 ac_cv_os_cray=no
32837fi
32838rm -f conftest*
32839
32840fi
Reid Spencera773bd52006-08-04 18:18:08 +000032841{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32842echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032843if test $ac_cv_os_cray = yes; then
32844 for ac_func in _getb67 GETB67 getb67; do
32845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032849 echo $ECHO_N "(cached) $ECHO_C" >&6
32850else
32851 cat >conftest.$ac_ext <<_ACEOF
32852/* confdefs.h. */
32853_ACEOF
32854cat confdefs.h >>conftest.$ac_ext
32855cat >>conftest.$ac_ext <<_ACEOF
32856/* end confdefs.h. */
32857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32859#define $ac_func innocuous_$ac_func
32860
32861/* System header to define __stub macros and hopefully few prototypes,
32862 which can conflict with char $ac_func (); below.
32863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32864 <limits.h> exists even on freestanding compilers. */
32865
32866#ifdef __STDC__
32867# include <limits.h>
32868#else
32869# include <assert.h>
32870#endif
32871
32872#undef $ac_func
32873
Reid Spencera773bd52006-08-04 18:18:08 +000032874/* Override any GCC internal prototype to avoid an error.
32875 Use char because int might match the return type of a GCC
32876 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032877#ifdef __cplusplus
32878extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032879#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032880char $ac_func ();
32881/* The GNU C library defines this for functions which it implements
32882 to always fail with ENOSYS. Some functions are actually named
32883 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032884#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032885choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032886#endif
32887
32888int
32889main ()
32890{
Reid Spencera773bd52006-08-04 18:18:08 +000032891return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032892 ;
32893 return 0;
32894}
32895_ACEOF
32896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032897if { (ac_try="$ac_link"
32898case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32901esac
32902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904 ac_status=$?
32905 grep -v '^ *+' conftest.er1 >conftest.err
32906 rm -f conftest.er1
32907 cat conftest.err >&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032909 (exit $ac_status); } &&
32910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911 { (case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32914esac
32915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_try") 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; } &&
32920 { ac_try='test -s conftest$ac_exeext'
32921 { (case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32924esac
32925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032930 eval "$as_ac_var=yes"
32931else
32932 echo "$as_me: failed program was:" >&5
32933sed 's/^/| /' conftest.$ac_ext >&5
32934
Reid Spencera773bd52006-08-04 18:18:08 +000032935 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032936fi
Reid Spencera773bd52006-08-04 18:18:08 +000032937
Bill Wendlingebcceee2009-04-18 11:20:33 +000032938rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032939 conftest$ac_exeext conftest.$ac_ext
32940fi
Reid Spencera773bd52006-08-04 18:18:08 +000032941ac_res=`eval echo '${'$as_ac_var'}'`
32942 { echo "$as_me:$LINENO: result: $ac_res" >&5
32943echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032944if test `eval echo '${'$as_ac_var'}'` = yes; then
32945
32946cat >>confdefs.h <<_ACEOF
32947#define CRAY_STACKSEG_END $ac_func
32948_ACEOF
32949
32950 break
32951fi
32952
32953 done
32954fi
32955
Reid Spencera773bd52006-08-04 18:18:08 +000032956{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32957echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032958if test "${ac_cv_c_stack_direction+set}" = set; then
32959 echo $ECHO_N "(cached) $ECHO_C" >&6
32960else
32961 if test "$cross_compiling" = yes; then
32962 ac_cv_c_stack_direction=0
32963else
32964 cat >conftest.$ac_ext <<_ACEOF
32965/* confdefs.h. */
32966_ACEOF
32967cat confdefs.h >>conftest.$ac_ext
32968cat >>conftest.$ac_ext <<_ACEOF
32969/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032970$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032971int
32972find_stack_direction ()
32973{
32974 static char *addr = 0;
32975 auto char dummy;
32976 if (addr == 0)
32977 {
32978 addr = &dummy;
32979 return find_stack_direction ();
32980 }
John Criswell0021c312004-02-13 21:57:29 +000032981 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032982 return (&dummy > addr) ? 1 : -1;
32983}
John Criswell0021c312004-02-13 21:57:29 +000032984
John Criswell0021c312004-02-13 21:57:29 +000032985int
32986main ()
32987{
Reid Spencera773bd52006-08-04 18:18:08 +000032988 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032989}
32990_ACEOF
32991rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032992if { (ac_try="$ac_link"
32993case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032999 ac_status=$?
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033002 { (case "(($ac_try" in
33003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33005esac
33006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033011 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033012else
33013 echo "$as_me: program exited with status $ac_status" >&5
33014echo "$as_me: failed program was:" >&5
33015sed 's/^/| /' conftest.$ac_ext >&5
33016
33017( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033018ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033019fi
Reid Spencera773bd52006-08-04 18:18:08 +000033020rm -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 +000033021fi
Reid Spencera773bd52006-08-04 18:18:08 +000033022
33023
John Criswell0021c312004-02-13 21:57:29 +000033024fi
Reid Spencera773bd52006-08-04 18:18:08 +000033025{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33026echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033027
33028cat >>confdefs.h <<_ACEOF
33029#define STACK_DIRECTION $ac_cv_c_stack_direction
33030_ACEOF
33031
33032
John Criswell0021c312004-02-13 21:57:29 +000033033fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033034
33035
Reid Spencera773bd52006-08-04 18:18:08 +000033036{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33037echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033038if test "${ac_cv_func_rand48+set}" = set; then
33039 echo $ECHO_N "(cached) $ECHO_C" >&6
33040else
Reid Spencera773bd52006-08-04 18:18:08 +000033041 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033042ac_cpp='$CXXCPP $CPPFLAGS'
33043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33046
33047 cat >conftest.$ac_ext <<_ACEOF
33048/* confdefs.h. */
33049_ACEOF
33050cat confdefs.h >>conftest.$ac_ext
33051cat >>conftest.$ac_ext <<_ACEOF
33052/* end confdefs.h. */
33053#include <stdlib.h>
33054int
33055main ()
33056{
33057srand48(0);lrand48();drand48();
33058 ;
33059 return 0;
33060}
33061_ACEOF
33062rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033063if { (ac_try="$ac_compile"
33064case "(($ac_try" in
33065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066 *) ac_try_echo=$ac_try;;
33067esac
33068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033070 ac_status=$?
33071 grep -v '^ *+' conftest.er1 >conftest.err
33072 rm -f conftest.er1
33073 cat conftest.err >&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033075 (exit $ac_status); } &&
33076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33077 { (case "(($ac_try" in
33078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079 *) ac_try_echo=$ac_try;;
33080esac
33081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082 (eval "$ac_try") 2>&5
33083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; } &&
33086 { ac_try='test -s conftest.$ac_objext'
33087 { (case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33090esac
33091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_try") 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033096 ac_cv_func_rand48=yes
33097else
33098 echo "$as_me: failed program was:" >&5
33099sed 's/^/| /' conftest.$ac_ext >&5
33100
Reid Spencera773bd52006-08-04 18:18:08 +000033101 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033102fi
Reid Spencera773bd52006-08-04 18:18:08 +000033103
33104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033105 ac_ext=c
33106ac_cpp='$CPP $CPPFLAGS'
33107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33109ac_compiler_gnu=$ac_cv_c_compiler_gnu
33110
33111fi
Reid Spencera773bd52006-08-04 18:18:08 +000033112{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33113echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033114
33115if test "$ac_cv_func_rand48" = "yes" ; then
33116
33117cat >>confdefs.h <<\_ACEOF
33118#define HAVE_RAND48 1
33119_ACEOF
33120
33121fi
John Criswell0021c312004-02-13 21:57:29 +000033122
33123
Reid Spencera773bd52006-08-04 18:18:08 +000033124{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33125echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033126if test "${ac_cv_cxx_namespaces+set}" = set; then
33127 echo $ECHO_N "(cached) $ECHO_C" >&6
33128else
Reid Spencera773bd52006-08-04 18:18:08 +000033129 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033130ac_cpp='$CXXCPP $CPPFLAGS'
33131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33134
33135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033136/* confdefs.h. */
33137_ACEOF
33138cat confdefs.h >>conftest.$ac_ext
33139cat >>conftest.$ac_ext <<_ACEOF
33140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033141namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033142int
33143main ()
33144{
33145using namespace Outer::Inner; return i;
33146 ;
33147 return 0;
33148}
33149_ACEOF
33150rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033151if { (ac_try="$ac_compile"
33152case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33155esac
33156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033159 grep -v '^ *+' conftest.er1 >conftest.err
33160 rm -f conftest.er1
33161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033163 (exit $ac_status); } &&
33164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33165 { (case "(($ac_try" in
33166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167 *) ac_try_echo=$ac_try;;
33168esac
33169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170 (eval "$ac_try") 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; } &&
33174 { ac_try='test -s conftest.$ac_objext'
33175 { (case "(($ac_try" in
33176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177 *) ac_try_echo=$ac_try;;
33178esac
33179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180 (eval "$ac_try") 2>&5
33181 ac_status=$?
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033184 ac_cv_cxx_namespaces=yes
33185else
33186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033187sed 's/^/| /' conftest.$ac_ext >&5
33188
Reid Spencera773bd52006-08-04 18:18:08 +000033189 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033190fi
Reid Spencera773bd52006-08-04 18:18:08 +000033191
33192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033193 ac_ext=c
33194ac_cpp='$CPP $CPPFLAGS'
33195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197ac_compiler_gnu=$ac_cv_c_compiler_gnu
33198
33199
33200fi
Reid Spencera773bd52006-08-04 18:18:08 +000033201{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33202echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033203if test "$ac_cv_cxx_namespaces" = yes; then
33204
33205cat >>confdefs.h <<\_ACEOF
33206#define HAVE_NAMESPACES
33207_ACEOF
33208
33209fi
33210
Reid Spencera773bd52006-08-04 18:18:08 +000033211{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33212echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033213if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33214 echo $ECHO_N "(cached) $ECHO_C" >&6
33215else
33216
Reid Spencera773bd52006-08-04 18:18:08 +000033217 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033218ac_cpp='$CXXCPP $CPPFLAGS'
33219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33222
33223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033224/* confdefs.h. */
33225_ACEOF
33226cat confdefs.h >>conftest.$ac_ext
33227cat >>conftest.$ac_ext <<_ACEOF
33228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033229#include <iterator>
33230#ifdef HAVE_NAMESPACES
33231using namespace std;
33232#endif
John Criswell7a73b802003-06-30 21:59:07 +000033233int
33234main ()
33235{
33236iterator<int,int,int> t; return 0;
33237 ;
33238 return 0;
33239}
33240_ACEOF
33241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033242if { (ac_try="$ac_compile"
33243case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33246esac
33247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033250 grep -v '^ *+' conftest.er1 >conftest.err
33251 rm -f conftest.er1
33252 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259esac
33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033275 ac_cv_cxx_have_std_iterator=yes
33276else
33277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033278sed 's/^/| /' conftest.$ac_ext >&5
33279
Reid Spencera773bd52006-08-04 18:18:08 +000033280 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033281fi
Reid Spencera773bd52006-08-04 18:18:08 +000033282
33283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033284 ac_ext=c
33285ac_cpp='$CPP $CPPFLAGS'
33286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288ac_compiler_gnu=$ac_cv_c_compiler_gnu
33289
33290
33291fi
Reid Spencera773bd52006-08-04 18:18:08 +000033292{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33293echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033294if test "$ac_cv_cxx_have_std_iterator" = yes
33295then
John Criswell40468462004-09-24 21:19:06 +000033296
33297cat >>confdefs.h <<\_ACEOF
33298#define HAVE_STD_ITERATOR 1
33299_ACEOF
33300
33301else
33302
33303cat >>confdefs.h <<\_ACEOF
33304#define HAVE_STD_ITERATOR 0
33305_ACEOF
33306
John Criswell7a73b802003-06-30 21:59:07 +000033307fi
33308
Reid Spencera773bd52006-08-04 18:18:08 +000033309{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33310echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033311if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33313else
33314
Reid Spencera773bd52006-08-04 18:18:08 +000033315 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033316ac_cpp='$CXXCPP $CPPFLAGS'
33317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33320
33321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033322/* confdefs.h. */
33323_ACEOF
33324cat confdefs.h >>conftest.$ac_ext
33325cat >>conftest.$ac_ext <<_ACEOF
33326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033327#include <iterator>
33328#ifdef HAVE_NAMESPACES
33329using namespace std;
33330#endif
John Criswell7a73b802003-06-30 21:59:07 +000033331int
33332main ()
33333{
John Criswellc78022e2003-07-29 19:11:58 +000033334bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033335 ;
33336 return 0;
33337}
33338_ACEOF
33339rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033340if { (ac_try="$ac_compile"
33341case "(($ac_try" in
33342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33343 *) ac_try_echo=$ac_try;;
33344esac
33345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33346 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033348 grep -v '^ *+' conftest.er1 >conftest.err
33349 rm -f conftest.er1
33350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033352 (exit $ac_status); } &&
33353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33354 { (case "(($ac_try" in
33355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356 *) ac_try_echo=$ac_try;;
33357esac
33358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33359 (eval "$ac_try") 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try='test -s conftest.$ac_objext'
33364 { (case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33367esac
33368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033373 ac_cv_cxx_have_bi_iterator=yes
33374else
33375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033376sed 's/^/| /' conftest.$ac_ext >&5
33377
Reid Spencera773bd52006-08-04 18:18:08 +000033378 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033379fi
Reid Spencera773bd52006-08-04 18:18:08 +000033380
33381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033382 ac_ext=c
33383ac_cpp='$CPP $CPPFLAGS'
33384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33386ac_compiler_gnu=$ac_cv_c_compiler_gnu
33387
33388
33389fi
Reid Spencera773bd52006-08-04 18:18:08 +000033390{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33391echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033392if test "$ac_cv_cxx_have_bi_iterator" = yes
33393then
John Criswell40468462004-09-24 21:19:06 +000033394
33395cat >>confdefs.h <<\_ACEOF
33396#define HAVE_BI_ITERATOR 1
33397_ACEOF
33398
33399else
33400
33401cat >>confdefs.h <<\_ACEOF
33402#define HAVE_BI_ITERATOR 0
33403_ACEOF
33404
John Criswell7a73b802003-06-30 21:59:07 +000033405fi
33406
Reid Spencera773bd52006-08-04 18:18:08 +000033407{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33408echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033409if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33411else
33412
Reid Spencera773bd52006-08-04 18:18:08 +000033413 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033414ac_cpp='$CXXCPP $CPPFLAGS'
33415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33418
33419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033420/* confdefs.h. */
33421_ACEOF
33422cat confdefs.h >>conftest.$ac_ext
33423cat >>conftest.$ac_ext <<_ACEOF
33424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033425#include <iterator>
33426#ifdef HAVE_NAMESPACES
33427using namespace std;
33428#endif
John Criswell7a73b802003-06-30 21:59:07 +000033429int
33430main ()
33431{
John Criswellc78022e2003-07-29 19:11:58 +000033432forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033433 ;
33434 return 0;
33435}
33436_ACEOF
33437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033438if { (ac_try="$ac_compile"
33439case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442esac
33443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033450 (exit $ac_status); } &&
33451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452 { (case "(($ac_try" in
33453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454 *) ac_try_echo=$ac_try;;
33455esac
33456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457 (eval "$ac_try") 2>&5
33458 ac_status=$?
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; } &&
33461 { ac_try='test -s conftest.$ac_objext'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33465esac
33466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033471 ac_cv_cxx_have_fwd_iterator=yes
33472else
33473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033474sed 's/^/| /' conftest.$ac_ext >&5
33475
Reid Spencera773bd52006-08-04 18:18:08 +000033476 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033477fi
Reid Spencera773bd52006-08-04 18:18:08 +000033478
33479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033480 ac_ext=c
33481ac_cpp='$CPP $CPPFLAGS'
33482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484ac_compiler_gnu=$ac_cv_c_compiler_gnu
33485
33486
33487fi
Reid Spencera773bd52006-08-04 18:18:08 +000033488{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33489echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033490if test "$ac_cv_cxx_have_fwd_iterator" = yes
33491then
John Criswell40468462004-09-24 21:19:06 +000033492
33493cat >>confdefs.h <<\_ACEOF
33494#define HAVE_FWD_ITERATOR 1
33495_ACEOF
33496
33497else
33498
33499cat >>confdefs.h <<\_ACEOF
33500#define HAVE_FWD_ITERATOR 0
33501_ACEOF
33502
John Criswell7a73b802003-06-30 21:59:07 +000033503fi
33504
33505
Reid Spencera773bd52006-08-04 18:18:08 +000033506{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33507echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033508if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33510else
Reid Spencera773bd52006-08-04 18:18:08 +000033511 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033512ac_cpp='$CXXCPP $CPPFLAGS'
33513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33516
Reid Spencerabec8f92004-10-27 23:03:44 +000033517 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033518/* confdefs.h. */
33519_ACEOF
33520cat confdefs.h >>conftest.$ac_ext
33521cat >>conftest.$ac_ext <<_ACEOF
33522/* end confdefs.h. */
33523#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033524int
33525main ()
33526{
33527float f; isnan(f);
33528 ;
33529 return 0;
33530}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033531_ACEOF
33532rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033533if { (ac_try="$ac_compile"
33534case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33537esac
33538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033541 grep -v '^ *+' conftest.er1 >conftest.err
33542 rm -f conftest.er1
33543 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33560esac
33561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033566 ac_cv_func_isnan_in_math_h=yes
33567else
33568 echo "$as_me: failed program was:" >&5
33569sed 's/^/| /' conftest.$ac_ext >&5
33570
Reid Spencera773bd52006-08-04 18:18:08 +000033571 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033572fi
Reid Spencera773bd52006-08-04 18:18:08 +000033573
33574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033575 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033576ac_cpp='$CPP $CPPFLAGS'
33577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579ac_compiler_gnu=$ac_cv_c_compiler_gnu
33580
33581fi
Reid Spencera773bd52006-08-04 18:18:08 +000033582{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33583echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033584
33585
33586if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033587
33588cat >>confdefs.h <<\_ACEOF
33589#define HAVE_ISNAN_IN_MATH_H 1
33590_ACEOF
33591
Reid Spencerabec8f92004-10-27 23:03:44 +000033592fi
33593
Reid Spencera773bd52006-08-04 18:18:08 +000033594{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33595echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033596if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33598else
Reid Spencera773bd52006-08-04 18:18:08 +000033599 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033600ac_cpp='$CXXCPP $CPPFLAGS'
33601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33604
Reid Spencerabec8f92004-10-27 23:03:44 +000033605 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033606/* confdefs.h. */
33607_ACEOF
33608cat confdefs.h >>conftest.$ac_ext
33609cat >>conftest.$ac_ext <<_ACEOF
33610/* end confdefs.h. */
33611#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033612int
33613main ()
33614{
33615float f; isnan(f);
33616 ;
33617 return 0;
33618}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033619_ACEOF
33620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033621if { (ac_try="$ac_compile"
33622case "(($ac_try" in
33623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624 *) ac_try_echo=$ac_try;;
33625esac
33626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033629 grep -v '^ *+' conftest.er1 >conftest.err
33630 rm -f conftest.er1
33631 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033633 (exit $ac_status); } &&
33634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33635 { (case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33638esac
33639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_try") 2>&5
33641 ac_status=$?
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; } &&
33644 { ac_try='test -s conftest.$ac_objext'
33645 { (case "(($ac_try" in
33646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33647 *) ac_try_echo=$ac_try;;
33648esac
33649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650 (eval "$ac_try") 2>&5
33651 ac_status=$?
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033654 ac_cv_func_isnan_in_cmath=yes
33655else
33656 echo "$as_me: failed program was:" >&5
33657sed 's/^/| /' conftest.$ac_ext >&5
33658
Reid Spencera773bd52006-08-04 18:18:08 +000033659 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033660fi
Reid Spencera773bd52006-08-04 18:18:08 +000033661
33662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033663 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033664ac_cpp='$CPP $CPPFLAGS'
33665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33667ac_compiler_gnu=$ac_cv_c_compiler_gnu
33668
33669fi
Reid Spencera773bd52006-08-04 18:18:08 +000033670{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33671echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033672
33673if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033674
33675cat >>confdefs.h <<\_ACEOF
33676#define HAVE_ISNAN_IN_CMATH 1
33677_ACEOF
33678
Reid Spencerabec8f92004-10-27 23:03:44 +000033679fi
33680
Reid Spencera773bd52006-08-04 18:18:08 +000033681{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33682echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033683if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33685else
Reid Spencera773bd52006-08-04 18:18:08 +000033686 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033687ac_cpp='$CXXCPP $CPPFLAGS'
33688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33691
Reid Spencerabec8f92004-10-27 23:03:44 +000033692 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033693/* confdefs.h. */
33694_ACEOF
33695cat confdefs.h >>conftest.$ac_ext
33696cat >>conftest.$ac_ext <<_ACEOF
33697/* end confdefs.h. */
33698#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033699int
33700main ()
33701{
33702float f; std::isnan(f);
33703 ;
33704 return 0;
33705}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033706_ACEOF
33707rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033708if { (ac_try="$ac_compile"
33709case "(($ac_try" in
33710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33712esac
33713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033716 grep -v '^ *+' conftest.er1 >conftest.err
33717 rm -f conftest.er1
33718 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033720 (exit $ac_status); } &&
33721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33722 { (case "(($ac_try" in
33723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724 *) ac_try_echo=$ac_try;;
33725esac
33726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727 (eval "$ac_try") 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try='test -s conftest.$ac_objext'
33732 { (case "(($ac_try" in
33733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33734 *) ac_try_echo=$ac_try;;
33735esac
33736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33737 (eval "$ac_try") 2>&5
33738 ac_status=$?
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033741 ac_cv_func_std_isnan_in_cmath=yes
33742else
33743 echo "$as_me: failed program was:" >&5
33744sed 's/^/| /' conftest.$ac_ext >&5
33745
Reid Spencera773bd52006-08-04 18:18:08 +000033746 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033747fi
Reid Spencera773bd52006-08-04 18:18:08 +000033748
33749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033750 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033751ac_cpp='$CPP $CPPFLAGS'
33752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33754ac_compiler_gnu=$ac_cv_c_compiler_gnu
33755
33756fi
Reid Spencera773bd52006-08-04 18:18:08 +000033757{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33758echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033759
33760if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033761
33762cat >>confdefs.h <<\_ACEOF
33763#define HAVE_STD_ISNAN_IN_CMATH 1
33764_ACEOF
33765
Reid Spencerabec8f92004-10-27 23:03:44 +000033766fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033767
33768
Reid Spencera773bd52006-08-04 18:18:08 +000033769{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33770echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033771if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33772 echo $ECHO_N "(cached) $ECHO_C" >&6
33773else
Reid Spencera773bd52006-08-04 18:18:08 +000033774 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033775ac_cpp='$CXXCPP $CPPFLAGS'
33776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33779
Reid Spencerabec8f92004-10-27 23:03:44 +000033780 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033781/* confdefs.h. */
33782_ACEOF
33783cat confdefs.h >>conftest.$ac_ext
33784cat >>conftest.$ac_ext <<_ACEOF
33785/* end confdefs.h. */
33786#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033787int
33788main ()
33789{
33790float f; isinf(f);
33791 ;
33792 return 0;
33793}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033794_ACEOF
33795rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033796if { (ac_try="$ac_compile"
33797case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33800esac
33801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033804 grep -v '^ *+' conftest.er1 >conftest.err
33805 rm -f conftest.er1
33806 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033808 (exit $ac_status); } &&
33809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33810 { (case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33813esac
33814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; } &&
33819 { ac_try='test -s conftest.$ac_objext'
33820 { (case "(($ac_try" in
33821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822 *) ac_try_echo=$ac_try;;
33823esac
33824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_try") 2>&5
33826 ac_status=$?
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033829 ac_cv_func_isinf_in_math_h=yes
33830else
33831 echo "$as_me: failed program was:" >&5
33832sed 's/^/| /' conftest.$ac_ext >&5
33833
Reid Spencera773bd52006-08-04 18:18:08 +000033834 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033835fi
Reid Spencera773bd52006-08-04 18:18:08 +000033836
33837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033838 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033839ac_cpp='$CPP $CPPFLAGS'
33840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33842ac_compiler_gnu=$ac_cv_c_compiler_gnu
33843
33844fi
Reid Spencera773bd52006-08-04 18:18:08 +000033845{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33846echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033847
33848if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033849
33850cat >>confdefs.h <<\_ACEOF
33851#define HAVE_ISINF_IN_MATH_H 1
33852_ACEOF
33853
Reid Spencerabec8f92004-10-27 23:03:44 +000033854fi
33855
Reid Spencera773bd52006-08-04 18:18:08 +000033856{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33857echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033858if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33860else
Reid Spencera773bd52006-08-04 18:18:08 +000033861 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033862ac_cpp='$CXXCPP $CPPFLAGS'
33863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33866
Reid Spencerabec8f92004-10-27 23:03:44 +000033867 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033868/* confdefs.h. */
33869_ACEOF
33870cat confdefs.h >>conftest.$ac_ext
33871cat >>conftest.$ac_ext <<_ACEOF
33872/* end confdefs.h. */
33873#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033874int
33875main ()
33876{
33877float f; isinf(f);
33878 ;
33879 return 0;
33880}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033881_ACEOF
33882rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033883if { (ac_try="$ac_compile"
33884case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33887esac
33888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033891 grep -v '^ *+' conftest.er1 >conftest.err
33892 rm -f conftest.er1
33893 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033895 (exit $ac_status); } &&
33896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33903 ac_status=$?
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest.$ac_objext'
33907 { (case "(($ac_try" in
33908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909 *) ac_try_echo=$ac_try;;
33910esac
33911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912 (eval "$ac_try") 2>&5
33913 ac_status=$?
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033916 ac_cv_func_isinf_in_cmath=yes
33917else
33918 echo "$as_me: failed program was:" >&5
33919sed 's/^/| /' conftest.$ac_ext >&5
33920
Reid Spencera773bd52006-08-04 18:18:08 +000033921 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033922fi
Reid Spencera773bd52006-08-04 18:18:08 +000033923
33924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033925 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033926ac_cpp='$CPP $CPPFLAGS'
33927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33929ac_compiler_gnu=$ac_cv_c_compiler_gnu
33930
33931fi
Reid Spencera773bd52006-08-04 18:18:08 +000033932{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33933echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033934
33935if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033936
33937cat >>confdefs.h <<\_ACEOF
33938#define HAVE_ISINF_IN_CMATH 1
33939_ACEOF
33940
Reid Spencerabec8f92004-10-27 23:03:44 +000033941fi
33942
Reid Spencera773bd52006-08-04 18:18:08 +000033943{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33944echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033945if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33946 echo $ECHO_N "(cached) $ECHO_C" >&6
33947else
Reid Spencera773bd52006-08-04 18:18:08 +000033948 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033949ac_cpp='$CXXCPP $CPPFLAGS'
33950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33953
Reid Spencerabec8f92004-10-27 23:03:44 +000033954 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033955/* confdefs.h. */
33956_ACEOF
33957cat confdefs.h >>conftest.$ac_ext
33958cat >>conftest.$ac_ext <<_ACEOF
33959/* end confdefs.h. */
33960#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033961int
33962main ()
33963{
33964float f; std::isinf(f)}
33965 ;
33966 return 0;
33967}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033968_ACEOF
33969rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033970if { (ac_try="$ac_compile"
33971case "(($ac_try" in
33972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33973 *) ac_try_echo=$ac_try;;
33974esac
33975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33976 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033978 grep -v '^ *+' conftest.er1 >conftest.err
33979 rm -f conftest.er1
33980 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033982 (exit $ac_status); } &&
33983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33984 { (case "(($ac_try" in
33985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33986 *) ac_try_echo=$ac_try;;
33987esac
33988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33989 (eval "$ac_try") 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; } &&
33993 { ac_try='test -s conftest.$ac_objext'
33994 { (case "(($ac_try" in
33995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33996 *) ac_try_echo=$ac_try;;
33997esac
33998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33999 (eval "$ac_try") 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034003 ac_cv_func_std_isinf_in_cmath=yes
34004else
34005 echo "$as_me: failed program was:" >&5
34006sed 's/^/| /' conftest.$ac_ext >&5
34007
Reid Spencera773bd52006-08-04 18:18:08 +000034008 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034009fi
Reid Spencera773bd52006-08-04 18:18:08 +000034010
34011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034012 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034013ac_cpp='$CPP $CPPFLAGS'
34014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34016ac_compiler_gnu=$ac_cv_c_compiler_gnu
34017
34018fi
Reid Spencera773bd52006-08-04 18:18:08 +000034019{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34020echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034021
34022if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034023
34024cat >>confdefs.h <<\_ACEOF
34025#define HAVE_STD_ISINF_IN_CMATH 1
34026_ACEOF
34027
Reid Spencerabec8f92004-10-27 23:03:44 +000034028fi
34029
Reid Spencera773bd52006-08-04 18:18:08 +000034030{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34031echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034032if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34033 echo $ECHO_N "(cached) $ECHO_C" >&6
34034else
Reid Spencera773bd52006-08-04 18:18:08 +000034035 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034036ac_cpp='$CXXCPP $CPPFLAGS'
34037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34040
Reid Spencerabec8f92004-10-27 23:03:44 +000034041 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034042/* confdefs.h. */
34043_ACEOF
34044cat confdefs.h >>conftest.$ac_ext
34045cat >>conftest.$ac_ext <<_ACEOF
34046/* end confdefs.h. */
34047#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034048int
34049main ()
34050{
34051float f; finite(f);
34052 ;
34053 return 0;
34054}
Brian Gaeked59a6472004-07-21 03:33:58 +000034055_ACEOF
34056rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034057if { (ac_try="$ac_compile"
34058case "(($ac_try" in
34059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060 *) ac_try_echo=$ac_try;;
34061esac
34062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034065 grep -v '^ *+' conftest.er1 >conftest.err
34066 rm -f conftest.er1
34067 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034069 (exit $ac_status); } &&
34070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34071 { (case "(($ac_try" in
34072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073 *) ac_try_echo=$ac_try;;
34074esac
34075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_try") 2>&5
34077 ac_status=$?
34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079 (exit $ac_status); }; } &&
34080 { ac_try='test -s conftest.$ac_objext'
34081 { (case "(($ac_try" in
34082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34083 *) ac_try_echo=$ac_try;;
34084esac
34085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34086 (eval "$ac_try") 2>&5
34087 ac_status=$?
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034090 ac_cv_func_finite_in_ieeefp_h=yes
34091else
34092 echo "$as_me: failed program was:" >&5
34093sed 's/^/| /' conftest.$ac_ext >&5
34094
Reid Spencera773bd52006-08-04 18:18:08 +000034095 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034096fi
Reid Spencera773bd52006-08-04 18:18:08 +000034097
34098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034099 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034100ac_cpp='$CPP $CPPFLAGS'
34101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34103ac_compiler_gnu=$ac_cv_c_compiler_gnu
34104
34105fi
Reid Spencera773bd52006-08-04 18:18:08 +000034106{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34107echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034108
Brian Gaeke6802b552004-10-28 05:06:45 +000034109if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034110
34111cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034112#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034113_ACEOF
34114
Reid Spencerabec8f92004-10-27 23:03:44 +000034115fi
34116
34117
34118
Reid Spencer30fe5262007-01-20 07:48:49 +000034119if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034120
34121
34122for ac_header in stdlib.h unistd.h
34123do
34124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034129 echo $ECHO_N "(cached) $ECHO_C" >&6
34130fi
Reid Spencera773bd52006-08-04 18:18:08 +000034131ac_res=`eval echo '${'$as_ac_Header'}'`
34132 { echo "$as_me:$LINENO: result: $ac_res" >&5
34133echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034134else
34135 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034136{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034139/* confdefs.h. */
34140_ACEOF
34141cat confdefs.h >>conftest.$ac_ext
34142cat >>conftest.$ac_ext <<_ACEOF
34143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034144$ac_includes_default
34145#include <$ac_header>
34146_ACEOF
34147rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034148if { (ac_try="$ac_compile"
34149case "(($ac_try" in
34150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151 *) ac_try_echo=$ac_try;;
34152esac
34153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034156 grep -v '^ *+' conftest.er1 >conftest.err
34157 rm -f conftest.er1
34158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034160 (exit $ac_status); } &&
34161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34162 { (case "(($ac_try" in
34163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164 *) ac_try_echo=$ac_try;;
34165esac
34166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167 (eval "$ac_try") 2>&5
34168 ac_status=$?
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34175esac
34176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_try") 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034181 ac_header_compiler=yes
34182else
34183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034184sed 's/^/| /' conftest.$ac_ext >&5
34185
Reid Spencera773bd52006-08-04 18:18:08 +000034186 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034187fi
Reid Spencera773bd52006-08-04 18:18:08 +000034188
34189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34191echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034192
34193# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034194{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034196cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034197/* confdefs.h. */
34198_ACEOF
34199cat confdefs.h >>conftest.$ac_ext
34200cat >>conftest.$ac_ext <<_ACEOF
34201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034202#include <$ac_header>
34203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034204if { (ac_try="$ac_cpp conftest.$ac_ext"
34205case "(($ac_try" in
34206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34208esac
34209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034211 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034212 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034213 rm -f conftest.er1
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034216 (exit $ac_status); } >/dev/null; then
34217 if test -s conftest.err; then
34218 ac_cpp_err=$ac_c_preproc_warn_flag
34219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34220 else
34221 ac_cpp_err=
34222 fi
34223else
34224 ac_cpp_err=yes
34225fi
34226if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034227 ac_header_preproc=yes
34228else
34229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034230sed 's/^/| /' conftest.$ac_ext >&5
34231
John Criswell7a73b802003-06-30 21:59:07 +000034232 ac_header_preproc=no
34233fi
Reid Spencera773bd52006-08-04 18:18:08 +000034234
John Criswell7a73b802003-06-30 21:59:07 +000034235rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034236{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34237echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034238
34239# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34241 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34246 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034247 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034248 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034261 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034262## ----------------------------------- ##
34263## Report this to llvmbugs@cs.uiuc.edu ##
34264## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034265_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034266 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034267 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034268esac
Reid Spencera773bd52006-08-04 18:18:08 +000034269{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034272 echo $ECHO_N "(cached) $ECHO_C" >&6
34273else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034274 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034275fi
Reid Spencera773bd52006-08-04 18:18:08 +000034276ac_res=`eval echo '${'$as_ac_Header'}'`
34277 { echo "$as_me:$LINENO: result: $ac_res" >&5
34278echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034279
34280fi
34281if test `eval echo '${'$as_ac_Header'}'` = yes; then
34282 cat >>confdefs.h <<_ACEOF
34283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34284_ACEOF
34285
34286fi
34287
34288done
34289
34290
34291for ac_func in getpagesize
34292do
34293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034294{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34296if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034297 echo $ECHO_N "(cached) $ECHO_C" >&6
34298else
34299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034300/* confdefs.h. */
34301_ACEOF
34302cat confdefs.h >>conftest.$ac_ext
34303cat >>conftest.$ac_ext <<_ACEOF
34304/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34307#define $ac_func innocuous_$ac_func
34308
John Criswell7a73b802003-06-30 21:59:07 +000034309/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034310 which can conflict with char $ac_func (); below.
34311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34312 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034313
John Criswell0c38eaf2003-09-10 15:17:25 +000034314#ifdef __STDC__
34315# include <limits.h>
34316#else
34317# include <assert.h>
34318#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034319
34320#undef $ac_func
34321
Reid Spencera773bd52006-08-04 18:18:08 +000034322/* Override any GCC internal prototype to avoid an error.
34323 Use char because int might match the return type of a GCC
34324 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034325#ifdef __cplusplus
34326extern "C"
34327#endif
John Criswell7a73b802003-06-30 21:59:07 +000034328char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034329/* The GNU C library defines this for functions which it implements
34330 to always fail with ENOSYS. Some functions are actually named
34331 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034332#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034333choke me
John Criswell7a73b802003-06-30 21:59:07 +000034334#endif
34335
John Criswell0c38eaf2003-09-10 15:17:25 +000034336int
34337main ()
34338{
Reid Spencera773bd52006-08-04 18:18:08 +000034339return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034340 ;
34341 return 0;
34342}
34343_ACEOF
34344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034345if { (ac_try="$ac_link"
34346case "(($ac_try" in
34347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348 *) ac_try_echo=$ac_try;;
34349esac
34350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034353 grep -v '^ *+' conftest.er1 >conftest.err
34354 rm -f conftest.er1
34355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034357 (exit $ac_status); } &&
34358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34359 { (case "(($ac_try" in
34360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361 *) ac_try_echo=$ac_try;;
34362esac
34363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 (eval "$ac_try") 2>&5
34365 ac_status=$?
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; } &&
34368 { ac_try='test -s conftest$ac_exeext'
34369 { (case "(($ac_try" in
34370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34371 *) ac_try_echo=$ac_try;;
34372esac
34373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374 (eval "$ac_try") 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034378 eval "$as_ac_var=yes"
34379else
34380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034381sed 's/^/| /' conftest.$ac_ext >&5
34382
Reid Spencera773bd52006-08-04 18:18:08 +000034383 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034384fi
Reid Spencera773bd52006-08-04 18:18:08 +000034385
Bill Wendlingebcceee2009-04-18 11:20:33 +000034386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034387 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034388fi
Reid Spencera773bd52006-08-04 18:18:08 +000034389ac_res=`eval echo '${'$as_ac_var'}'`
34390 { echo "$as_me:$LINENO: result: $ac_res" >&5
34391echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034392if test `eval echo '${'$as_ac_var'}'` = yes; then
34393 cat >>confdefs.h <<_ACEOF
34394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34395_ACEOF
34396
34397fi
34398done
34399
Reid Spencera773bd52006-08-04 18:18:08 +000034400{ echo "$as_me:$LINENO: checking for working mmap" >&5
34401echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034402if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34403 echo $ECHO_N "(cached) $ECHO_C" >&6
34404else
34405 if test "$cross_compiling" = yes; then
34406 ac_cv_func_mmap_fixed_mapped=no
34407else
34408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034409/* confdefs.h. */
34410_ACEOF
34411cat confdefs.h >>conftest.$ac_ext
34412cat >>conftest.$ac_ext <<_ACEOF
34413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034414$ac_includes_default
34415/* malloc might have been renamed as rpl_malloc. */
34416#undef malloc
34417
34418/* Thanks to Mike Haertel and Jim Avera for this test.
34419 Here is a matrix of mmap possibilities:
34420 mmap private not fixed
34421 mmap private fixed at somewhere currently unmapped
34422 mmap private fixed at somewhere already mapped
34423 mmap shared not fixed
34424 mmap shared fixed at somewhere currently unmapped
34425 mmap shared fixed at somewhere already mapped
34426 For private mappings, we should verify that changes cannot be read()
34427 back from the file, nor mmap's back from the file at a different
34428 address. (There have been systems where private was not correctly
34429 implemented like the infamous i386 svr4.0, and systems where the
34430 VM page cache was not coherent with the file system buffer cache
34431 like early versions of FreeBSD and possibly contemporary NetBSD.)
34432 For shared mappings, we should conversely verify that changes get
34433 propagated back to all the places they're supposed to be.
34434
34435 Grep wants private fixed already mapped.
34436 The main things grep needs to know about mmap are:
34437 * does it exist and is it safe to write into the mmap'd area
34438 * how to use it (BSD variants) */
34439
34440#include <fcntl.h>
34441#include <sys/mman.h>
34442
Bill Wendlingebcceee2009-04-18 11:20:33 +000034443#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034444char *malloc ();
34445#endif
34446
34447/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034448#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034449/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034450# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034451# define HAVE_SYS_PARAM_H 1
34452# endif
34453
34454# ifdef _SC_PAGESIZE
34455# define getpagesize() sysconf(_SC_PAGESIZE)
34456# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034457# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034458# include <sys/param.h>
34459# ifdef EXEC_PAGESIZE
34460# define getpagesize() EXEC_PAGESIZE
34461# else /* no EXEC_PAGESIZE */
34462# ifdef NBPG
34463# define getpagesize() NBPG * CLSIZE
34464# ifndef CLSIZE
34465# define CLSIZE 1
34466# endif /* no CLSIZE */
34467# else /* no NBPG */
34468# ifdef NBPC
34469# define getpagesize() NBPC
34470# else /* no NBPC */
34471# ifdef PAGESIZE
34472# define getpagesize() PAGESIZE
34473# endif /* PAGESIZE */
34474# endif /* no NBPC */
34475# endif /* no NBPG */
34476# endif /* no EXEC_PAGESIZE */
34477# else /* no HAVE_SYS_PARAM_H */
34478# define getpagesize() 8192 /* punt totally */
34479# endif /* no HAVE_SYS_PARAM_H */
34480# endif /* no _SC_PAGESIZE */
34481
34482#endif /* no HAVE_GETPAGESIZE */
34483
34484int
34485main ()
34486{
34487 char *data, *data2, *data3;
34488 int i, pagesize;
34489 int fd;
34490
34491 pagesize = getpagesize ();
34492
34493 /* First, make a file with some known garbage in it. */
34494 data = (char *) malloc (pagesize);
34495 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034496 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034497 for (i = 0; i < pagesize; ++i)
34498 *(data + i) = rand ();
34499 umask (0);
34500 fd = creat ("conftest.mmap", 0600);
34501 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034502 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034503 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034504 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034505 close (fd);
34506
34507 /* Next, try to mmap the file at a fixed address which already has
34508 something else allocated at it. If we can, also make sure that
34509 we see the same garbage. */
34510 fd = open ("conftest.mmap", O_RDWR);
34511 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034512 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034513 data2 = (char *) malloc (2 * pagesize);
34514 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034515 return 1;
34516 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034517 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034518 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034519 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034520 for (i = 0; i < pagesize; ++i)
34521 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034522 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034523
34524 /* Finally, make sure that changes to the mapped area do not
34525 percolate back to the file as seen by read(). (This is a bug on
34526 some variants of i386 svr4.0.) */
34527 for (i = 0; i < pagesize; ++i)
34528 *(data2 + i) = *(data2 + i) + 1;
34529 data3 = (char *) malloc (pagesize);
34530 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034531 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034532 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034533 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034534 for (i = 0; i < pagesize; ++i)
34535 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034536 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034537 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034538 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034539}
34540_ACEOF
34541rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034542if { (ac_try="$ac_link"
34543case "(($ac_try" in
34544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545 *) ac_try_echo=$ac_try;;
34546esac
34547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034549 ac_status=$?
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034552 { (case "(($ac_try" in
34553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34554 *) ac_try_echo=$ac_try;;
34555esac
34556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34557 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034558 ac_status=$?
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; }; then
34561 ac_cv_func_mmap_fixed_mapped=yes
34562else
34563 echo "$as_me: program exited with status $ac_status" >&5
34564echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034565sed 's/^/| /' conftest.$ac_ext >&5
34566
John Criswell7a73b802003-06-30 21:59:07 +000034567( exit $ac_status )
34568ac_cv_func_mmap_fixed_mapped=no
34569fi
Reid Spencera773bd52006-08-04 18:18:08 +000034570rm -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 +000034571fi
Reid Spencera773bd52006-08-04 18:18:08 +000034572
34573
John Criswell7a73b802003-06-30 21:59:07 +000034574fi
Reid Spencera773bd52006-08-04 18:18:08 +000034575{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34576echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034577if test $ac_cv_func_mmap_fixed_mapped = yes; then
34578
34579cat >>confdefs.h <<\_ACEOF
34580#define HAVE_MMAP 1
34581_ACEOF
34582
34583fi
34584rm -f conftest.mmap
34585
Reid Spencer30fe5262007-01-20 07:48:49 +000034586 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034587echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034588if test "${ac_cv_func_mmap_file+set}" = set; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34590else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034591 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034592ac_cpp='$CPP $CPPFLAGS'
34593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34595ac_compiler_gnu=$ac_cv_c_compiler_gnu
34596
34597 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034598 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034599else
34600 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034601
Reid Spencer777ce172004-09-20 04:09:56 +000034602 /* confdefs.h. */
34603_ACEOF
34604cat confdefs.h >>conftest.$ac_ext
34605cat >>conftest.$ac_ext <<_ACEOF
34606/* end confdefs.h. */
34607
John Criswell7a73b802003-06-30 21:59:07 +000034608#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034609#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034610#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034611
34612int
34613main ()
34614{
John Criswell7a73b802003-06-30 21:59:07 +000034615
34616 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034617 fd = creat ("foo",0777);
34618 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34619 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034620 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034621 ;
34622 return 0;
34623}
John Criswell7a73b802003-06-30 21:59:07 +000034624_ACEOF
34625rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034626if { (ac_try="$ac_link"
34627case "(($ac_try" in
34628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34630esac
34631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034636 { (case "(($ac_try" in
34637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34638 *) ac_try_echo=$ac_try;;
34639esac
34640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034642 ac_status=$?
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; }; then
34645 ac_cv_func_mmap_file=yes
34646else
34647 echo "$as_me: program exited with status $ac_status" >&5
34648echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034649sed 's/^/| /' conftest.$ac_ext >&5
34650
John Criswell7a73b802003-06-30 21:59:07 +000034651( exit $ac_status )
34652ac_cv_func_mmap_file=no
34653fi
Reid Spencera773bd52006-08-04 18:18:08 +000034654rm -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 +000034655fi
Reid Spencera773bd52006-08-04 18:18:08 +000034656
34657
John Criswell7a73b802003-06-30 21:59:07 +000034658 ac_ext=c
34659ac_cpp='$CPP $CPPFLAGS'
34660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34662ac_compiler_gnu=$ac_cv_c_compiler_gnu
34663
34664
34665fi
Reid Spencera773bd52006-08-04 18:18:08 +000034666{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34667echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034668if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034669
34670cat >>confdefs.h <<\_ACEOF
34671#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034672_ACEOF
34673
34674 MMAP_FILE=yes
34675
34676fi
34677
Reid Spencer30fe5262007-01-20 07:48:49 +000034678 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034679echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034680if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34681 echo $ECHO_N "(cached) $ECHO_C" >&6
34682else
Reid Spencer582a23c2004-12-29 07:07:57 +000034683 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034684 ac_cv_need_dev_zero_for_mmap=yes
34685 else
34686 ac_cv_need_dev_zero_for_mmap=no
34687 fi
34688
34689fi
Reid Spencera773bd52006-08-04 18:18:08 +000034690{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34691echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034692if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34693
34694cat >>confdefs.h <<\_ACEOF
34695#define NEED_DEV_ZERO_FOR_MMAP 1
34696_ACEOF
34697
34698fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034699
Reid Spencer30fe5262007-01-20 07:48:49 +000034700 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34701 then
34702 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034703echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034704 fi
34705 if test "$ac_cv_func_mmap_file" = "no"
34706 then
34707 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034708echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034709 fi
John Criswellb13092b2003-07-22 21:00:24 +000034710fi
John Criswell7a73b802003-06-30 21:59:07 +000034711
Owen Andersona8603702009-05-19 22:18:56 +000034712{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034713echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034714cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
34720int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034721 volatile unsigned long val = 1;
34722 __sync_synchronize();
34723 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034724 __sync_add_and_fetch(&val, 1);
34725 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034726 return 0;
34727 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034728
34729_ACEOF
34730rm -f conftest.$ac_objext conftest$ac_exeext
34731if { (ac_try="$ac_link"
34732case "(($ac_try" in
34733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34734 *) ac_try_echo=$ac_try;;
34735esac
34736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34737 (eval "$ac_link") 2>conftest.er1
34738 ac_status=$?
34739 grep -v '^ *+' conftest.er1 >conftest.err
34740 rm -f conftest.er1
34741 cat conftest.err >&5
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); } &&
34744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34745 { (case "(($ac_try" in
34746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747 *) ac_try_echo=$ac_try;;
34748esac
34749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750 (eval "$ac_try") 2>&5
34751 ac_status=$?
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; } &&
34754 { ac_try='test -s conftest$ac_exeext'
34755 { (case "(($ac_try" in
34756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757 *) ac_try_echo=$ac_try;;
34758esac
34759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760 (eval "$ac_try") 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 { echo "$as_me:$LINENO: result: yes" >&5
34765echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034766
34767cat >>confdefs.h <<\_ACEOF
34768#define LLVM_MULTITHREADED 1
34769_ACEOF
34770
Owen Andersond4b272b2009-05-18 23:58:51 +000034771else
34772 echo "$as_me: failed program was:" >&5
34773sed 's/^/| /' conftest.$ac_ext >&5
34774
34775 { echo "$as_me:$LINENO: result: no" >&5
34776echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034777
Owen Andersona8603702009-05-19 22:18:56 +000034778cat >>confdefs.h <<\_ACEOF
34779#define LLVM_MULTITHREADED 0
34780_ACEOF
34781
34782 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34783echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034784fi
34785
34786rm -f core conftest.err conftest.$ac_objext \
34787 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034788
34789
John Criswell7a73b802003-06-30 21:59:07 +000034790
Nick Lewycky4372e692009-09-29 06:18:23 +000034791if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34792 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34793echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34794if test "${llvm_cv_linux_mixed+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
34797 ac_ext=c
34798ac_cpp='$CPP $CPPFLAGS'
34799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34801ac_compiler_gnu=$ac_cv_c_compiler_gnu
34802
34803 cat >conftest.$ac_ext <<_ACEOF
34804/* confdefs.h. */
34805_ACEOF
34806cat confdefs.h >>conftest.$ac_ext
34807cat >>conftest.$ac_ext <<_ACEOF
34808/* end confdefs.h. */
34809#ifndef __x86_64__
34810 error: Not x86-64 even if uname says so!
34811 #endif
34812
34813int
34814main ()
34815{
34816
34817 ;
34818 return 0;
34819}
34820_ACEOF
34821rm -f conftest.$ac_objext
34822if { (ac_try="$ac_compile"
34823case "(($ac_try" in
34824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825 *) ac_try_echo=$ac_try;;
34826esac
34827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_compile") 2>conftest.er1
34829 ac_status=$?
34830 grep -v '^ *+' conftest.er1 >conftest.err
34831 rm -f conftest.er1
34832 cat conftest.err >&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836 { (case "(($ac_try" in
34837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34839esac
34840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841 (eval "$ac_try") 2>&5
34842 ac_status=$?
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest.$ac_objext'
34846 { (case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34849esac
34850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_try") 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 llvm_cv_linux_mixed=no
34856else
34857 echo "$as_me: failed program was:" >&5
34858sed 's/^/| /' conftest.$ac_ext >&5
34859
34860 llvm_cv_linux_mixed=yes
34861fi
34862
34863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864 ac_ext=c
34865ac_cpp='$CPP $CPPFLAGS'
34866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34868ac_compiler_gnu=$ac_cv_c_compiler_gnu
34869
34870
34871fi
34872{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34873echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34874
34875 if test "$llvm_cv_linux_mixed" = "yes"; then
34876 llvm_cv_target_arch="x86"
34877 ARCH="x86"
34878 fi
34879fi
34880
Reid Spencer9372f152007-07-30 20:13:24 +000034881
34882for ac_func in __dso_handle
34883do
34884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34888 echo $ECHO_N "(cached) $ECHO_C" >&6
34889else
34890 cat >conftest.$ac_ext <<_ACEOF
34891/* confdefs.h. */
34892_ACEOF
34893cat confdefs.h >>conftest.$ac_ext
34894cat >>conftest.$ac_ext <<_ACEOF
34895/* end confdefs.h. */
34896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34898#define $ac_func innocuous_$ac_func
34899
34900/* System header to define __stub macros and hopefully few prototypes,
34901 which can conflict with char $ac_func (); below.
34902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34903 <limits.h> exists even on freestanding compilers. */
34904
34905#ifdef __STDC__
34906# include <limits.h>
34907#else
34908# include <assert.h>
34909#endif
34910
34911#undef $ac_func
34912
34913/* Override any GCC internal prototype to avoid an error.
34914 Use char because int might match the return type of a GCC
34915 builtin and then its argument prototype would still apply. */
34916#ifdef __cplusplus
34917extern "C"
34918#endif
34919char $ac_func ();
34920/* The GNU C library defines this for functions which it implements
34921 to always fail with ENOSYS. Some functions are actually named
34922 something starting with __ and the normal name is an alias. */
34923#if defined __stub_$ac_func || defined __stub___$ac_func
34924choke me
34925#endif
34926
34927int
34928main ()
34929{
34930return $ac_func ();
34931 ;
34932 return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext conftest$ac_exeext
34936if { (ac_try="$ac_link"
34937case "(($ac_try" in
34938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34940esac
34941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942 (eval "$ac_link") 2>conftest.er1
34943 ac_status=$?
34944 grep -v '^ *+' conftest.er1 >conftest.err
34945 rm -f conftest.er1
34946 cat conftest.err >&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034948 (exit $ac_status); } &&
34949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34950 { (case "(($ac_try" in
34951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952 *) ac_try_echo=$ac_try;;
34953esac
34954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955 (eval "$ac_try") 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest$ac_exeext'
34960 { (case "(($ac_try" in
34961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962 *) ac_try_echo=$ac_try;;
34963esac
34964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965 (eval "$ac_try") 2>&5
34966 ac_status=$?
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034969 eval "$as_ac_var=yes"
34970else
34971 echo "$as_me: failed program was:" >&5
34972sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 eval "$as_ac_var=no"
34975fi
34976
Bill Wendlingebcceee2009-04-18 11:20:33 +000034977rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034978 conftest$ac_exeext conftest.$ac_ext
34979fi
34980ac_res=`eval echo '${'$as_ac_var'}'`
34981 { echo "$as_me:$LINENO: result: $ac_res" >&5
34982echo "${ECHO_T}$ac_res" >&6; }
34983if test `eval echo '${'$as_ac_var'}'` = yes; then
34984 cat >>confdefs.h <<_ACEOF
34985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34986_ACEOF
34987
34988fi
34989done
34990
34991
Reid Spencera773bd52006-08-04 18:18:08 +000034992{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34993echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034994if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
34996else
34997 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034998if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034999 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035000 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35001 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035002 if test $? -eq 0 ; then
35003 llvm_cv_llvmgcc_sanity="yes"
35004 fi
35005 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035006fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035007fi
Reid Spencera773bd52006-08-04 18:18:08 +000035008{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35009echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035010
35011if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035012 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35013echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035014 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035015 LLVMCC1=$llvmcc1path
35016
Reid Spencer502935f2004-12-22 05:56:56 +000035017 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035018 LLVMCC1PLUS=$llvmcc1pluspath
35019
Reid Spencer502935f2004-12-22 05:56:56 +000035020 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35021 LLVMGCCDIR=$llvmgccdir
35022
Reid Spencer282d8c12006-12-21 22:55:41 +000035023 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35024 LLVMGCCLIBEXEC=$llvmgcclibexec
35025
Reid Spencerb5d75b82006-05-09 00:31:01 +000035026 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035027 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35028 LLVMGCC_VERSION=$llvmgccversion
35029
35030 LLVMGCC_MAJVERS=$llvmgccmajvers
35031
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035032 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035033 LLVMGCC_LANGS=$llvmgcclangs
35034
35035 { echo "$as_me:$LINENO: result: ok" >&5
35036echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035037fi
35038
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035039SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035040
35041
Reid Spencere9de0912004-08-20 09:03:57 +000035042# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035043# information into substitutions that will end up in Makefile.config.in
35044# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035045if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035046 prefix="/usr/local"
35047fi
Reid Spencere9de0912004-08-20 09:03:57 +000035048eval LLVM_PREFIX="${prefix}";
35049eval LLVM_BINDIR="${prefix}/bin";
35050eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035051eval LLVM_DATADIR="${prefix}/share/llvm";
35052eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35053eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035054eval LLVM_INCLUDEDIR="${prefix}/include";
35055eval LLVM_INFODIR="${prefix}/info";
35056eval LLVM_MANDIR="${prefix}/man";
35057LLVM_CONFIGTIME=`date`
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035069# Place the various directores into the config.h file as #defines so that we
35070# can know about the installation paths within LLVM.
35071
Reid Spencere9de0912004-08-20 09:03:57 +000035072cat >>confdefs.h <<_ACEOF
35073#define LLVM_PREFIX "$LLVM_PREFIX"
35074_ACEOF
35075
35076
35077cat >>confdefs.h <<_ACEOF
35078#define LLVM_BINDIR "$LLVM_BINDIR"
35079_ACEOF
35080
35081
35082cat >>confdefs.h <<_ACEOF
35083#define LLVM_LIBDIR "$LLVM_LIBDIR"
35084_ACEOF
35085
35086
35087cat >>confdefs.h <<_ACEOF
35088#define LLVM_DATADIR "$LLVM_DATADIR"
35089_ACEOF
35090
35091
35092cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035093#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035094_ACEOF
35095
35096
35097cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035098#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035099_ACEOF
35100
35101
35102cat >>confdefs.h <<_ACEOF
35103#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35104_ACEOF
35105
35106
35107cat >>confdefs.h <<_ACEOF
35108#define LLVM_INFODIR "$LLVM_INFODIR"
35109_ACEOF
35110
35111
35112cat >>confdefs.h <<_ACEOF
35113#define LLVM_MANDIR "$LLVM_MANDIR"
35114_ACEOF
35115
35116
35117cat >>confdefs.h <<_ACEOF
35118#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35119_ACEOF
35120
35121
Eric Christopher790e11c2007-12-01 00:34:39 +000035122cat >>confdefs.h <<_ACEOF
35123#define LLVM_HOSTTRIPLE "$host"
35124_ACEOF
35125
35126
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035127# Determine which bindings to build.
35128if test "$BINDINGS_TO_BUILD" = auto ; then
35129 BINDINGS_TO_BUILD=""
35130 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35131 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35132 fi
35133fi
35134BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35135
35136
35137# This isn't really configurey, but it avoids having to repeat the list in
35138# other files.
35139ALL_BINDINGS=ocaml
35140
35141
Gordon Henriksenf0915682007-10-02 16:42:22 +000035142# Do any work necessary to ensure that bindings have what they need.
35143binding_prereqs_failed=0
35144for a_binding in $BINDINGS_TO_BUILD ; do
35145 case "$a_binding" in
35146 ocaml)
35147 if test "x$OCAMLC" = x ; then
35148 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35149echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35150 binding_prereqs_failed=1
35151 fi
35152 if test "x$OCAMLDEP" = x ; then
35153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35154echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35155 binding_prereqs_failed=1
35156 fi
35157 if test "x$OCAMLOPT" = x ; then
35158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35159echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35160 fi
35161 if test "x$with_ocaml_libdir" != xauto ; then
35162 OCAML_LIBDIR=$with_ocaml_libdir
35163
35164 else
35165 ocaml_stdlib="`"$OCAMLC" -where`"
35166 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35167 then
35168 # ocaml stdlib is beneath our prefix; use stdlib
35169 OCAML_LIBDIR=$ocaml_stdlib
35170
35171 else
35172 # ocaml stdlib is outside our prefix; use libdir/ocaml
35173 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35174
35175 fi
35176 fi
35177 ;;
35178 esac
35179done
35180if test "$binding_prereqs_failed" = 1 ; then
35181 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35182echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35183 { (exit 1); exit 1; }; }
35184fi
35185
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035186{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35187echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35188if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35189 echo $ECHO_N "(cached) $ECHO_C" >&6
35190else
35191 ac_ext=cpp
35192ac_cpp='$CXXCPP $CPPFLAGS'
35193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35196
35197 oldcxxflags="$CXXFLAGS"
35198 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35199 cat >conftest.$ac_ext <<_ACEOF
35200/* confdefs.h. */
35201_ACEOF
35202cat confdefs.h >>conftest.$ac_ext
35203cat >>conftest.$ac_ext <<_ACEOF
35204/* end confdefs.h. */
35205
35206int
35207main ()
35208{
35209
35210 ;
35211 return 0;
35212}
35213_ACEOF
35214rm -f conftest.$ac_objext
35215if { (ac_try="$ac_compile"
35216case "(($ac_try" in
35217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35218 *) ac_try_echo=$ac_try;;
35219esac
35220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221 (eval "$ac_compile") 2>conftest.er1
35222 ac_status=$?
35223 grep -v '^ *+' conftest.er1 >conftest.err
35224 rm -f conftest.er1
35225 cat conftest.err >&5
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035227 (exit $ac_status); } &&
35228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35229 { (case "(($ac_try" in
35230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35231 *) ac_try_echo=$ac_try;;
35232esac
35233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234 (eval "$ac_try") 2>&5
35235 ac_status=$?
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); }; } &&
35238 { ac_try='test -s conftest.$ac_objext'
35239 { (case "(($ac_try" in
35240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241 *) ac_try_echo=$ac_try;;
35242esac
35243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244 (eval "$ac_try") 2>&5
35245 ac_status=$?
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035248 llvm_cv_cxx_visibility_inlines_hidden=yes
35249else
35250 echo "$as_me: failed program was:" >&5
35251sed 's/^/| /' conftest.$ac_ext >&5
35252
35253 llvm_cv_cxx_visibility_inlines_hidden=no
35254fi
35255
35256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35257 CXXFLAGS="$oldcxxflags"
35258 ac_ext=c
35259ac_cpp='$CPP $CPPFLAGS'
35260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35262ac_compiler_gnu=$ac_cv_c_compiler_gnu
35263
35264
35265fi
35266{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35267echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35268if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35269 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35270
35271else
35272 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35273
35274fi
35275
Gordon Henriksenf0915682007-10-02 16:42:22 +000035276
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035277if test "$llvm_cv_link_use_r" = "yes" ; then
35278 RPATH="-Wl,-R"
35279else
35280 RPATH="-Wl,-rpath"
35281fi
35282
35283
35284if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35285 RDYNAMIC="-Wl,-export-dynamic"
35286else
35287 RDYNAMIC=""
35288fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035289
35290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035291
Reid Spencera773bd52006-08-04 18:18:08 +000035292ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035293
Douglas Gregor1555a232009-06-16 20:12:29 +000035294ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35295
35296ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35297
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035298ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35299
Chandler Carruth8b67f772009-10-26 01:35:46 +000035300ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035301
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035302
Reid Spencera773bd52006-08-04 18:18:08 +000035303ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035304
35305
Reid Spencerea949cf2006-08-16 00:45:38 +000035306ac_config_files="$ac_config_files llvm.spec"
35307
35308
Reid Spencera773bd52006-08-04 18:18:08 +000035309ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035310
35311
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035312ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35313
35314
Reid Spencera773bd52006-08-04 18:18:08 +000035315ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035316
35317
Reid Spencera773bd52006-08-04 18:18:08 +000035318ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035319
Reid Spencera773bd52006-08-04 18:18:08 +000035320ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035321
35322
Reid Spencera773bd52006-08-04 18:18:08 +000035323ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035324
35325
Reid Spencera773bd52006-08-04 18:18:08 +000035326ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035327
35328
Reid Spencera773bd52006-08-04 18:18:08 +000035329ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035330
35331
Reid Spencer8b2e1412006-11-17 03:32:33 +000035332ac_config_commands="$ac_config_commands runtime/Makefile"
35333
35334
Reid Spencera773bd52006-08-04 18:18:08 +000035335ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035336
35337
Reid Spencera773bd52006-08-04 18:18:08 +000035338ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035339
35340
Bill Wendlingf24eb392009-01-04 23:12:30 +000035341ac_config_commands="$ac_config_commands unittests/Makefile"
35342
35343
Reid Spencera773bd52006-08-04 18:18:08 +000035344ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035345
35346
Reid Spencera773bd52006-08-04 18:18:08 +000035347ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035348
35349
Reid Spencera773bd52006-08-04 18:18:08 +000035350ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035351
35352
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035353ac_config_commands="$ac_config_commands bindings/Makefile"
35354
35355
35356ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35357
35358
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035359
John Criswell7a73b802003-06-30 21:59:07 +000035360cat >confcache <<\_ACEOF
35361# This file is a shell script that caches the results of configure
35362# tests run on this system so they can be shared between configure
35363# scripts and configure runs, see configure's option --config-cache.
35364# It is not useful on other systems. If it contains results you don't
35365# want to keep, you may remove or edit it.
35366#
35367# config.status only pays attention to the cache file if you give it
35368# the --recheck option to rerun configure.
35369#
John Criswell0c38eaf2003-09-10 15:17:25 +000035370# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035371# loading this file, other *unset* `ac_cv_foo' will be assigned the
35372# following values.
35373
35374_ACEOF
35375
35376# The following way of writing the cache mishandles newlines in values,
35377# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035378# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035379# Ultrix sh set writes to stderr and can't be redirected directly,
35380# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035381(
35382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35383 eval ac_val=\$$ac_var
35384 case $ac_val in #(
35385 *${as_nl}*)
35386 case $ac_var in #(
35387 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35388echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35389 esac
35390 case $ac_var in #(
35391 _ | IFS | as_nl) ;; #(
35392 *) $as_unset $ac_var ;;
35393 esac ;;
35394 esac
35395 done
35396
John Criswell7a73b802003-06-30 21:59:07 +000035397 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35399 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035400 # `set' does not quote correctly, so add quotes (double-quote
35401 # substitution turns \\\\ into \\, and sed turns \\ into \).
35402 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035403 "s/'/'\\\\''/g;
35404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035405 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035406 *)
35407 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035409 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035410 esac |
35411 sort
35412) |
John Criswell7a73b802003-06-30 21:59:07 +000035413 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035414 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035415 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035416 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35418 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35420 :end' >>confcache
35421if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35422 if test -w "$cache_file"; then
35423 test "x$cache_file" != "x/dev/null" &&
35424 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35425echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035426 cat confcache >$cache_file
35427 else
Reid Spencera773bd52006-08-04 18:18:08 +000035428 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35429echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035430 fi
35431fi
35432rm -f confcache
35433
35434test "x$prefix" = xNONE && prefix=$ac_default_prefix
35435# Let make expand exec_prefix.
35436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35437
John Criswell7a73b802003-06-30 21:59:07 +000035438DEFS=-DHAVE_CONFIG_H
35439
John Criswell0c38eaf2003-09-10 15:17:25 +000035440ac_libobjs=
35441ac_ltlibobjs=
35442for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35443 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35445 ac_i=`echo "$ac_i" | sed "$ac_script"`
35446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35447 # will be set to the directory where LIBOBJS objects are built.
35448 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35449 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035450done
35451LIBOBJS=$ac_libobjs
35452
35453LTLIBOBJS=$ac_ltlibobjs
35454
35455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035456if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35457 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35458Usually this means the macro was only invoked conditionally." >&5
35459echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35460Usually this means the macro was only invoked conditionally." >&2;}
35461 { (exit 1); exit 1; }; }
35462fi
35463if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35464 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35465Usually this means the macro was only invoked conditionally." >&5
35466echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35467Usually this means the macro was only invoked conditionally." >&2;}
35468 { (exit 1); exit 1; }; }
35469fi
John Criswell7a73b802003-06-30 21:59:07 +000035470
35471: ${CONFIG_STATUS=./config.status}
35472ac_clean_files_save=$ac_clean_files
35473ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35474{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35475echo "$as_me: creating $CONFIG_STATUS" >&6;}
35476cat >$CONFIG_STATUS <<_ACEOF
35477#! $SHELL
35478# Generated by $as_me.
35479# Run this file to recreate the current configuration.
35480# Compiler output produced by configure, useful for debugging
35481# configure, is in config.log if it exists.
35482
35483debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035484ac_cs_recheck=false
35485ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035486SHELL=\${CONFIG_SHELL-$SHELL}
35487_ACEOF
35488
35489cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035490## --------------------- ##
35491## M4sh Initialization. ##
35492## --------------------- ##
35493
Bill Wendlingebcceee2009-04-18 11:20:33 +000035494# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35496 emulate sh
35497 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035498 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35499 # is contrary to our usage. Disable this feature.
35500 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035501 setopt NO_GLOB_SUBST
35502else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035503 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035504fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035505BIN_SH=xpg4; export BIN_SH # for Tru64
35506DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035507
John Criswell7a73b802003-06-30 21:59:07 +000035508
Reid Spencera773bd52006-08-04 18:18:08 +000035509# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035510# Avoid depending upon Character Ranges.
35511as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35513as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35514as_cr_digits='0123456789'
35515as_cr_alnum=$as_cr_Letters$as_cr_digits
35516
35517# The user is always right.
35518if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035519 echo "#! /bin/sh" >conf$$.sh
35520 echo "exit 0" >>conf$$.sh
35521 chmod +x conf$$.sh
35522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035523 PATH_SEPARATOR=';'
35524 else
35525 PATH_SEPARATOR=:
35526 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035527 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035528fi
35529
Reid Spencera773bd52006-08-04 18:18:08 +000035530# Support unset when possible.
35531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35532 as_unset=unset
35533else
35534 as_unset=false
35535fi
John Criswell7a73b802003-06-30 21:59:07 +000035536
Reid Spencera773bd52006-08-04 18:18:08 +000035537
35538# IFS
35539# We need space, tab and new line, in precisely that order. Quoting is
35540# there to prevent editors from complaining about space-tab.
35541# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35542# splitting by setting IFS to empty value.)
35543as_nl='
35544'
35545IFS=" "" $as_nl"
35546
35547# Find who we are. Look in the path if we contain no directory separator.
35548case $0 in
35549 *[\\/]* ) as_myself=$0 ;;
35550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035551for as_dir in $PATH
35552do
35553 IFS=$as_save_IFS
35554 test -z "$as_dir" && as_dir=.
35555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35556done
Reid Spencera773bd52006-08-04 18:18:08 +000035557IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035558
Reid Spencera773bd52006-08-04 18:18:08 +000035559 ;;
35560esac
35561# We did not find ourselves, most probably we were run as `sh COMMAND'
35562# in which case we are not to be found in the path.
35563if test "x$as_myself" = x; then
35564 as_myself=$0
35565fi
35566if test ! -f "$as_myself"; then
35567 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35568 { (exit 1); exit 1; }
35569fi
35570
35571# Work around bugs in pre-3.0 UWIN ksh.
35572for as_var in ENV MAIL MAILPATH
35573do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35574done
35575PS1='$ '
35576PS2='> '
35577PS4='+ '
35578
35579# NLS nuisances.
35580for as_var in \
35581 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35582 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35583 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035584do
Reid Spencera773bd52006-08-04 18:18:08 +000035585 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35586 eval $as_var=C; export $as_var
35587 else
35588 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35589 fi
35590done
35591
35592# Required to use basename.
35593if expr a : '\(a\)' >/dev/null 2>&1 &&
35594 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35595 as_expr=expr
35596else
35597 as_expr=false
35598fi
35599
35600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35601 as_basename=basename
35602else
35603 as_basename=false
35604fi
35605
35606
35607# Name of the executable.
35608as_me=`$as_basename -- "$0" ||
35609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35610 X"$0" : 'X\(//\)$' \| \
35611 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35612echo X/"$0" |
35613 sed '/^.*\/\([^/][^/]*\)\/*$/{
35614 s//\1/
35615 q
35616 }
35617 /^X\/\(\/\/\)$/{
35618 s//\1/
35619 q
35620 }
35621 /^X\/\(\/\).*/{
35622 s//\1/
35623 q
35624 }
35625 s/.*/./; q'`
35626
35627# CDPATH.
35628$as_unset CDPATH
35629
35630
35631
John Criswell7a73b802003-06-30 21:59:07 +000035632 as_lineno_1=$LINENO
35633 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035634 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035635 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035636
35637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35638 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035639 # line-number line after each line using $LINENO; the second 'sed'
35640 # does the real work. The second script uses 'N' to pair each
35641 # line-number line with the line containing $LINENO, and appends
35642 # trailing '-' during substitution so that $LINENO is not a special
35643 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035644 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035645 # scripts with optimization help from Paolo Bonzini. Blame Lee
35646 # E. McMahon (1931-1989) for sed's syntax. :-)
35647 sed -n '
35648 p
35649 /[$]LINENO/=
35650 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035651 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035652 s/[$]LINENO.*/&-/
35653 t lineno
35654 b
35655 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035656 N
Reid Spencera773bd52006-08-04 18:18:08 +000035657 :loop
35658 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035659 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035660 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035661 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035662 chmod +x "$as_me.lineno" ||
35663 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035664 { (exit 1); exit 1; }; }
35665
35666 # Don't try to exec as it changes $[0], causing all sort of problems
35667 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035668 # original and so on. Autoconf is especially sensitive to this).
35669 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035670 # Exit status is that of the last command.
35671 exit
35672}
35673
35674
Reid Spencera773bd52006-08-04 18:18:08 +000035675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35676 as_dirname=dirname
35677else
35678 as_dirname=false
35679fi
35680
35681ECHO_C= ECHO_N= ECHO_T=
35682case `echo -n x` in
35683-n*)
35684 case `echo 'x\c'` in
35685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35686 *) ECHO_C='\c';;
35687 esac;;
35688*)
35689 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035690esac
35691
Reid Spencera773bd52006-08-04 18:18:08 +000035692if expr a : '\(a\)' >/dev/null 2>&1 &&
35693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035694 as_expr=expr
35695else
35696 as_expr=false
35697fi
35698
35699rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035700if test -d conf$$.dir; then
35701 rm -f conf$$.dir/conf$$.file
35702else
35703 rm -f conf$$.dir
35704 mkdir conf$$.dir
35705fi
John Criswell7a73b802003-06-30 21:59:07 +000035706echo >conf$$.file
35707if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035708 as_ln_s='ln -s'
35709 # ... but there are two gotchas:
35710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35712 # In both cases, we have to default to `cp -p'.
35713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035714 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035715elif ln conf$$.file conf$$ 2>/dev/null; then
35716 as_ln_s=ln
35717else
35718 as_ln_s='cp -p'
35719fi
Reid Spencera773bd52006-08-04 18:18:08 +000035720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35721rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035722
John Criswell0c38eaf2003-09-10 15:17:25 +000035723if mkdir -p . 2>/dev/null; then
35724 as_mkdir_p=:
35725else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035726 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035727 as_mkdir_p=false
35728fi
35729
Bill Wendlingebcceee2009-04-18 11:20:33 +000035730# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35731# systems may use methods other than mode bits to determine executability.
35732cat >conf$$.file <<_ASEOF
35733#! /bin/sh
35734exit 0
35735_ASEOF
35736chmod +x conf$$.file
35737if test -x conf$$.file >/dev/null 2>&1; then
35738 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035739else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035740 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035741fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035742rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035743
35744# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035746
35747# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035749
35750
John Criswell7a73b802003-06-30 21:59:07 +000035751exec 6>&1
35752
Reid Spencera773bd52006-08-04 18:18:08 +000035753# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035754# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035755# values after options handling.
35756ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035757This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035758generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035759
35760 CONFIG_FILES = $CONFIG_FILES
35761 CONFIG_HEADERS = $CONFIG_HEADERS
35762 CONFIG_LINKS = $CONFIG_LINKS
35763 CONFIG_COMMANDS = $CONFIG_COMMANDS
35764 $ $0 $@
35765
Reid Spencera773bd52006-08-04 18:18:08 +000035766on `(hostname || uname -n) 2>/dev/null | sed 1q`
35767"
35768
John Criswell7a73b802003-06-30 21:59:07 +000035769_ACEOF
35770
Reid Spencera773bd52006-08-04 18:18:08 +000035771cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035772# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035773config_files="$ac_config_files"
35774config_headers="$ac_config_headers"
35775config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035776
Reid Spencera773bd52006-08-04 18:18:08 +000035777_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035778
35779cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035780ac_cs_usage="\
35781\`$as_me' instantiates files from templates according to the
35782current configuration.
35783
35784Usage: $0 [OPTIONS] [FILE]...
35785
35786 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035787 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035788 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035789 -d, --debug don't remove temporary files
35790 --recheck update $as_me by reconfiguring in the same conditions
35791 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035792 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035793 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035794 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035795
35796Configuration files:
35797$config_files
35798
35799Configuration headers:
35800$config_headers
35801
John Criswellc764fbc2003-09-06 15:17:13 +000035802Configuration commands:
35803$config_commands
35804
John Criswell7a73b802003-06-30 21:59:07 +000035805Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035806
Reid Spencera773bd52006-08-04 18:18:08 +000035807_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035808cat >>$CONFIG_STATUS <<_ACEOF
35809ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035810llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035811configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035812 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035813
Reid Spencera773bd52006-08-04 18:18:08 +000035814Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035815This config.status script is free software; the Free Software Foundation
35816gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035817
35818ac_pwd='$ac_pwd'
35819srcdir='$srcdir'
35820INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035821_ACEOF
35822
35823cat >>$CONFIG_STATUS <<\_ACEOF
35824# If no file are specified by the user, then we need to provide default
35825# value. By we need to know if files were specified by the user.
35826ac_need_defaults=:
35827while test $# != 0
35828do
35829 case $1 in
35830 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035833 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035835 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035836 ac_option=$1
35837 ac_optarg=$2
35838 ac_shift=shift
35839 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035840 esac
35841
John Criswell0c38eaf2003-09-10 15:17:25 +000035842 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035843 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35845 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035846 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35847 echo "$ac_cs_version"; exit ;;
35848 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035849 debug=: ;;
35850 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035851 $ac_shift
35852 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035853 ac_need_defaults=false;;
35854 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035855 $ac_shift
35856 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035857 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035858 --he | --h)
35859 # Conflict between --help and --header
35860 { echo "$as_me: error: ambiguous option: $1
35861Try \`$0 --help' for more information." >&2
35862 { (exit 1); exit 1; }; };;
35863 --help | --hel | -h )
35864 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35867 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035868
35869 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035870 -*) { echo "$as_me: error: unrecognized option: $1
35871Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035872 { (exit 1); exit 1; }; } ;;
35873
Reid Spencera773bd52006-08-04 18:18:08 +000035874 *) ac_config_targets="$ac_config_targets $1"
35875 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035876
35877 esac
35878 shift
35879done
35880
John Criswell0c38eaf2003-09-10 15:17:25 +000035881ac_configure_extra_args=
35882
35883if $ac_cs_silent; then
35884 exec 6>/dev/null
35885 ac_configure_extra_args="$ac_configure_extra_args --silent"
35886fi
35887
35888_ACEOF
35889cat >>$CONFIG_STATUS <<_ACEOF
35890if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035891 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35892 CONFIG_SHELL=$SHELL
35893 export CONFIG_SHELL
35894 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035895fi
35896
John Criswell7a73b802003-06-30 21:59:07 +000035897_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035898cat >>$CONFIG_STATUS <<\_ACEOF
35899exec 5>>config.log
35900{
35901 echo
35902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35903## Running $as_me. ##
35904_ASBOX
35905 echo "$ac_log"
35906} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035907
Reid Spencera773bd52006-08-04 18:18:08 +000035908_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035909cat >>$CONFIG_STATUS <<_ACEOF
35910#
Reid Spencera773bd52006-08-04 18:18:08 +000035911# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035912#
Reid Spencerc0682832005-02-24 19:05:19 +000035913llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035914
35915_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035916
John Criswell7a73b802003-06-30 21:59:07 +000035917cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035918
35919# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035920for ac_config_target in $ac_config_targets
35921do
Reid Spencera773bd52006-08-04 18:18:08 +000035922 case $ac_config_target in
35923 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035924 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35925 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035926 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000035927 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035928 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035929 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035930 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035931 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035932 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35933 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35934 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35935 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35936 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35937 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035938 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035939 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35940 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035941 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035942 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35943 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35944 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035945 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35946 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035947
John Criswell7a73b802003-06-30 21:59:07 +000035948 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35949echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35950 { (exit 1); exit 1; }; };;
35951 esac
35952done
35953
Reid Spencera773bd52006-08-04 18:18:08 +000035954
John Criswell7a73b802003-06-30 21:59:07 +000035955# If the user did not use the arguments to specify the items to instantiate,
35956# then the envvar interface is used. Set only those that are not.
35957# We use the long form for the default assignment because of an extremely
35958# bizarre bug on SunOS 4.1.3.
35959if $ac_need_defaults; then
35960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035963fi
35964
John Criswell0c38eaf2003-09-10 15:17:25 +000035965# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035966# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035967# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035968# Hook for its removal unless debugging.
35969# Note that there is a small window in which the directory will not be cleaned:
35970# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035971$debug ||
35972{
Reid Spencera773bd52006-08-04 18:18:08 +000035973 tmp=
35974 trap 'exit_status=$?
35975 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35976' 0
John Criswell7a73b802003-06-30 21:59:07 +000035977 trap '{ (exit 1); exit 1; }' 1 2 13 15
35978}
John Criswell7a73b802003-06-30 21:59:07 +000035979# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035980
John Criswell7a73b802003-06-30 21:59:07 +000035981{
Reid Spencera773bd52006-08-04 18:18:08 +000035982 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035983 test -n "$tmp" && test -d "$tmp"
35984} ||
35985{
Reid Spencera773bd52006-08-04 18:18:08 +000035986 tmp=./conf$$-$RANDOM
35987 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035988} ||
35989{
John Criswell0c38eaf2003-09-10 15:17:25 +000035990 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035991 { (exit 1); exit 1; }
35992}
35993
John Criswell7a73b802003-06-30 21:59:07 +000035994#
Reid Spencera773bd52006-08-04 18:18:08 +000035995# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035996#
35997
35998# No need to generate the scripts if there are no CONFIG_FILES.
35999# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036000if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036001
36002_ACEOF
36003
Reid Spencera773bd52006-08-04 18:18:08 +000036004
36005
36006ac_delim='%!_!# '
36007for ac_last_try in false false false false false :; do
36008 cat >conf$$subs.sed <<_ACEOF
36009SHELL!$SHELL$ac_delim
36010PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36011PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36012PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36013PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36014PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36015PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36016exec_prefix!$exec_prefix$ac_delim
36017prefix!$prefix$ac_delim
36018program_transform_name!$program_transform_name$ac_delim
36019bindir!$bindir$ac_delim
36020sbindir!$sbindir$ac_delim
36021libexecdir!$libexecdir$ac_delim
36022datarootdir!$datarootdir$ac_delim
36023datadir!$datadir$ac_delim
36024sysconfdir!$sysconfdir$ac_delim
36025sharedstatedir!$sharedstatedir$ac_delim
36026localstatedir!$localstatedir$ac_delim
36027includedir!$includedir$ac_delim
36028oldincludedir!$oldincludedir$ac_delim
36029docdir!$docdir$ac_delim
36030infodir!$infodir$ac_delim
36031htmldir!$htmldir$ac_delim
36032dvidir!$dvidir$ac_delim
36033pdfdir!$pdfdir$ac_delim
36034psdir!$psdir$ac_delim
36035libdir!$libdir$ac_delim
36036localedir!$localedir$ac_delim
36037mandir!$mandir$ac_delim
36038DEFS!$DEFS$ac_delim
36039ECHO_C!$ECHO_C$ac_delim
36040ECHO_N!$ECHO_N$ac_delim
36041ECHO_T!$ECHO_T$ac_delim
36042LIBS!$LIBS$ac_delim
36043build_alias!$build_alias$ac_delim
36044host_alias!$host_alias$ac_delim
36045target_alias!$target_alias$ac_delim
36046LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36047subdirs!$subdirs$ac_delim
36048build!$build$ac_delim
36049build_cpu!$build_cpu$ac_delim
36050build_vendor!$build_vendor$ac_delim
36051build_os!$build_os$ac_delim
36052host!$host$ac_delim
36053host_cpu!$host_cpu$ac_delim
36054host_vendor!$host_vendor$ac_delim
36055host_os!$host_os$ac_delim
36056target!$target$ac_delim
36057target_cpu!$target_cpu$ac_delim
36058target_vendor!$target_vendor$ac_delim
36059target_os!$target_os$ac_delim
36060OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036061HOST_OS!$HOST_OS$ac_delim
36062TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036063LINKALL!$LINKALL$ac_delim
36064NOLINKALL!$NOLINKALL$ac_delim
36065LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36066LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036067ARCH!$ARCH$ac_delim
36068ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036069CC!$CC$ac_delim
36070CFLAGS!$CFLAGS$ac_delim
36071LDFLAGS!$LDFLAGS$ac_delim
36072CPPFLAGS!$CPPFLAGS$ac_delim
36073ac_ct_CC!$ac_ct_CC$ac_delim
36074EXEEXT!$EXEEXT$ac_delim
36075OBJEXT!$OBJEXT$ac_delim
36076CPP!$CPP$ac_delim
36077GREP!$GREP$ac_delim
36078EGREP!$EGREP$ac_delim
36079LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36080BUILD_CC!$BUILD_CC$ac_delim
36081BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036082BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036083CVSBUILD!$CVSBUILD$ac_delim
36084ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036085ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036086DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036087ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36088EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036089DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036090DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036091JIT!$JIT$ac_delim
36092TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036095ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036096TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036097LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036099LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036100ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036101OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036102EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036103BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036104ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36105ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036106_ACEOF
36107
36108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36109 break
36110 elif $ac_last_try; then
36111 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36112echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36113 { (exit 1); exit 1; }; }
36114 else
36115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036116 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036117done
36118
36119ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36120if test -n "$ac_eof"; then
36121 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36122 ac_eof=`expr $ac_eof + 1`
36123fi
36124
36125cat >>$CONFIG_STATUS <<_ACEOF
36126cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36128_ACEOF
36129sed '
36130s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36131s/^/s,@/; s/!/@,|#_!!_#|/
36132:n
36133t n
36134s/'"$ac_delim"'$/,g/; t
36135s/$/\\/; p
36136N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36137' >>$CONFIG_STATUS <conf$$subs.sed
36138rm -f conf$$subs.sed
36139cat >>$CONFIG_STATUS <<_ACEOF
36140CEOF$ac_eof
36141_ACEOF
36142
36143
36144ac_delim='%!_!# '
36145for ac_last_try in false false false false false :; do
36146 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036147CXX!$CXX$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036148CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036149ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036150NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036151ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036152LN_S!$LN_S$ac_delim
36153CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036154CP!$CP$ac_delim
36155DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036156FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036157MKDIR!$MKDIR$ac_delim
36158MV!$MV$ac_delim
36159RANLIB!$RANLIB$ac_delim
36160RM!$RM$ac_delim
36161SED!$SED$ac_delim
36162TAR!$TAR$ac_delim
36163BINPWD!$BINPWD$ac_delim
36164GRAPHVIZ!$GRAPHVIZ$ac_delim
36165DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036166FDP!$FDP$ac_delim
36167NEATO!$NEATO$ac_delim
36168TWOPI!$TWOPI$ac_delim
36169CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036170GV!$GV$ac_delim
36171DOTTY!$DOTTY$ac_delim
36172PERL!$PERL$ac_delim
36173HAVE_PERL!$HAVE_PERL$ac_delim
36174INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36175INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36176INSTALL_DATA!$INSTALL_DATA$ac_delim
36177BZIP2!$BZIP2$ac_delim
36178DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036179GROFF!$GROFF$ac_delim
36180GZIP!$GZIP$ac_delim
36181POD2HTML!$POD2HTML$ac_delim
36182POD2MAN!$POD2MAN$ac_delim
36183RUNTEST!$RUNTEST$ac_delim
36184TCLSH!$TCLSH$ac_delim
36185ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036186OCAMLC!$OCAMLC$ac_delim
36187OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036188OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036189OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036190GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036191INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36192INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36193CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36194CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36195LIBADD_DL!$LIBADD_DL$ac_delim
36196ECHO!$ECHO$ac_delim
36197AR!$AR$ac_delim
36198STRIP!$STRIP$ac_delim
36199CXXCPP!$CXXCPP$ac_delim
36200F77!$F77$ac_delim
36201FFLAGS!$FFLAGS$ac_delim
36202ac_ct_F77!$ac_ct_F77$ac_delim
36203LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036204LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36205LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036206LLVMGCC!$LLVMGCC$ac_delim
36207LLVMGXX!$LLVMGXX$ac_delim
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036208NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36209NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036210USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036211USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036212HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036213HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036214ALLOCA!$ALLOCA$ac_delim
36215MMAP_FILE!$MMAP_FILE$ac_delim
36216LLVMCC1!$LLVMCC1$ac_delim
36217LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36218LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036219LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036220LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36221LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036222LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036223SHLIBEXT!$SHLIBEXT$ac_delim
36224LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36225LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36226LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36227LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36228LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36229LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36230LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36231LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36232LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36233LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036234BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36235ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036236OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036237ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036238RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036239RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036240LIBOBJS!$LIBOBJS$ac_delim
36241LTLIBOBJS!$LTLIBOBJS$ac_delim
36242_ACEOF
36243
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036244 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Reid Spencera773bd52006-08-04 18:18:08 +000036245 break
36246 elif $ac_last_try; then
36247 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36248echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36249 { (exit 1); exit 1; }; }
36250 else
36251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36252 fi
36253done
36254
36255ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36256if test -n "$ac_eof"; then
36257 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36258 ac_eof=`expr $ac_eof + 1`
36259fi
36260
36261cat >>$CONFIG_STATUS <<_ACEOF
36262cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36263/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36264_ACEOF
36265sed '
36266s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36267s/^/s,@/; s/!/@,|#_!!_#|/
36268:n
36269t n
36270s/'"$ac_delim"'$/,g/; t
36271s/$/\\/; p
36272N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36273' >>$CONFIG_STATUS <conf$$subs.sed
36274rm -f conf$$subs.sed
36275cat >>$CONFIG_STATUS <<_ACEOF
36276:end
36277s/|#_!!_#|//g
36278CEOF$ac_eof
36279_ACEOF
36280
36281
36282# VPATH may cause trouble with some makes, so we remove $(srcdir),
36283# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36284# trailing colons and then remove the whole line if VPATH becomes empty
36285# (actually we leave an empty line to preserve line numbers).
36286if test "x$srcdir" = x.; then
36287 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36288s/:*\$(srcdir):*/:/
36289s/:*\${srcdir}:*/:/
36290s/:*@srcdir@:*/:/
36291s/^\([^=]*=[ ]*\):*/\1/
36292s/:*$//
36293s/^[^=]*=[ ]*$//
36294}'
36295fi
36296
36297cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036298fi # test -n "$CONFIG_FILES"
36299
Reid Spencera773bd52006-08-04 18:18:08 +000036300
36301for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36302do
36303 case $ac_tag in
36304 :[FHLC]) ac_mode=$ac_tag; continue;;
36305 esac
36306 case $ac_mode$ac_tag in
36307 :[FHL]*:*);;
36308 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36309echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36310 { (exit 1); exit 1; }; };;
36311 :[FH]-) ac_tag=-:-;;
36312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36313 esac
36314 ac_save_IFS=$IFS
36315 IFS=:
36316 set x $ac_tag
36317 IFS=$ac_save_IFS
36318 shift
36319 ac_file=$1
36320 shift
36321
36322 case $ac_mode in
36323 :L) ac_source=$1;;
36324 :[FH])
36325 ac_file_inputs=
36326 for ac_f
36327 do
36328 case $ac_f in
36329 -) ac_f="$tmp/stdin";;
36330 *) # Look for the file first in the build tree, then in the source tree
36331 # (if the path is not absolute). The absolute path cannot be DOS-style,
36332 # because $ac_f cannot contain `:'.
36333 test -f "$ac_f" ||
36334 case $ac_f in
36335 [\\/$]*) false;;
36336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36337 esac ||
36338 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36339echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36340 { (exit 1); exit 1; }; };;
36341 esac
36342 ac_file_inputs="$ac_file_inputs $ac_f"
36343 done
36344
36345 # Let's still pretend it is `configure' which instantiates (i.e., don't
36346 # use $as_me), people would be surprised to read:
36347 # /* config.h. Generated by config.status. */
36348 configure_input="Generated from "`IFS=:
36349 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36350 if test x"$ac_file" != x-; then
36351 configure_input="$ac_file. $configure_input"
36352 { echo "$as_me:$LINENO: creating $ac_file" >&5
36353echo "$as_me: creating $ac_file" >&6;}
36354 fi
36355
36356 case $ac_tag in
36357 *:-:* | *:-) cat >"$tmp/stdin";;
36358 esac
36359 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036360 esac
36361
Reid Spencera773bd52006-08-04 18:18:08 +000036362 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036364 X"$ac_file" : 'X\(//\)[^/]' \| \
36365 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036367echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36369 s//\1/
36370 q
36371 }
36372 /^X\(\/\/\)[^/].*/{
36373 s//\1/
36374 q
36375 }
36376 /^X\(\/\/\)$/{
36377 s//\1/
36378 q
36379 }
36380 /^X\(\/\).*/{
36381 s//\1/
36382 q
36383 }
36384 s/.*/./; q'`
36385 { as_dir="$ac_dir"
36386 case $as_dir in #(
36387 -*) as_dir=./$as_dir;;
36388 esac
36389 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036390 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036391 while :; do
36392 case $as_dir in #(
36393 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36394 *) as_qdir=$as_dir;;
36395 esac
36396 as_dirs="'$as_qdir' $as_dirs"
36397 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036398$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036399 X"$as_dir" : 'X\(//\)[^/]' \| \
36400 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036401 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036402echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36404 s//\1/
36405 q
36406 }
36407 /^X\(\/\/\)[^/].*/{
36408 s//\1/
36409 q
36410 }
36411 /^X\(\/\/\)$/{
36412 s//\1/
36413 q
36414 }
36415 /^X\(\/\).*/{
36416 s//\1/
36417 q
36418 }
36419 s/.*/./; q'`
36420 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036421 done
Reid Spencera773bd52006-08-04 18:18:08 +000036422 test -z "$as_dirs" || eval "mkdir $as_dirs"
36423 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36424echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036425 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036426 ac_builddir=.
36427
Reid Spencera773bd52006-08-04 18:18:08 +000036428case "$ac_dir" in
36429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36430*)
John Criswell7a73b802003-06-30 21:59:07 +000036431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036432 # A ".." for each directory in $ac_dir_suffix.
36433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36434 case $ac_top_builddir_sub in
36435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36437 esac ;;
36438esac
36439ac_abs_top_builddir=$ac_pwd
36440ac_abs_builddir=$ac_pwd$ac_dir_suffix
36441# for backward compatibility:
36442ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036443
36444case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036445 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036446 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036447 ac_top_srcdir=$ac_top_builddir_sub
36448 ac_abs_top_srcdir=$ac_pwd ;;
36449 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036450 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036451 ac_top_srcdir=$srcdir
36452 ac_abs_top_srcdir=$srcdir ;;
36453 *) # Relative name.
36454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36455 ac_top_srcdir=$ac_top_build_prefix$srcdir
36456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036457esac
Reid Spencera773bd52006-08-04 18:18:08 +000036458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036459
John Criswell7a73b802003-06-30 21:59:07 +000036460
Reid Spencera773bd52006-08-04 18:18:08 +000036461 case $ac_mode in
36462 :F)
36463 #
36464 # CONFIG_FILE
36465 #
John Criswell7a73b802003-06-30 21:59:07 +000036466
36467 case $INSTALL in
36468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036469 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036470 esac
John Criswell7a73b802003-06-30 21:59:07 +000036471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036472
36473cat >>$CONFIG_STATUS <<\_ACEOF
36474# If the template does not know about datarootdir, expand it.
36475# FIXME: This hack should be removed a few years after 2.60.
36476ac_datarootdir_hack=; ac_datarootdir_seen=
36477
36478case `sed -n '/datarootdir/ {
36479 p
36480 q
36481}
36482/@datadir@/p
36483/@docdir@/p
36484/@infodir@/p
36485/@localedir@/p
36486/@mandir@/p
36487' $ac_file_inputs` in
36488*datarootdir*) ac_datarootdir_seen=yes;;
36489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36490 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36491echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36492_ACEOF
36493cat >>$CONFIG_STATUS <<_ACEOF
36494 ac_datarootdir_hack='
36495 s&@datadir@&$datadir&g
36496 s&@docdir@&$docdir&g
36497 s&@infodir@&$infodir&g
36498 s&@localedir@&$localedir&g
36499 s&@mandir@&$mandir&g
36500 s&\\\${datarootdir}&$datarootdir&g' ;;
36501esac
36502_ACEOF
36503
36504# Neutralize VPATH when `$srcdir' = `.'.
36505# Shell code in configure.ac might set extrasub.
36506# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036507cat >>$CONFIG_STATUS <<_ACEOF
36508 sed "$ac_vpsub
36509$extrasub
36510_ACEOF
36511cat >>$CONFIG_STATUS <<\_ACEOF
36512:t
36513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036514s&@configure_input@&$configure_input&;t t
36515s&@top_builddir@&$ac_top_builddir_sub&;t t
36516s&@srcdir@&$ac_srcdir&;t t
36517s&@abs_srcdir@&$ac_abs_srcdir&;t t
36518s&@top_srcdir@&$ac_top_srcdir&;t t
36519s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36520s&@builddir@&$ac_builddir&;t t
36521s&@abs_builddir@&$ac_abs_builddir&;t t
36522s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36523s&@INSTALL@&$ac_INSTALL&;t t
36524$ac_datarootdir_hack
36525" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036526
Reid Spencera773bd52006-08-04 18:18:08 +000036527test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36528 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36529 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36530 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36531which seems to be undefined. Please make sure it is defined." >&5
36532echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36533which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036534
Reid Spencera773bd52006-08-04 18:18:08 +000036535 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036536 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036537 -) cat "$tmp/out"; rm -f "$tmp/out";;
36538 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036539 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036540 ;;
36541 :H)
36542 #
36543 # CONFIG_HEADER
36544 #
John Criswell7a73b802003-06-30 21:59:07 +000036545_ACEOF
36546
Reid Spencera773bd52006-08-04 18:18:08 +000036547# Transform confdefs.h into a sed script `conftest.defines', that
36548# substitutes the proper values into config.h.in to produce config.h.
36549rm -f conftest.defines conftest.tail
36550# First, append a space to every undef/define line, to ease matching.
36551echo 's/$/ /' >conftest.defines
36552# Then, protect against being on the right side of a sed subst, or in
36553# an unquoted here document, in config.status. If some macros were
36554# called several times there might be several #defines for the same
36555# symbol, which is useless. But do not sort them, since the last
36556# AC_DEFINE must be honored.
36557ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36558# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36559# NAME is the cpp macro being defined, VALUE is the value it is being given.
36560# PARAMS is the parameter list in the macro definition--in most cases, it's
36561# just an empty string.
36562ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36563ac_dB='\\)[ (].*,\\1define\\2'
36564ac_dC=' '
36565ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036566
Reid Spencera773bd52006-08-04 18:18:08 +000036567uniq confdefs.h |
36568 sed -n '
36569 t rset
36570 :rset
36571 s/^[ ]*#[ ]*define[ ][ ]*//
36572 t ok
36573 d
36574 :ok
36575 s/[\\&,]/\\&/g
36576 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36577 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36578 ' >>conftest.defines
36579
36580# Remove the space that was appended to ease matching.
36581# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036582# example, in the case of _POSIX_SOURCE, which is predefined and required
36583# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036584# (The regexp can be short, since the line contains either #define or #undef.)
36585echo 's/ $//
36586s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036587
Reid Spencera773bd52006-08-04 18:18:08 +000036588# Break up conftest.defines:
36589ac_max_sed_lines=50
36590
36591# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36592# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36593# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36594# et cetera.
36595ac_in='$ac_file_inputs'
36596ac_out='"$tmp/out1"'
36597ac_nxt='"$tmp/out2"'
36598
36599while :
John Criswell7a73b802003-06-30 21:59:07 +000036600do
Reid Spencera773bd52006-08-04 18:18:08 +000036601 # Write a here document:
36602 cat >>$CONFIG_STATUS <<_ACEOF
36603 # First, check the format of the line:
36604 cat >"\$tmp/defines.sed" <<\\CEOF
36605/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36606/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36607b
36608:def
36609_ACEOF
36610 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036611 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036612 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36613 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36614 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36615 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036616 rm -f conftest.defines
36617 mv conftest.tail conftest.defines
36618done
Reid Spencera773bd52006-08-04 18:18:08 +000036619rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036620
Reid Spencera773bd52006-08-04 18:18:08 +000036621echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036622cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036623 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036624 echo "/* $configure_input */" >"$tmp/config.h"
36625 cat "$ac_result" >>"$tmp/config.h"
36626 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36628echo "$as_me: $ac_file is unchanged" >&6;}
36629 else
John Criswell7a73b802003-06-30 21:59:07 +000036630 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036631 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036632 fi
36633 else
Reid Spencera773bd52006-08-04 18:18:08 +000036634 echo "/* $configure_input */"
36635 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036636 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036637 rm -f "$tmp/out12"
36638 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036639
Reid Spencera773bd52006-08-04 18:18:08 +000036640 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36641echo "$as_me: executing $ac_file commands" >&6;}
36642 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036643 esac
John Criswell7a73b802003-06-30 21:59:07 +000036644
Reid Spencera773bd52006-08-04 18:18:08 +000036645
36646 case $ac_file$ac_mode in
36647 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036649 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036650 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036651 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036653 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036655 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036657 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036659 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036661 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036663 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036665 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036667 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036669 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036671 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036672 ${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 +000036673
36674 esac
36675done # for ac_tag
36676
John Criswell7a73b802003-06-30 21:59:07 +000036677
36678{ (exit 0); exit 0; }
36679_ACEOF
36680chmod +x $CONFIG_STATUS
36681ac_clean_files=$ac_clean_files_save
36682
36683
36684# configure is writing to config.log, and then calls config.status.
36685# config.status does its own redirection, appending to config.log.
36686# Unfortunately, on DOS this fails, as config.log is still kept open
36687# by configure, so config.status won't be able to write to it; its
36688# output is simply discarded. So we exec the FD to /dev/null,
36689# effectively closing config.log, so it can be properly (re)opened and
36690# appended to by config.status. When coming back to configure, we
36691# need to make the FD available again.
36692if test "$no_create" != yes; then
36693 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036694 ac_config_status_args=
36695 test "$silent" = yes &&
36696 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036697 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036699 exec 5>>config.log
36700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36701 # would make configure fail if this is the last instruction.
36702 $ac_cs_success || { (exit 1); exit 1; }
36703fi
36704
John Criswell12399a12003-09-30 15:55:44 +000036705#
36706# CONFIG_SUBDIRS section.
36707#
36708if test "$no_recursion" != yes; then
36709
36710 # Remove --cache-file and --srcdir arguments so they do not pile up.
36711 ac_sub_configure_args=
36712 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036713 eval "set x $ac_configure_args"
36714 shift
36715 for ac_arg
36716 do
John Criswell12399a12003-09-30 15:55:44 +000036717 if test -n "$ac_prev"; then
36718 ac_prev=
36719 continue
36720 fi
36721 case $ac_arg in
36722 -cache-file | --cache-file | --cache-fil | --cache-fi \
36723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36724 ac_prev=cache_file ;;
36725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36727 | --c=*)
36728 ;;
36729 --config-cache | -C)
36730 ;;
36731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36732 ac_prev=srcdir ;;
36733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36734 ;;
36735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36736 ac_prev=prefix ;;
36737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36738 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036739 *)
36740 case $ac_arg in
36741 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36742 esac
36743 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036744 esac
36745 done
36746
36747 # Always prepend --prefix to ensure using the same prefix
36748 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036749 ac_arg="--prefix=$prefix"
36750 case $ac_arg in
36751 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36752 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036753 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036754
36755 ac_popdir=`pwd`
36756 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36757
36758 # Do not complain, so a configure script can configure whichever
36759 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036760 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036761
Reid Spencera773bd52006-08-04 18:18:08 +000036762 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36763 echo "$as_me:$LINENO: $ac_msg" >&5
36764 echo "$ac_msg" >&6
36765 { as_dir="$ac_dir"
36766 case $as_dir in #(
36767 -*) as_dir=./$as_dir;;
36768 esac
36769 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036770 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036771 while :; do
36772 case $as_dir in #(
36773 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36774 *) as_qdir=$as_dir;;
36775 esac
36776 as_dirs="'$as_qdir' $as_dirs"
36777 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036778$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036779 X"$as_dir" : 'X\(//\)[^/]' \| \
36780 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036782echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36784 s//\1/
36785 q
36786 }
36787 /^X\(\/\/\)[^/].*/{
36788 s//\1/
36789 q
36790 }
36791 /^X\(\/\/\)$/{
36792 s//\1/
36793 q
36794 }
36795 /^X\(\/\).*/{
36796 s//\1/
36797 q
36798 }
36799 s/.*/./; q'`
36800 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036801 done
Reid Spencera773bd52006-08-04 18:18:08 +000036802 test -z "$as_dirs" || eval "mkdir $as_dirs"
36803 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36804echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036805 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036806 ac_builddir=.
36807
Reid Spencera773bd52006-08-04 18:18:08 +000036808case "$ac_dir" in
36809.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36810*)
John Criswell12399a12003-09-30 15:55:44 +000036811 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036812 # A ".." for each directory in $ac_dir_suffix.
36813 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36814 case $ac_top_builddir_sub in
36815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36817 esac ;;
36818esac
36819ac_abs_top_builddir=$ac_pwd
36820ac_abs_builddir=$ac_pwd$ac_dir_suffix
36821# for backward compatibility:
36822ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036823
36824case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036825 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036826 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036827 ac_top_srcdir=$ac_top_builddir_sub
36828 ac_abs_top_srcdir=$ac_pwd ;;
36829 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036830 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036831 ac_top_srcdir=$srcdir
36832 ac_abs_top_srcdir=$srcdir ;;
36833 *) # Relative name.
36834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36835 ac_top_srcdir=$ac_top_build_prefix$srcdir
36836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036837esac
Reid Spencera773bd52006-08-04 18:18:08 +000036838ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036839
36840
Reid Spencera773bd52006-08-04 18:18:08 +000036841 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036842
36843 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036844 if test -f "$ac_srcdir/configure.gnu"; then
36845 ac_sub_configure=$ac_srcdir/configure.gnu
36846 elif test -f "$ac_srcdir/configure"; then
36847 ac_sub_configure=$ac_srcdir/configure
36848 elif test -f "$ac_srcdir/configure.in"; then
36849 # This should be Cygnus configure.
36850 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036851 else
36852 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36853echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36854 ac_sub_configure=
36855 fi
36856
36857 # The recursion is here.
36858 if test -n "$ac_sub_configure"; then
36859 # Make the cache file name correct relative to the subdirectory.
36860 case $cache_file in
36861 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036862 *) # Relative name.
36863 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036864 esac
36865
Reid Spencera773bd52006-08-04 18:18:08 +000036866 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36867echo "$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 +000036868 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036869 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36870 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036871 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036872echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36873 { (exit 1); exit 1; }; }
36874 fi
36875
Reid Spencera773bd52006-08-04 18:18:08 +000036876 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036877 done
36878fi
36879