blob: 4ef693fa6dd8c3a679b477c8a39b422320b984d6 [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
Daniel Dunbar4fc760e2009-11-25 04:37:28 +0000850LLVM_ENUM_DISASSEMBLERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000851ENABLE_CBE_PRINTF_A
Daniel Dunbar1fce9482009-11-04 04:32:50 +0000852OPTIMIZE_OPTION
Reid Spencera773bd52006-08-04 18:18:08 +0000853EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000854BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000855ENABLE_LLVMC_DYNAMIC
856ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000857CXX
858CXXFLAGS
859ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000860NM
861ifGNUmake
862LN_S
863CMP
864CP
865DATE
866FIND
867MKDIR
868MV
869RANLIB
870RM
871SED
872TAR
873BINPWD
874GRAPHVIZ
875DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000876FDP
877NEATO
878TWOPI
879CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000880GV
881DOTTY
882PERL
883HAVE_PERL
884INSTALL_PROGRAM
885INSTALL_SCRIPT
886INSTALL_DATA
887BZIP2
888DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000889GROFF
890GZIP
891POD2HTML
892POD2MAN
893RUNTEST
894TCLSH
895ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000896OCAMLC
897OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000898OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000899OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000900GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000901INSTALL_LTDL_TRUE
902INSTALL_LTDL_FALSE
903CONVENIENCE_LTDL_TRUE
904CONVENIENCE_LTDL_FALSE
905LIBADD_DL
906ECHO
907AR
908STRIP
909CXXCPP
910F77
911FFLAGS
912ac_ct_F77
913LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000914LLVMGCCCOMMAND
915LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000916LLVMGCC
917LLVMGXX
Julien Lerouge3a96a4d2009-10-26 20:00:35 +0000918NO_VARIADIC_MACROS
919NO_MISSING_FIELD_INITIALIZERS
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000920USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000921USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000922HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000923HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000924ALLOCA
925MMAP_FILE
926LLVMCC1
927LLVMCC1PLUS
928LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000929LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000930LLVMGCC_VERSION
931LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000932LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000933SHLIBEXT
934LLVM_PREFIX
935LLVM_BINDIR
936LLVM_LIBDIR
937LLVM_DATADIR
938LLVM_DOCSDIR
939LLVM_ETCDIR
940LLVM_INCLUDEDIR
941LLVM_INFODIR
942LLVM_MANDIR
943LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000944BINDINGS_TO_BUILD
945ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000946OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000947ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000948RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000949RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000950LIBOBJS
951LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000952ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000953 ac_precious_vars='build_alias
954host_alias
955target_alias
956CC
957CFLAGS
958LDFLAGS
959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000964CXXCPP
965F77
966FFLAGS'
967ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000968projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000969projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000970projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000971projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000972projects/llvm-reopt
973projects/llvm-gcc
974projects/llvm-java
975projects/llvm-tv
976projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000977projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000978projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000979
980# Initialize some variables set by options.
981ac_init_help=
982ac_init_version=false
983# The variables have the same names as the options, with
984# dashes changed to underlines.
985cache_file=/dev/null
986exec_prefix=NONE
987no_create=
988no_recursion=
989prefix=NONE
990program_prefix=NONE
991program_suffix=NONE
992program_transform_name=s,x,x,
993silent=
994site=
995srcdir=
996verbose=
997x_includes=NONE
998x_libraries=NONE
999
1000# Installation directory options.
1001# These are left unexpanded so users can "make install exec_prefix=/foo"
1002# and all the variables that are supposed to be based on exec_prefix
1003# by default will actually change.
1004# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001005# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001006bindir='${exec_prefix}/bin'
1007sbindir='${exec_prefix}/sbin'
1008libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001009datarootdir='${prefix}/share'
1010datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001011sysconfdir='${prefix}/etc'
1012sharedstatedir='${prefix}/com'
1013localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001014includedir='${prefix}/include'
1015oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017infodir='${datarootdir}/info'
1018htmldir='${docdir}'
1019dvidir='${docdir}'
1020pdfdir='${docdir}'
1021psdir='${docdir}'
1022libdir='${exec_prefix}/lib'
1023localedir='${datarootdir}/locale'
1024mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001025
1026ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001027ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001028for ac_option
1029do
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001032 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001033 ac_prev=
1034 continue
1035 fi
1036
Reid Spencera773bd52006-08-04 18:18:08 +00001037 case $ac_option in
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *) ac_optarg=yes ;;
1040 esac
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1043
Reid Spencera773bd52006-08-04 18:18:08 +00001044 case $ac_dashdash$ac_option in
1045 --)
1046 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001047
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1052
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1057
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1064
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1067
Reid Spencera773bd52006-08-04 18:18:08 +00001068 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001069 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001071 datadir=$ac_optarg ;;
1072
Reid Spencera773bd52006-08-04 18:18:08 +00001073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1079
John Criswell7a73b802003-06-30 21:59:07 +00001080 -disable-* | --disable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001098
1099 -enable-* | --enable-*)
1100 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001102 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001103 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1104 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001105 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001106 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001107
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1116
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1120
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1127
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1132
Reid Spencera773bd52006-08-04 18:18:08 +00001133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1138
John Criswell7a73b802003-06-30 21:59:07 +00001139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1145
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1150
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1155
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1162
Reid Spencera773bd52006-08-04 18:18:08 +00001163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1167
John Criswell7a73b802003-06-30 21:59:07 +00001168 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001169 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001173 localstatedir=$ac_optarg ;;
1174
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1179
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1183
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1187
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1191
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1200
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1205
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1212
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1219
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1236
Reid Spencera773bd52006-08-04 18:18:08 +00001237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1241
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1246
John Criswell7a73b802003-06-30 21:59:07 +00001247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1250
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1256
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1267
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1272
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1277
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1284
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1289
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1292
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1295
1296 -with-* | --with-*)
1297 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001299 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001302 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001303 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001304
1305 -without-* | --without-*)
1306 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001308 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001309 { echo "$as_me: error: invalid package name: $ac_package" >&2
1310 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001311 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001312 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1331
1332 -*) { echo "$as_me: error: unrecognized option: $ac_option
1333Try \`$0 --help' for more information." >&2
1334 { (exit 1); exit 1; }; }
1335 ;;
1336
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001343 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001344 export $ac_envvar ;;
1345
1346 *)
1347 # FIXME: should be removed in autoconf 3.0.
1348 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 ;;
1353
1354 esac
1355done
1356
1357if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 { echo "$as_me: error: missing argument to $ac_option" >&2
1360 { (exit 1); exit 1; }; }
1361fi
1362
Reid Spencera773bd52006-08-04 18:18:08 +00001363# Be sure to have absolute directory names.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001368do
Reid Spencera773bd52006-08-04 18:18:08 +00001369 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001370 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001373 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001374 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1375 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1392 cross_compiling=yes
1393 fi
1394fi
1395
1396ac_tool_prefix=
1397test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399test "$silent" = yes && exec 6>/dev/null
1400
1401
Reid Spencera773bd52006-08-04 18:18:08 +00001402ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403ac_ls_di=`ls -di .` &&
1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 { echo "$as_me: error: Working directory cannot be determined" >&2
1406 { (exit 1); exit 1; }; }
1407test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 { echo "$as_me: error: pwd does not report name of working directory" >&2
1409 { (exit 1); exit 1; }; }
1410
1411
John Criswell7a73b802003-06-30 21:59:07 +00001412# Find the source files, if location was not specified.
1413if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001417$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001418 X"$0" : 'X\(//\)[^/]' \| \
1419 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001421echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\).*/{
1435 s//\1/
1436 q
1437 }
1438 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001439 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001440 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001441 srcdir=..
1442 fi
1443else
1444 ac_srcdir_defaulted=no
1445fi
Reid Spencera773bd52006-08-04 18:18:08 +00001446if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001449 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001450fi
Reid Spencera773bd52006-08-04 18:18:08 +00001451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001454 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001455 pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001480\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
John Criswell7a73b802003-06-30 21:59:07 +00001500Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001502 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001504 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001533_ACEOF
1534
1535 cat <<\_ACEOF
1536
1537System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 --target=TARGET configure for building compilers for TARGET [HOST]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001546 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001547 esac
1548 cat <<\_ACEOF
1549
1550Optional Features:
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001553 --enable-optimized Compile with optimizations enabled (default is NO)
1554 --enable-profiling Compile with profiling enabled (default is NO)
1555 --enable-assertions Compile with assertion checks enabled (default is
1556 YES)
David Greenea696d242007-06-28 19:36:08 +00001557 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001558 Compile with expensive debug checks enabled (default
1559 is NO)
1560 --enable-debug-runtime Build runtime libs with debug symbols (default is
1561 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001562 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1563 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001564 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001565 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001566 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001567 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001568 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001569 --enable-targets Build specific host targets: all or
1570 target1,target2,... Valid targets are: host, x86,
1571 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1572 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1573 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001574 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1575 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001576 --enable-bindings Build specific language bindings:
1577 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001578 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001579 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1580 Win32)
1581 --enable-llvmc-dynamic-plugins
1582 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001583 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001584 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001585 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001586 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001587 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001588 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001589 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001590 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001591 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593Optional Packages:
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001596 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1597 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001598 --with-llvmgcc Specify location of llvm-gcc driver (default
1599 searches PATH)
1600 --with-llvmgxx Specify location of llvm-g++ driver (default
1601 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001602 --with-optimize-option Select the compiler options to use for optimized
1603 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001604 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001605 --with-ocaml-libdir Specify install location for ocaml bindings (default
1606 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001607 --with-c-include-dirs Colon separated list of directories clang will
1608 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001609 --with-cxx-include-root Directory with the libstdc++ headers.
1610 --with-cxx-include-arch Architecture of the libstdc++ headers.
1611 --with-cxx-include-32bit-dir
1612 32 bit multilib dir.
1613 --with-cxx-include-64bit-dir
1614 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001615 --with-binutils-include Specify path to binutils/include/ containing
1616 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001617 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-pic try to use only PIC/non-PIC objects [default=use
1620 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001621 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001622 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001623 --with-oprofile=<prefix>
1624 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001627 CC C compiler command
1628 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001631 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001633 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001636 CXXCPP C++ preprocessor
1637 F77 Fortran 77 compiler command
1638 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
1643Report bugs to <llvmbugs@cs.uiuc.edu>.
1644_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001645ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001651 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001652 ac_builddir=.
1653
Reid Spencera773bd52006-08-04 18:18:08 +00001654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
John Criswell7a73b802003-06-30 21:59:07 +00001657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001669
1670case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001671 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001672 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001676 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001683esac
Reid Spencera773bd52006-08-04 18:18:08 +00001684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001685
Reid Spencera773bd52006-08-04 18:18:08 +00001686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001694 else
1695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001698 done
1699fi
1700
Reid Spencera773bd52006-08-04 18:18:08 +00001701test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001702if $ac_init_version; then
1703 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001704llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001705generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001706
Reid Spencera773bd52006-08-04 18:18:08 +00001707Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001711
Tanya Lattnerc2264592009-08-22 21:01:26 +00001712Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001713_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001714 exit
John Criswell7a73b802003-06-30 21:59:07 +00001715fi
Reid Spencera773bd52006-08-04 18:18:08 +00001716cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001717This file contains any messages produced by compilers while
1718running configure, to aid debugging if configure makes a mistake.
1719
Tanya Lattner953042b2009-08-22 04:37:30 +00001720It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001721generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001722
1723 $ $0 $@
1724
1725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001726exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001727{
1728cat <<_ASUNAME
1729## --------- ##
1730## Platform. ##
1731## --------- ##
1732
1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741
1742/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001745/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001746/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
1750_ASUNAME
1751
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 echo "PATH: $as_dir"
1758done
Reid Spencera773bd52006-08-04 18:18:08 +00001759IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761} >&5
1762
1763cat >&5 <<_ACEOF
1764
1765
1766## ----------- ##
1767## Core tests. ##
1768## ----------- ##
1769
1770_ACEOF
1771
1772
1773# Keep a trace of the command line.
1774# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001775# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001776# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001777# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001778ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001779ac_configure_args0=
1780ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001781ac_must_keep_next=false
1782for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001783do
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001791 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796 2)
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001799 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001812 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001813 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ;;
1815 esac
1816 done
John Criswell7a73b802003-06-30 21:59:07 +00001817done
John Criswell0c38eaf2003-09-10 15:17:25 +00001818$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819$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 +00001820
1821# When interrupted or exit'd, cleanup temporary files, and complete
1822# config.log. We remove comments because anyway the quotes in there
1823# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001824# WARNING: Use '\'' to represent an apostrophe within the trap.
1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001826trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1828 {
1829 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001830
John Criswell7a73b802003-06-30 21:59:07 +00001831 cat <<\_ASBOX
1832## ---------------- ##
1833## Cache variables. ##
1834## ---------------- ##
1835_ASBOX
1836 echo
1837 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001838(
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in #(
1842 *${as_nl}*)
1843 case $ac_var in #(
1844 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1845echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1846 esac
1847 case $ac_var in #(
1848 _ | IFS | as_nl) ;; #(
1849 *) $as_unset $ac_var ;;
1850 esac ;;
1851 esac
1852 done
John Criswell7a73b802003-06-30 21:59:07 +00001853 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001856 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001857 "s/'\''/'\''\\\\'\'''\''/g;
1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001860 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001862 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001863 esac |
1864 sort
1865)
John Criswell7a73b802003-06-30 21:59:07 +00001866 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001867
1868 cat <<\_ASBOX
1869## ----------------- ##
1870## Output variables. ##
1871## ----------------- ##
1872_ASBOX
1873 echo
1874 for ac_var in $ac_subst_vars
1875 do
Reid Spencera773bd52006-08-04 18:18:08 +00001876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001881 done | sort
1882 echo
1883
1884 if test -n "$ac_subst_files"; then
1885 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001886## ------------------- ##
1887## File substitutions. ##
1888## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001889_ASBOX
1890 echo
1891 for ac_var in $ac_subst_files
1892 do
Reid Spencera773bd52006-08-04 18:18:08 +00001893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001898 done | sort
1899 echo
1900 fi
1901
John Criswell7a73b802003-06-30 21:59:07 +00001902 if test -s confdefs.h; then
1903 cat <<\_ASBOX
1904## ----------- ##
1905## confdefs.h. ##
1906## ----------- ##
1907_ASBOX
1908 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001909 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001910 echo
1911 fi
1912 test "$ac_signal" != 0 &&
1913 echo "$as_me: caught signal $ac_signal"
1914 echo "$as_me: exit $exit_status"
1915 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001916 rm -f core *.core core.conftest.* &&
1917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001918 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001919' 0
John Criswell7a73b802003-06-30 21:59:07 +00001920for ac_signal in 1 2 13 15; do
1921 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922done
1923ac_signal=0
1924
1925# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001926rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001927
1928# Predefined preprocessor variables.
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_NAME "$PACKAGE_NAME"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_VERSION "$PACKAGE_VERSION"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_STRING "$PACKAGE_STRING"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952_ACEOF
1953
1954
1955# Let the site file select an alternate cache file if it wants to.
1956# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001957if test -n "$CONFIG_SITE"; then
1958 set x "$CONFIG_SITE"
1959elif test "x$prefix" != xNONE; then
1960 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1961else
1962 set x "$ac_default_prefix/share/config.site" \
1963 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001964fi
Reid Spencera773bd52006-08-04 18:18:08 +00001965shift
1966for ac_site_file
1967do
John Criswell7a73b802003-06-30 21:59:07 +00001968 if test -r "$ac_site_file"; then
1969 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1973 fi
1974done
1975
1976if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001985 esac
1986 fi
1987else
1988 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1991fi
1992
1993# Check that the precious variables saved in the cache have kept the same
1994# value.
1995ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001996for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00002001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002013 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002014echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002015 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002016echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002017 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002018echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002019 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002020 fi;;
2021 esac
2022 # Pass precious variables to config.status.
2023 if test "$ac_new_set" = set; then
2024 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002025 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002026 *) ac_arg=$ac_var=$ac_new_val ;;
2027 esac
2028 case " $ac_configure_args " in
2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031 esac
2032 fi
2033done
2034if $ac_cache_corrupted; then
2035 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039 { (exit 1); exit 1; }; }
2040fi
2041
Reid Spencera773bd52006-08-04 18:18:08 +00002042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073
Tanya Lattnerc2264592009-08-22 21:01:26 +00002074LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075
2076
2077
2078
2079
2080
2081
John Criswell7a73b802003-06-30 21:59:07 +00002082ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002083for ac_dir in autoconf "$srcdir"/autoconf; do
2084 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
Reid Spencera773bd52006-08-04 18:18:08 +00002088 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
Reid Spencera773bd52006-08-04 18:18:08 +00002092 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2096 fi
2097done
2098if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2100echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002101 { (exit 1); exit 1; }; }
2102fi
Reid Spencera773bd52006-08-04 18:18:08 +00002103
2104# These three variables are undocumented and unsupported,
2105# and are intended to be withdrawn in a future Autoconf release.
2106# They can cause serious problems if a builder's source tree is in a directory
2107# whose full name contains unusual characters.
2108ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111
John Criswell7a73b802003-06-30 21:59:07 +00002112
John Criswell392aaa32003-07-22 19:18:09 +00002113
Reid Spencer2706f8c2004-09-19 23:53:36 +00002114if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002115 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2116 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002117echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2118 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119 fi
John Criswell93e1c722003-09-15 17:04:06 +00002120fi
2121
John Criswell33a911a2003-11-25 20:36:46 +00002122for i in `ls ${srcdir}/projects`
2123do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 if test -d ${srcdir}/projects/${i} ; then
2125 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002126 CVS) ;;
2127 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002132 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002133 # llvm-test is the old name of the test-suite, kept here for backwards
2134 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002135 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002136 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002137 test-suite) subdirs="$subdirs projects/test-suite"
2138 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002139 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002140;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002141 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002142 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002143 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002144 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002145 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002146 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002147 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002148 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002149 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002150 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002151 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002152 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002153 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002154 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2155echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002156 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002157 esac
John Criswell33a911a2003-11-25 20:36:46 +00002158 fi
2159done
John Criswell559a6c12003-09-30 16:31:48 +00002160
John Criswell7a73b802003-06-30 21:59:07 +00002161
2162# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002163$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2165echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 1); exit 1; }; }
2167
Reid Spencera773bd52006-08-04 18:18:08 +00002168{ echo "$as_me:$LINENO: checking build system type" >&5
2169echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002170if test "${ac_cv_build+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
Reid Spencera773bd52006-08-04 18:18:08 +00002173 ac_build_alias=$build_alias
2174test "x$ac_build_alias" = x &&
2175 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2176test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002177 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002180ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002183 { (exit 1); exit 1; }; }
2184
2185fi
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187echo "${ECHO_T}$ac_cv_build" >&6; }
2188case $ac_cv_build in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2191echo "$as_me: error: invalid value of canonical build" >&2;}
2192 { (exit 1); exit 1; }; };;
2193esac
John Criswell7a73b802003-06-30 21:59:07 +00002194build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_build
2197shift
2198build_cpu=$1
2199build_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203build_os=$*
2204IFS=$ac_save_IFS
2205case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002206
2207
Reid Spencera773bd52006-08-04 18:18:08 +00002208{ echo "$as_me:$LINENO: checking host system type" >&5
2209echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002210if test "${ac_cv_host+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
Reid Spencera773bd52006-08-04 18:18:08 +00002213 if test "x$host_alias" = x; then
2214 ac_cv_host=$ac_cv_build
2215else
2216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2218echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002220fi
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222fi
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2224echo "${ECHO_T}$ac_cv_host" >&6; }
2225case $ac_cv_host in
2226*-*-*) ;;
2227*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2228echo "$as_me: error: invalid value of canonical host" >&2;}
2229 { (exit 1); exit 1; }; };;
2230esac
John Criswell7a73b802003-06-30 21:59:07 +00002231host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_host
2234shift
2235host_cpu=$1
2236host_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240host_os=$*
2241IFS=$ac_save_IFS
2242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002243
2244
Reid Spencera773bd52006-08-04 18:18:08 +00002245{ echo "$as_me:$LINENO: checking target system type" >&5
2246echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002247if test "${ac_cv_target+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
Reid Spencera773bd52006-08-04 18:18:08 +00002250 if test "x$target_alias" = x; then
2251 ac_cv_target=$ac_cv_host
2252else
2253 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2254 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2255echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002256 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002257fi
John Criswell7a73b802003-06-30 21:59:07 +00002258
2259fi
Reid Spencera773bd52006-08-04 18:18:08 +00002260{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2261echo "${ECHO_T}$ac_cv_target" >&6; }
2262case $ac_cv_target in
2263*-*-*) ;;
2264*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2265echo "$as_me: error: invalid value of canonical target" >&2;}
2266 { (exit 1); exit 1; }; };;
2267esac
John Criswell7a73b802003-06-30 21:59:07 +00002268target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002269ac_save_IFS=$IFS; IFS='-'
2270set x $ac_cv_target
2271shift
2272target_cpu=$1
2273target_vendor=$2
2274shift; shift
2275# Remember, the first character of IFS is used to create $*,
2276# except with old shells:
2277target_os=$*
2278IFS=$ac_save_IFS
2279case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002280
2281
2282# The aliases save the names the user supplied, while $host etc.
2283# will get canonicalized.
2284test -n "$target_alias" &&
2285 test "$program_prefix$program_suffix$program_transform_name" = \
2286 NONENONEs,x,x, &&
2287 program_prefix=${target_alias}-
2288
Reid Spencera773bd52006-08-04 18:18:08 +00002289{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2290echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002294 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="AIX"
2299 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002300 *-*-irix*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="IRIX"
2304 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="Cygwin"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002312 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="Darwin"
2314 llvm_cv_platform_type="Unix" ;;
2315 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="FreeBSD"
2319 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002320 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002323 llvm_cv_os_type="OpenBSD"
2324 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002325 *-*-netbsd*)
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="NetBSD"
2329 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002330 *-*-dragonfly*)
2331 llvm_cv_link_all_option="-Wl,--whole-archive"
2332 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333 llvm_cv_os_type="DragonFly"
2334 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002335 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002338 llvm_cv_os_type="HP-UX"
2339 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 llvm_cv_os_type="Interix"
2344 llvm_cv_platform_type="Unix" ;;
2345 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348 llvm_cv_os_type="Linux"
2349 llvm_cv_platform_type="Unix" ;;
2350 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002351 llvm_cv_link_all_option="-Wl,-z,allextract"
2352 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353 llvm_cv_os_type="SunOS"
2354 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002355 *-*-auroraux*)
2356 llvm_cv_link_all_option="-Wl,-z,allextract"
2357 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2358 llvm_cv_os_type="AuroraUX"
2359 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002361 llvm_cv_link_all_option="-Wl,--whole-archive"
2362 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002363 llvm_cv_os_type="Win32"
2364 llvm_cv_platform_type="Win32" ;;
2365 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002366 llvm_cv_link_all_option="-Wl,--whole-archive"
2367 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002368 llvm_cv_os_type="MingW"
2369 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002370 *-*-haiku*)
2371 llvm_cv_link_all_option="-Wl,--whole-archive"
2372 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2373 llvm_cv_os_type="Haiku"
2374 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002375 *-unknown-eabi*)
2376 llvm_cv_link_all_option="-Wl,--whole-archive"
2377 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2378 llvm_cv_os_type="Freestanding"
2379 llvm_cv_platform_type="Unix" ;;
2380 *-unknown-elf*)
2381 llvm_cv_link_all_option="-Wl,--whole-archive"
2382 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2383 llvm_cv_os_type="Freestanding"
2384 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002385 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002386 llvm_cv_link_all_option=""
2387 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002388 llvm_cv_os_type="Unknown"
2389 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002390esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391fi
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2393echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002394
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002395{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2396echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2397if test "${llvm_cv_target_os_type+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400 case $target in
2401 *-*-aix*)
2402 llvm_cv_target_os_type="AIX" ;;
2403 *-*-irix*)
2404 llvm_cv_target_os_type="IRIX" ;;
2405 *-*-cygwin*)
2406 llvm_cv_target_os_type="Cygwin" ;;
2407 *-*-darwin*)
2408 llvm_cv_target_os_type="Darwin" ;;
2409 *-*-freebsd*)
2410 llvm_cv_target_os_type="FreeBSD" ;;
2411 *-*-openbsd*)
2412 llvm_cv_target_os_type="OpenBSD" ;;
2413 *-*-netbsd*)
2414 llvm_cv_target_os_type="NetBSD" ;;
2415 *-*-dragonfly*)
2416 llvm_cv_target_os_type="DragonFly" ;;
2417 *-*-hpux*)
2418 llvm_cv_target_os_type="HP-UX" ;;
2419 *-*-interix*)
2420 llvm_cv_target_os_type="Interix" ;;
2421 *-*-linux*)
2422 llvm_cv_target_os_type="Linux" ;;
2423 *-*-solaris*)
2424 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002425 *-*-auroraux*)
2426 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002427 *-*-win32*)
2428 llvm_cv_target_os_type="Win32" ;;
2429 *-*-mingw*)
2430 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002431 *-*-haiku*)
2432 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002433 *-unknown-eabi*)
2434 llvm_cv_target_os_type="Freestanding" ;;
2435 *)
2436 llvm_cv_target_os_type="Unknown" ;;
2437esac
2438fi
2439{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2440echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2441
Reid Spencer7b3e8512004-12-24 06:29:05 +00002442if test "$llvm_cv_os_type" = "Unknown" ; then
2443 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2444echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002445 { (exit 1); exit 1; }; }
2446fi
2447
Reid Spencer7b3e8512004-12-24 06:29:05 +00002448OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002450HOST_OS=$llvm_cv_os_type
2451
2452TARGET_OS=$llvm_cv_target_os_type
2453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454
Reid Spencera773bd52006-08-04 18:18:08 +00002455LINKALL=$llvm_cv_link_all_option
2456
2457NOLINKALL=$llvm_cv_no_link_all_option
2458
2459
Reid Spencer7b3e8512004-12-24 06:29:05 +00002460case $llvm_cv_platform_type in
2461 Unix)
2462
2463cat >>confdefs.h <<\_ACEOF
2464#define LLVM_ON_UNIX 1
2465_ACEOF
2466
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002467 LLVM_ON_UNIX=1
2468
2469 LLVM_ON_WIN32=0
2470
Reid Spencer7b3e8512004-12-24 06:29:05 +00002471 ;;
2472 Win32)
2473
2474cat >>confdefs.h <<\_ACEOF
2475#define LLVM_ON_WIN32 1
2476_ACEOF
2477
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002478 LLVM_ON_UNIX=0
2479
2480 LLVM_ON_WIN32=1
2481
Reid Spencer7b3e8512004-12-24 06:29:05 +00002482 ;;
2483esac
2484
Reid Spencera773bd52006-08-04 18:18:08 +00002485{ echo "$as_me:$LINENO: checking target architecture" >&5
2486echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487if test "${llvm_cv_target_arch+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002491 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002492 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002493 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2494 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002495 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002496 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002497 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002498 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002499 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002500 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002501 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002502 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002503 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002504esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505fi
Reid Spencera773bd52006-08-04 18:18:08 +00002506{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2507echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509if test "$llvm_cv_target_arch" = "Unknown" ; then
2510 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2511echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2512fi
John Criswell76595452003-07-01 22:07:39 +00002513
Nick Lewycky83fc4472009-09-29 05:48:51 +00002514# Determine the LLVM native architecture for the target
2515case "$llvm_cv_target_arch" in
2516 x86) LLVM_NATIVE_ARCH="X86" ;;
2517 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2518 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2519esac
2520
2521ARCH=$llvm_cv_target_arch
2522
2523
2524ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002529if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002546 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 +00002547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
Reid Spencera773bd52006-08-04 18:18:08 +00002553IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561else
Reid Spencera773bd52006-08-04 18:18:08 +00002562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565
Reid Spencera773bd52006-08-04 18:18:08 +00002566
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568if test -z "$ac_cv_prog_CC"; then
2569 ac_ct_CC=$CC
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002586 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 +00002587 ac_cv_prog_ac_ct_CC="gcc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592done
Reid Spencera773bd52006-08-04 18:18:08 +00002593IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594
2595fi
2596fi
2597ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601else
Reid Spencera773bd52006-08-04 18:18:08 +00002602 { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604fi
2605
Reid Spencera773bd52006-08-04 18:18:08 +00002606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610yes:)
2611{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612whose name does not start with the host triplet. If you think this
2613configuration is useful to you, please write to autoconf@gnu.org." >&5
2614echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615whose name does not start with the host triplet. If you think this
2616configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617ac_tool_warned=yes ;;
2618esac
2619 CC=$ac_ct_CC
2620 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
2622 CC="$ac_cv_prog_CC"
2623fi
2624
2625if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002626 if test -n "$ac_tool_prefix"; then
2627 # 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 +00002628set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002643 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 +00002644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649done
Reid Spencera773bd52006-08-04 18:18:08 +00002650IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651
2652fi
2653fi
2654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002656 { echo "$as_me:$LINENO: result: $CC" >&5
2657echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658else
Reid Spencera773bd52006-08-04 18:18:08 +00002659 { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661fi
2662
Reid Spencera773bd52006-08-04 18:18:08 +00002663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665fi
2666if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677 ac_prog_rejected=no
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002684 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 +00002685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686 ac_prog_rejected=yes
2687 continue
2688 fi
2689 ac_cv_prog_CC="cc"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693done
2694done
Reid Spencera773bd52006-08-04 18:18:08 +00002695IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696
2697if test $ac_prog_rejected = yes; then
2698 # We found a bogon in the path, so make sure we never use it.
2699 set dummy $ac_cv_prog_CC
2700 shift
2701 if test $# != 0; then
2702 # We chose a different compiler from the bogus one.
2703 # However, it has the same basename, so the bogon will be chosen
2704 # first if we set CC to just the basename; use the full file name.
2705 shift
2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707 fi
2708fi
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002713 { echo "$as_me:$LINENO: result: $CC" >&5
2714echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002715else
Reid Spencera773bd52006-08-04 18:18:08 +00002716 { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002718fi
2719
Reid Spencera773bd52006-08-04 18:18:08 +00002720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721fi
2722if test -z "$CC"; then
2723 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002724 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002725 do
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002742 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 +00002743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
Reid Spencera773bd52006-08-04 18:18:08 +00002749IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002750
2751fi
2752fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002755 { echo "$as_me:$LINENO: result: $CC" >&5
2756echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002757else
Reid Spencera773bd52006-08-04 18:18:08 +00002758 { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002760fi
2761
Reid Spencera773bd52006-08-04 18:18:08 +00002762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002763 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002764 done
2765fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002766if test -z "$CC"; then
2767 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002768 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002769do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002786 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 +00002787 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
Reid Spencera773bd52006-08-04 18:18:08 +00002793IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002794
2795fi
2796fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002797ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002799 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002801else
Reid Spencera773bd52006-08-04 18:18:08 +00002802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002804fi
2805
Reid Spencera773bd52006-08-04 18:18:08 +00002806
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002807 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002808done
John Criswell7a73b802003-06-30 21:59:07 +00002809
Reid Spencera773bd52006-08-04 18:18:08 +00002810 if test "x$ac_ct_CC" = x; then
2811 CC=""
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816whose name does not start with the host triplet. If you think this
2817configuration is useful to you, please write to autoconf@gnu.org." >&5
2818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819whose name does not start with the host triplet. If you think this
2820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823 CC=$ac_ct_CC
2824 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002825fi
2826
John Criswell7a73b802003-06-30 21:59:07 +00002827fi
2828
2829
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002830test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831See \`config.log' for more details." >&5
2832echo "$as_me: error: no acceptable C compiler found in \$PATH
2833See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2835
John Criswell7a73b802003-06-30 21:59:07 +00002836# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002837echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002838ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002839{ (ac_try="$ac_compiler --version >&5"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002849{ (ac_try="$ac_compiler -v >&5"
2850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002859{ (ac_try="$ac_compiler -V >&5"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869
2870cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002871/* confdefs.h. */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002876
John Criswell7a73b802003-06-30 21:59:07 +00002877int
2878main ()
2879{
2880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002886ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002887# Try to create an executable without -o first, disregard a.out.
2888# It will help us diagnose broken compilers, and finding out an intuition
2889# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002890{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2891echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002892ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002893#
2894# List of possible output files, starting from the most likely.
2895# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2896# only as a last resort. b.out is created by i960 compilers.
2897ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2898#
2899# The IRIX 6 linker writes into existing files which may not be
2900# executable, retaining their permissions. Remove them first so a
2901# subsequent execution test works.
2902ac_rmfiles=
2903for ac_file in $ac_files
2904do
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908 esac
2909done
2910rm -f $ac_rmfiles
2911
2912if { (ac_try="$ac_link_default"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924# in a Makefile. We should not override ac_cv_exeext if it was cached,
2925# so that the user can short-circuit this test for compilers unknown to
2926# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002927for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002928do
2929 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002930 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002932 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002933 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002934 # We found the default executable, but exeext='' is most
2935 # certainly right.
2936 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002937 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939 then :; else
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 fi
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2946 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002947 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002948 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002949 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002950 esac
2951done
Reid Spencera773bd52006-08-04 18:18:08 +00002952test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
John Criswell7a73b802003-06-30 21:59:07 +00002954else
2955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002958{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002959See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002960echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002961See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002962 { (exit 77); exit 77; }; }
2963fi
2964
2965ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002966{ echo "$as_me:$LINENO: result: $ac_file" >&5
2967echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002968
Reid Spencera773bd52006-08-04 18:18:08 +00002969# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002970# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002971{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2972echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002973# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2974# If not cross compiling, check that we can run a simple program.
2975if test "$cross_compiling" != yes; then
2976 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 cross_compiling=no
2987 else
2988 if test "$cross_compiling" = maybe; then
2989 cross_compiling=yes
2990 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002992If you meant to cross compile, use \`--host'.
2993See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002994echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002995If you meant to cross compile, use \`--host'.
2996See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002997 { (exit 1); exit 1; }; }
2998 fi
2999 fi
3000fi
Reid Spencera773bd52006-08-04 18:18:08 +00003001{ echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003003
John Criswell0c38eaf2003-09-10 15:17:25 +00003004rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00003005ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00003006# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00003007# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00003008{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3010{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003012
Reid Spencera773bd52006-08-04 18:18:08 +00003013{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3015if { (ac_try="$ac_link"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; then
3025 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3026# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3027# work properly (i.e., refer to `conftest.exe'), while it won't with
3028# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003029for ac_file in conftest.exe conftest conftest.*; do
3030 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003031 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003034 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003035 * ) break;;
3036 esac
3037done
3038else
John Criswell0c38eaf2003-09-10 15:17:25 +00003039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3040See \`config.log' for more details." >&5
3041echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3042See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003043 { (exit 1); exit 1; }; }
3044fi
3045
3046rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003047{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3048echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003049
3050rm -f conftest.$ac_ext
3051EXEEXT=$ac_cv_exeext
3052ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003053{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3054echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003055if test "${ac_cv_objext+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003064
John Criswell7a73b802003-06-30 21:59:07 +00003065int
3066main ()
3067{
3068
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003086 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 break;;
3090 esac
3091done
3092else
3093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3097See \`config.log' for more details." >&5
3098echo "$as_me: error: cannot compute suffix of object files: cannot compile
3099See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003100 { (exit 1); exit 1; }; }
3101fi
3102
3103rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104fi
Reid Spencera773bd52006-08-04 18:18:08 +00003105{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3106echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003107OBJEXT=$ac_cv_objext
3108ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003109{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3110echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003111if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003120
John Criswell7a73b802003-06-30 21:59:07 +00003121int
3122main ()
3123{
3124#ifndef __GNUC__
3125 choke me
3126#endif
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003166 ac_compiler_gnu=yes
3167else
3168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003169sed 's/^/| /' conftest.$ac_ext >&5
3170
Reid Spencera773bd52006-08-04 18:18:08 +00003171 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003172fi
Reid Spencera773bd52006-08-04 18:18:08 +00003173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003175ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003176
3177fi
Reid Spencera773bd52006-08-04 18:18:08 +00003178{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3179echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003180GCC=`test $ac_compiler_gnu = yes && echo yes`
3181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003183{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003185if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
Reid Spencera773bd52006-08-04 18:18:08 +00003188 ac_save_c_werror_flag=$ac_c_werror_flag
3189 ac_c_werror_flag=yes
3190 ac_cv_prog_cc_g=no
3191 CFLAGS="-g"
3192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003193/* confdefs.h. */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003198
John Criswell7a73b802003-06-30 21:59:07 +00003199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003208if { (ac_try="$ac_compile"
3209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003242else
3243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003244sed 's/^/| /' conftest.$ac_ext >&5
3245
Reid Spencera773bd52006-08-04 18:18:08 +00003246 CFLAGS=""
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (ac_try="$ac_compile"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003296 :
3297else
3298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3302 CFLAGS="-g"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003352 ac_cv_prog_cc_g=yes
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357
John Criswell7a73b802003-06-30 21:59:07 +00003358fi
Reid Spencera773bd52006-08-04 18:18:08 +00003359
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003361fi
Reid Spencera773bd52006-08-04 18:18:08 +00003362
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3368fi
3369{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374 if test "$GCC" = yes; then
3375 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003376 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003378 fi
3379else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380 if test "$GCC" = yes; then
3381 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003382 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003384 fi
3385fi
Reid Spencera773bd52006-08-04 18:18:08 +00003386{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3387echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3388if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
Reid Spencera773bd52006-08-04 18:18:08 +00003391 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_save_CC=$CC
3393cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399#include <stdarg.h>
3400#include <stdio.h>
3401#include <sys/types.h>
3402#include <sys/stat.h>
3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404struct buf { int x; };
3405FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406static char *e (p, i)
3407 char **p;
3408 int i;
3409{
3410 return p[i];
3411}
3412static char *f (char * (*g) (char **, int), char **p, ...)
3413{
3414 char *s;
3415 va_list v;
3416 va_start (v,p);
3417 s = g (p, va_arg (v,int));
3418 va_end (v);
3419 return s;
3420}
3421
3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003425 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003428 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
Reid Spencera773bd52006-08-04 18:18:08 +00003431/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3433#define FOO(x) 'x'
3434int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436int test (int i, double x);
3437struct s1 {int (*f) (int a);};
3438struct s2 {int (*f) (double a);};
3439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440int argc;
3441char **argv;
3442int
3443main ()
3444{
3445return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3446 ;
3447 return 0;
3448}
3449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452do
3453 CC="$ac_save_CC $ac_arg"
3454 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003455if { (ac_try="$ac_compile"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003467 (exit $ac_status); } &&
3468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_try") 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_try") 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003488 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489else
3490 echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
Reid Spencera773bd52006-08-04 18:18:08 +00003493
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494fi
Reid Spencera773bd52006-08-04 18:18:08 +00003495
3496rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498done
Reid Spencera773bd52006-08-04 18:18:08 +00003499rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500CC=$ac_save_CC
3501
3502fi
Reid Spencera773bd52006-08-04 18:18:08 +00003503# AC_CACHE_VAL
3504case "x$ac_cv_prog_cc_c89" in
3505 x)
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507echo "${ECHO_T}none needed" >&6; } ;;
3508 xno)
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003512 CC="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515esac
3516
John Criswell0c38eaf2003-09-10 15:17:25 +00003517
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003530{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003532# On Suns, sometimes $CPP names a directory.
3533if test -n "$CPP" && test -d "$CPP"; then
3534 CPP=
3535fi
3536if test -z "$CPP"; then
3537 if test "${ac_cv_prog_CPP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 # Double quotes because CPP needs to be expanded
3541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542 do
3543 ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563 Syntax error
3564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003565if { (ac_try="$ac_cpp conftest.$ac_ext"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 else
3582 ac_cpp_err=
3583 fi
3584else
3585 ac_cpp_err=yes
3586fi
3587if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 :
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 # Broken: fails on valid input.
3594continue
3595fi
Reid Spencera773bd52006-08-04 18:18:08 +00003596
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597rm -f conftest.err conftest.$ac_ext
3598
Reid Spencera773bd52006-08-04 18:18:08 +00003599 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607#include <ac_nonexistent.h>
3608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003609if { (ac_try="$ac_cpp conftest.$ac_ext"
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 else
3626 ac_cpp_err=
3627 fi
3628else
3629 ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632 # Broken: success on invalid input.
3633continue
3634else
3635 echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
Reid Spencera773bd52006-08-04 18:18:08 +00003642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643rm -f conftest.err conftest.$ac_ext
3644
3645done
3646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647rm -f conftest.err conftest.$ac_ext
3648if $ac_preproc_ok; then
3649 break
3650fi
3651
3652 done
3653 ac_cv_prog_CPP=$CPP
3654
3655fi
3656 CPP=$ac_cv_prog_CPP
3657else
3658 ac_cv_prog_CPP=$CPP
3659fi
Reid Spencera773bd52006-08-04 18:18:08 +00003660{ echo "$as_me:$LINENO: result: $CPP" >&5
3661echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003662ac_preproc_ok=false
3663for ac_c_preproc_warn_flag in '' yes
3664do
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677#ifdef __STDC__
3678# include <limits.h>
3679#else
3680# include <assert.h>
3681#endif
3682 Syntax error
3683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003684if { (ac_try="$ac_cpp conftest.$ac_ext"
3685case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688esac
3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3700 else
3701 ac_cpp_err=
3702 fi
3703else
3704 ac_cpp_err=yes
3705fi
3706if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003707 :
3708else
3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 # Broken: fails on valid input.
3713continue
3714fi
Reid Spencera773bd52006-08-04 18:18:08 +00003715
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003716rm -f conftest.err conftest.$ac_ext
3717
Reid Spencera773bd52006-08-04 18:18:08 +00003718 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
3726#include <ac_nonexistent.h>
3727_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003728if { (ac_try="$ac_cpp conftest.$ac_ext"
3729case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732esac
3733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 else
3745 ac_cpp_err=
3746 fi
3747else
3748 ac_cpp_err=yes
3749fi
3750if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003751 # Broken: success on invalid input.
3752continue
3753else
3754 echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 # Passes both tests.
3758ac_preproc_ok=:
3759break
3760fi
Reid Spencera773bd52006-08-04 18:18:08 +00003761
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003762rm -f conftest.err conftest.$ac_ext
3763
3764done
3765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766rm -f conftest.err conftest.$ac_ext
3767if $ac_preproc_ok; then
3768 :
3769else
3770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771See \`config.log' for more details." >&5
3772echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3775fi
3776
John Criswell7a73b802003-06-30 21:59:07 +00003777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
John Criswell7a73b802003-06-30 21:59:07 +00003783
Reid Spencera773bd52006-08-04 18:18:08 +00003784{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003786if test "${ac_cv_path_GREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
Reid Spencera773bd52006-08-04 18:18:08 +00003789 # Extract the first word of "grep ggrep" to use in msg output
3790if test -z "$GREP"; then
3791set dummy grep ggrep; ac_prog_name=$2
3792if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
Reid Spencera773bd52006-08-04 18:18:08 +00003795 ac_path_GREP_found=false
3796# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003802 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003803 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003805 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808case `"$ac_path_GREP" --version 2>&1` in
3809*GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811*)
3812 ac_count=0
3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814 while :
3815 do
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 ac_count=`expr $ac_count + 1`
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003827 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832esac
3833
3834
3835 $ac_path_GREP_found && break 3
3836 done
3837done
3838
3839done
3840IFS=$as_save_IFS
3841
3842
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003843fi
Reid Spencera773bd52006-08-04 18:18:08 +00003844
3845GREP="$ac_cv_path_GREP"
3846if test -z "$GREP"; then
3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849 { (exit 1); exit 1; }; }
3850fi
3851
3852else
3853 ac_cv_path_GREP=$GREP
3854fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003855
John Criswell7a73b802003-06-30 21:59:07 +00003856
Reid Spencera773bd52006-08-04 18:18:08 +00003857fi
3858{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3861
3862
3863{ echo "$as_me:$LINENO: checking for egrep" >&5
3864echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869 then ac_cv_path_EGREP="$GREP -E"
3870 else
3871 # Extract the first word of "egrep" to use in msg output
3872if test -z "$EGREP"; then
3873set dummy egrep; ac_prog_name=$2
3874if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 ac_path_EGREP_found=false
3878# Loop through the user's path and test for each of PROGNAME-LIST
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in egrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003887 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890case `"$ac_path_EGREP" --version 2>&1` in
3891*GNU*)
3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3893*)
3894 ac_count=0
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP="$ac_path_EGREP"
3908 ac_path_EGREP_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
3915
3916
3917 $ac_path_EGREP_found && break 3
3918 done
3919done
3920
3921done
3922IFS=$as_save_IFS
3923
3924
3925fi
3926
3927EGREP="$ac_cv_path_EGREP"
3928if test -z "$EGREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3932fi
3933
3934else
3935 ac_cv_path_EGREP=$EGREP
3936fi
3937
3938
3939 fi
3940fi
3941{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3944
3945
3946{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003948if test "${ac_cv_header_stdc+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003957#include <stdlib.h>
3958#include <stdarg.h>
3959#include <string.h>
3960#include <float.h>
3961
John Criswell0c38eaf2003-09-10 15:17:25 +00003962int
3963main ()
3964{
3965
3966 ;
3967 return 0;
3968}
John Criswell7a73b802003-06-30 21:59:07 +00003969_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003970rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003971if { (ac_try="$ac_compile"
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
3976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004004 ac_cv_header_stdc=yes
4005else
4006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004007sed 's/^/| /' conftest.$ac_ext >&5
4008
Reid Spencera773bd52006-08-04 18:18:08 +00004009 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004010fi
Reid Spencera773bd52006-08-04 18:18:08 +00004011
4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004013
4014if test $ac_cv_header_stdc = yes; then
4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004022#include <string.h>
4023
4024_ACEOF
4025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004026 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004027 :
4028else
4029 ac_cv_header_stdc=no
4030fi
4031rm -f conftest*
4032
4033fi
4034
4035if test $ac_cv_header_stdc = yes; then
4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4037 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004043#include <stdlib.h>
4044
4045_ACEOF
4046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004047 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004048 :
4049else
4050 ac_cv_header_stdc=no
4051fi
4052rm -f conftest*
4053
4054fi
4055
4056if test $ac_cv_header_stdc = yes; then
4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4058 if test "$cross_compiling" = yes; then
4059 :
4060else
4061 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004067#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004068#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004069#if ((' ' & 0x0FF) == 0x020)
4070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004073# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004074 (('a' <= (c) && (c) <= 'i') \
4075 || ('j' <= (c) && (c) <= 'r') \
4076 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078#endif
4079
4080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4081int
4082main ()
4083{
4084 int i;
4085 for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004087 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004088 return 2;
4089 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004090}
4091_ACEOF
4092rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004093if { (ac_try="$ac_link"
4094case "(($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_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 :
4113else
4114 echo "$as_me: program exited with status $ac_status" >&5
4115echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004116sed 's/^/| /' conftest.$ac_ext >&5
4117
John Criswell7a73b802003-06-30 21:59:07 +00004118( exit $ac_status )
4119ac_cv_header_stdc=no
4120fi
Reid Spencera773bd52006-08-04 18:18:08 +00004121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122fi
4123
4124
John Criswell7a73b802003-06-30 21:59:07 +00004125fi
4126fi
Reid Spencera773bd52006-08-04 18:18:08 +00004127{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4128echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004129if test $ac_cv_header_stdc = yes; then
4130
4131cat >>confdefs.h <<\_ACEOF
4132#define STDC_HEADERS 1
4133_ACEOF
4134
4135fi
4136
Reid Spencera773bd52006-08-04 18:18:08 +00004137# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148 inttypes.h stdint.h unistd.h
4149do
4150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
4162$ac_includes_default
4163
4164#include <$ac_header>
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004200 eval "$as_ac_Header=yes"
4201else
4202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 eval "$as_ac_Header=no"
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210ac_res=`eval echo '${'$as_ac_Header'}'`
4211 { echo "$as_me:$LINENO: result: $ac_res" >&5
4212echo "${ECHO_T}$ac_res" >&6; }
4213if test `eval echo '${'$as_ac_Header'}'` = yes; then
4214 cat >>confdefs.h <<_ACEOF
4215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4216_ACEOF
4217
4218fi
4219
4220done
4221
4222
4223{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4224echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4225if test "${ac_cv_c_bigendian+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228 # See if sys/param.h defines the BYTE_ORDER macro.
4229cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235#include <sys/types.h>
4236#include <sys/param.h>
4237
4238int
4239main ()
4240{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004241#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004242 bogus endian macros
4243#endif
4244
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004283 # It does; now see whether it defined to BIG_ENDIAN or not.
4284cat >conftest.$ac_ext <<_ACEOF
4285/* confdefs.h. */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
4289/* end confdefs.h. */
4290#include <sys/types.h>
4291#include <sys/param.h>
4292
4293int
4294main ()
4295{
4296#if BYTE_ORDER != BIG_ENDIAN
4297 not big endian
4298#endif
4299
4300 ;
4301 return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (ac_try="$ac_compile"
4306case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 ac_cv_c_bigendian=yes
4339else
4340 echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 ac_cv_c_bigendian=no
4344fi
4345
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347else
4348 echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 # It does not; compile a test program.
4352if test "$cross_compiling" = yes; then
4353 # try to guess the endianness by grepping values into an object file
4354 ac_cv_c_bigendian=unknown
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4362short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4363void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4364short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4365short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4366void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4367int
4368main ()
4369{
4370 _ascii (); _ebcdic ();
4371 ;
4372 return 0;
4373}
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (ac_try="$ac_compile"
4377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004409 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4410 ac_cv_c_bigendian=yes
4411fi
4412if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4413 if test "$ac_cv_c_bigendian" = unknown; then
4414 ac_cv_c_bigendian=no
4415 else
4416 # finding both strings is unlikely to happen, but who knows?
4417 ac_cv_c_bigendian=unknown
4418 fi
4419fi
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424
4425fi
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428else
4429 cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435$ac_includes_default
4436int
4437main ()
4438{
4439
4440 /* Are we little or big endian? From Harbison&Steele. */
4441 union
4442 {
4443 long int l;
4444 char c[sizeof (long int)];
4445 } u;
4446 u.l = 1;
4447 return u.c[sizeof (long int) - 1] == 1;
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
4454if { (ac_try="$ac_link"
4455case "(($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_link") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_c_bigendian=no
4474else
4475 echo "$as_me: program exited with status $ac_status" >&5
4476echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479( exit $ac_status )
4480ac_cv_c_bigendian=yes
4481fi
4482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483fi
4484
4485
4486fi
4487
4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489fi
4490{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4491echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4492case $ac_cv_c_bigendian in
4493 yes)
4494 ENDIAN=big
4495 ;;
4496 no)
4497 ENDIAN=little
4498 ;;
4499 *)
4500 { { echo "$as_me:$LINENO: error: unknown endianness
4501presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4502echo "$as_me: error: unknown endianness
4503presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4504 { (exit 1); exit 1; }; } ;;
4505esac
4506
4507
4508if test "$cross_compiling" = yes; then
4509 LLVM_CROSS_COMPILING=1
4510
4511
4512{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4513echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4514if test "${ac_cv_build_exeext+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4518 ac_cv_build_exeext=.exe
4519else
4520 ac_build_prefix=${build_alias}-
4521
4522 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4523set dummy ${ac_build_prefix}gcc; ac_word=$2
4524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529 if test -n "$BUILD_CC"; then
4530 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004538 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 +00004539 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543done
4544done
4545IFS=$as_save_IFS
4546
4547fi
4548fi
4549BUILD_CC=$ac_cv_prog_BUILD_CC
4550if test -n "$BUILD_CC"; then
4551 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4552echo "${ECHO_T}$BUILD_CC" >&6; }
4553else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6; }
4556fi
4557
4558
4559 if test -z "$BUILD_CC"; then
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561set dummy gcc; ac_word=$2
4562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4564if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567 if test -n "$BUILD_CC"; then
4568 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4569else
4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH
4572do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004576 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 +00004577 ac_cv_prog_BUILD_CC="gcc"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581done
4582done
4583IFS=$as_save_IFS
4584
4585fi
4586fi
4587BUILD_CC=$ac_cv_prog_BUILD_CC
4588if test -n "$BUILD_CC"; then
4589 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4590echo "${ECHO_T}$BUILD_CC" >&6; }
4591else
4592 { echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6; }
4594fi
4595
4596
4597 if test -z "$BUILD_CC"; then
4598 # Extract the first word of "cc", so it can be a program name with args.
4599set dummy cc; ac_word=$2
4600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test -n "$BUILD_CC"; then
4606 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4607else
4608 ac_prog_rejected=no
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004615 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 +00004616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4617 ac_prog_rejected=yes
4618 continue
4619 fi
4620 ac_cv_prog_BUILD_CC="cc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625done
4626IFS=$as_save_IFS
4627
4628if test $ac_prog_rejected = yes; then
4629 # We found a bogon in the path, so make sure we never use it.
4630 set dummy $ac_cv_prog_BUILD_CC
4631 shift
4632 if test $# != 0; then
4633 # We chose a different compiler from the bogus one.
4634 # However, it has the same basename, so the bogon will be chosen
4635 # first if we set BUILD_CC to just the basename; use the full file name.
4636 shift
4637 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4638 fi
4639fi
4640fi
4641fi
4642BUILD_CC=$ac_cv_prog_BUILD_CC
4643if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645echo "${ECHO_T}$BUILD_CC" >&6; }
4646else
4647 { echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6; }
4649fi
4650
4651
4652 fi
4653 fi
4654 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4655echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4656 { (exit 1); exit 1; }; }
4657 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4658 rm -f conftest*
4659 echo 'int main () { return 0; }' > conftest.$ac_ext
4660 ac_cv_build_exeext=
4661 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4662 (eval $ac_build_link) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 for file in conftest.*; do
4667 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004668 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004669 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4670 esac
4671 done
4672 else
4673 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4674echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4675 { (exit 1); exit 1; }; }
4676 fi
4677 rm -f conftest*
4678 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4679fi
4680fi
4681
4682BUILD_EXEEXT=""
4683test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4684{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4685echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4686ac_build_exeext=$BUILD_EXEEXT
4687
Jim Grosbach673612e2008-10-02 22:56:44 +00004688 ac_build_prefix=${build_alias}-
4689 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4690set dummy ${ac_build_prefix}g++; ac_word=$2
4691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 if test -n "$BUILD_CXX"; then
4697 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004705 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 +00004706 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711done
4712IFS=$as_save_IFS
4713
4714fi
4715fi
4716BUILD_CXX=$ac_cv_prog_BUILD_CXX
4717if test -n "$BUILD_CXX"; then
4718 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4719echo "${ECHO_T}$BUILD_CXX" >&6; }
4720else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6; }
4723fi
4724
4725
4726 if test -z "$BUILD_CXX"; then
4727 # Extract the first word of "g++", so it can be a program name with args.
4728set dummy g++; ac_word=$2
4729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
4734 if test -n "$BUILD_CXX"; then
4735 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004743 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 +00004744 ac_cv_prog_BUILD_CXX="g++"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754BUILD_CXX=$ac_cv_prog_BUILD_CXX
4755if test -n "$BUILD_CXX"; then
4756 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4757echo "${ECHO_T}$BUILD_CXX" >&6; }
4758else
4759 { echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6; }
4761fi
4762
4763
4764 if test -z "$BUILD_CXX"; then
4765 # Extract the first word of "c++", so it can be a program name with args.
4766set dummy c++; ac_word=$2
4767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772 if test -n "$BUILD_CXX"; then
4773 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4774else
4775 ac_prog_rejected=no
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004782 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 +00004783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4784 ac_prog_rejected=yes
4785 continue
4786 fi
4787 ac_cv_prog_BUILD_CXX="c++"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_BUILD_CXX
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set BUILD_CXX to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4805 fi
4806fi
4807fi
4808fi
4809BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812echo "${ECHO_T}$BUILD_CXX" >&6; }
4813else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6; }
4816fi
4817
4818
4819 fi
4820 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004821else
4822 LLVM_CROSS_COMPILING=0
4823
4824fi
4825
Nick Lewycky5b28f862009-04-10 05:18:27 +00004826if 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 +00004827 cvsbuild="yes"
4828 optimize="no"
4829 CVSBUILD=CVSBUILD=1
4830
4831else
4832 cvsbuild="no"
4833 optimize="yes"
4834fi
4835
4836
4837# Check whether --enable-optimized was given.
4838if test "${enable_optimized+set}" = set; then
4839 enableval=$enable_optimized;
4840else
4841 enableval=$optimize
4842fi
4843
4844if test ${enableval} = "no" ; then
4845 ENABLE_OPTIMIZED=
4846
4847else
4848 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4849
4850fi
4851
David Greene2a5a12c2009-04-17 14:50:39 +00004852# Check whether --enable-profiling was given.
4853if test "${enable_profiling+set}" = set; then
4854 enableval=$enable_profiling;
4855else
4856 enableval="no"
4857fi
4858
4859if test ${enableval} = "no" ; then
4860 ENABLE_PROFILING=
4861
4862else
4863 ENABLE_PROFILING=ENABLE_PROFILING=1
4864
4865fi
4866
Reid Spencera773bd52006-08-04 18:18:08 +00004867# Check whether --enable-assertions was given.
4868if test "${enable_assertions+set}" = set; then
4869 enableval=$enable_assertions;
4870else
4871 enableval="yes"
4872fi
4873
4874if test ${enableval} = "yes" ; then
4875 DISABLE_ASSERTIONS=
4876
4877else
4878 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4879
4880fi
4881
David Greenea696d242007-06-28 19:36:08 +00004882# Check whether --enable-expensive-checks was given.
4883if test "${enable_expensive_checks+set}" = set; then
4884 enableval=$enable_expensive_checks;
4885else
4886 enableval="no"
4887fi
4888
4889if test ${enableval} = "yes" ; then
4890 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4891
4892 EXPENSIVE_CHECKS=yes
4893
4894else
4895 ENABLE_EXPENSIVE_CHECKS=
4896
4897 EXPENSIVE_CHECKS=no
4898
4899fi
4900
Reid Spencer8b2e1412006-11-17 03:32:33 +00004901# Check whether --enable-debug-runtime was given.
4902if test "${enable_debug_runtime+set}" = set; then
4903 enableval=$enable_debug_runtime;
4904else
4905 enableval=no
4906fi
4907
4908if test ${enableval} = "no" ; then
4909 DEBUG_RUNTIME=
4910
4911else
4912 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4913
4914fi
4915
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004916# Check whether --enable-debug-symbols was given.
4917if test "${enable_debug_symbols+set}" = set; then
4918 enableval=$enable_debug_symbols;
4919else
4920 enableval=no
4921fi
4922
4923if test ${enableval} = "no" ; then
4924 DEBUG_SYMBOLS=
4925
4926else
4927 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4928
4929fi
4930
Reid Spencera773bd52006-08-04 18:18:08 +00004931# Check whether --enable-jit was given.
4932if test "${enable_jit+set}" = set; then
4933 enableval=$enable_jit;
4934else
4935 enableval=default
4936fi
4937
4938if test ${enableval} = "no"
4939then
4940 JIT=
4941
4942else
4943 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004944 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004945 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004946 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004947 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004948 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004949 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004950 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004951 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004952 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004953 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004954 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004955 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004956 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004957 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004958 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004959 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004960 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004961 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004962 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004963 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004964 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004965 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004966 Blackfin) TARGET_HAS_JIT=0
4967 ;;
4968 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004969 ;;
4970 esac
4971fi
4972
4973# Check whether --enable-doxygen was given.
4974if test "${enable_doxygen+set}" = set; then
4975 enableval=$enable_doxygen;
4976else
4977 enableval=default
4978fi
4979
4980case "$enableval" in
4981 yes) ENABLE_DOXYGEN=1
4982 ;;
4983 no) ENABLE_DOXYGEN=0
4984 ;;
4985 default) ENABLE_DOXYGEN=0
4986 ;;
4987 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4988echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4989 { (exit 1); exit 1; }; } ;;
4990esac
4991
4992# Check whether --enable-threads was given.
4993if test "${enable_threads+set}" = set; then
4994 enableval=$enable_threads;
4995else
Reid Spencer65c5d752006-11-05 17:08:18 +00004996 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004997fi
4998
4999case "$enableval" in
5000 yes) ENABLE_THREADS=1
5001 ;;
5002 no) ENABLE_THREADS=0
5003 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005004 default) ENABLE_THREADS=1
5005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5007echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009esac
5010
Owen Andersona8603702009-05-19 22:18:56 +00005011cat >>confdefs.h <<_ACEOF
5012#define ENABLE_THREADS $ENABLE_THREADS
5013_ACEOF
5014
5015
Reid Spencer89b0d992006-12-16 22:07:52 +00005016# Check whether --enable-pic was given.
5017if test "${enable_pic+set}" = set; then
5018 enableval=$enable_pic;
5019else
5020 enableval=default
5021fi
5022
5023case "$enableval" in
5024 yes) ENABLE_PIC=1
5025 ;;
5026 no) ENABLE_PIC=0
5027 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005028 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005029 ;;
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5031echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5033esac
5034
5035cat >>confdefs.h <<_ACEOF
5036#define ENABLE_PIC $ENABLE_PIC
5037_ACEOF
5038
5039
Reid Spencera773bd52006-08-04 18:18:08 +00005040TARGETS_TO_BUILD=""
5041# Check whether --enable-targets was given.
5042if test "${enable_targets+set}" = set; then
5043 enableval=$enable_targets;
5044else
5045 enableval=all
5046fi
5047
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005048if test "$enableval" = host-only ; then
5049 enableval=host
5050fi
Reid Spencera773bd52006-08-04 18:18:08 +00005051case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005052 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 +00005053 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5054 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005055 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5057 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5058 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5059 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5060 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5061 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5062 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5063 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5064 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5065 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5066 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5067 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5068 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5069 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5070 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005071 host) case "$llvm_cv_target_arch" in
5072 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5074 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5075 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5076 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5077 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5078 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5079 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5080 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5081 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5082 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5083 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5084 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5085 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5086echo "$as_me: error: Can not set target to build" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005089 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5090echo "$as_me: error: Unrecognized target $a_target" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092 esac
5093 done
5094 ;;
5095esac
Reid Spencera773bd52006-08-04 18:18:08 +00005096TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5097
5098
Douglas Gregor0711c302009-06-17 00:43:20 +00005099# Determine whether we are building LLVM support for the native architecture.
5100# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5101for a_target in $TARGETS_TO_BUILD; do
5102 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005103 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005104
5105cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005106#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005107_ACEOF
5108
5109 fi
5110done
5111
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005112# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5113# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005114LLVM_ENUM_TARGETS=""
5115LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005116LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005117LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005118for target_to_build in $TARGETS_TO_BUILD; do
5119 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5120 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5121 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5122 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005123 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5124 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5125 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005126 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5127 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5128 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005129done
5130
5131
5132
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005133
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005134
Reid Spencer65c5d752006-11-05 17:08:18 +00005135# Check whether --enable-cbe-printf-a was given.
5136if test "${enable_cbe_printf_a+set}" = set; then
5137 enableval=$enable_cbe_printf_a;
5138else
5139 enableval=default
5140fi
5141
5142case "$enableval" in
5143 yes) ENABLE_CBE_PRINTF_A=1
5144 ;;
5145 no) ENABLE_CBE_PRINTF_A=0
5146 ;;
5147 default) ENABLE_CBE_PRINTF_A=1
5148 ;;
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5150echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152esac
5153
5154cat >>confdefs.h <<_ACEOF
5155#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5156_ACEOF
5157
5158
Reid Spencera773bd52006-08-04 18:18:08 +00005159
5160# Check whether --with-llvmgccdir was given.
5161if test "${with_llvmgccdir+set}" = set; then
5162 withval=$with_llvmgccdir;
5163else
5164 withval=default
5165fi
5166
5167case "$withval" in
5168 default) WITH_LLVMGCCDIR=default ;;
5169 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5171echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5173esac
5174
5175
Devang Patel5d28b882007-12-04 22:54:47 +00005176# Check whether --with-llvmgcc was given.
5177if test "${with_llvmgcc+set}" = set; then
5178 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5179 WITH_LLVMGCCDIR=""
5180fi
5181
5182
5183
5184# Check whether --with-llvmgxx was given.
5185if test "${with_llvmgxx+set}" = set; then
5186 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5187 WITH_LLVMGCCDIR=""
5188fi
5189
Douglas Gregor01746742009-05-11 18:05:52 +00005190
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005191if test -n "$LLVMGCC"; then
5192 LLVMGCCCOMMAND="$LLVMGCC"
5193fi
5194
5195if test -n "$LLVMGXX"; then
5196 LLVMGXXCOMMAND="$LLVMGXX"
5197fi
Devang Patel5d28b882007-12-04 22:54:47 +00005198
5199if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5200 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5201echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5202 { (exit 1); exit 1; }; };
5203fi
5204
5205if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5206 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5207echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5208 { (exit 1); exit 1; }; };
5209fi
5210
5211
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005212# Check whether --with-optimize-option was given.
5213if test "${with_optimize_option+set}" = set; then
5214 withval=$with_optimize_option;
5215else
5216 withval=default
5217fi
5218
5219{ echo "$as_me:$LINENO: checking optimization flags" >&5
5220echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5221case "$withval" in
5222 default)
5223 case "$llvm_cv_os_type" in
5224 MingW) optimize_option=-O3 ;;
5225 *) optimize_option=-O2 ;;
5226 esac ;;
5227 *) optimize_option="$withval" ;;
5228esac
5229OPTIMIZE_OPTION=$optimize_option
5230
5231{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5232echo "${ECHO_T}$optimize_option" >&6; }
5233
5234
Reid Spencera773bd52006-08-04 18:18:08 +00005235# Check whether --with-extra-options was given.
5236if test "${with_extra_options+set}" = set; then
5237 withval=$with_extra_options;
5238else
5239 withval=default
5240fi
5241
5242case "$withval" in
5243 default) EXTRA_OPTIONS= ;;
5244 *) EXTRA_OPTIONS=$withval ;;
5245esac
5246EXTRA_OPTIONS=$EXTRA_OPTIONS
5247
5248
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005249# Check whether --enable-bindings was given.
5250if test "${enable_bindings+set}" = set; then
5251 enableval=$enable_bindings;
5252else
5253 enableval=default
5254fi
5255
5256BINDINGS_TO_BUILD=""
5257case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005258 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005259 all ) BINDINGS_TO_BUILD="ocaml" ;;
5260 none | no) BINDINGS_TO_BUILD="" ;;
5261 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5262 case "$a_binding" in
5263 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5265echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5267 esac
5268 done
5269 ;;
5270esac
5271
Reid Spencera773bd52006-08-04 18:18:08 +00005272
Gordon Henriksenf0915682007-10-02 16:42:22 +00005273# Check whether --with-ocaml-libdir was given.
5274if test "${with_ocaml_libdir+set}" = set; then
5275 withval=$with_ocaml_libdir;
5276else
5277 withval=auto
5278fi
5279
5280case "$withval" in
5281 auto) with_ocaml_libdir="$withval" ;;
5282 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5283 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5284echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286esac
5287
5288
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005289# Check whether --with-c-include-dir was given.
5290if test "${with_c_include_dir+set}" = set; then
5291 withval=$with_c_include_dir;
5292else
5293 withval=""
5294fi
5295
5296
5297cat >>confdefs.h <<_ACEOF
5298#define C_INCLUDE_DIRS "$withval"
5299_ACEOF
5300
5301
5302
Rafael Espindola420d23c2009-11-16 19:46:55 +00005303# Check whether --with-cxx-include-root was given.
5304if test "${with_cxx_include_root+set}" = set; then
5305 withval=$with_cxx_include_root;
5306else
5307 withval=""
5308fi
5309
5310
5311cat >>confdefs.h <<_ACEOF
5312#define CXX_INCLUDE_ROOT "$withval"
5313_ACEOF
5314
5315
5316
5317# Check whether --with-cxx-include-arch was given.
5318if test "${with_cxx_include_arch+set}" = set; then
5319 withval=$with_cxx_include_arch;
5320else
5321 withval=""
5322fi
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define CXX_INCLUDE_ARCH "$withval"
5327_ACEOF
5328
5329
5330
5331# Check whether --with-cxx-include-32bit-dir was given.
5332if test "${with_cxx_include_32bit_dir+set}" = set; then
5333 withval=$with_cxx_include_32bit_dir;
5334else
5335 withval=""
5336fi
5337
5338
5339cat >>confdefs.h <<_ACEOF
5340#define CXX_INCLUDE_32BIT_DIR "$withval"
5341_ACEOF
5342
5343
5344
5345# Check whether --with-cxx-include-64bit-dir was given.
5346if test "${with_cxx_include_64bit_dir+set}" = set; then
5347 withval=$with_cxx_include_64bit_dir;
5348else
5349 withval=""
5350fi
5351
5352
5353cat >>confdefs.h <<_ACEOF
5354#define CXX_INCLUDE_64BIT_DIR "$withval"
5355_ACEOF
5356
5357
5358
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005359# Check whether --with-binutils-include was given.
5360if test "${with_binutils_include+set}" = set; then
5361 withval=$with_binutils_include;
5362else
5363 withval=default
5364fi
5365
5366case "$withval" in
5367 default) WITH_BINUTILS_INCDIR=default ;;
5368 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5369 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5370echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5371 { (exit 1); exit 1; }; } ;;
5372esac
5373if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5374 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5375
5376 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5377 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5378 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5379echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5380 { (exit 1); exit 1; }; };
5381 fi
5382fi
5383
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005384# Check whether --enable-libffi was given.
5385if test "${enable_libffi+set}" = set; then
5386 enableval=$enable_libffi;
5387else
5388 enableval=yes
5389fi
5390
5391case "$enableval" in
5392 yes) llvm_cv_enable_libffi="yes" ;;
5393 no) llvm_cv_enable_libffi="no" ;;
5394 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5395echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5396 { (exit 1); exit 1; }; } ;;
5397esac
5398
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005399if test "$llvm_cv_os_type" = "Win32" ; then
5400 llvmc_dynamic="yes"
5401else
5402 llvmc_dynamic="no"
5403fi
5404
5405# Check whether --enable-llvmc-dynamic was given.
5406if test "${enable_llvmc_dynamic+set}" = set; then
5407 enableval=$enable_llvmc_dynamic;
5408else
5409 enableval=$llvmc_dynamic
5410fi
5411
5412if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5413 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5414
5415else
5416 ENABLE_LLVMC_DYNAMIC=
5417
5418fi
5419
5420# Check whether --enable-llvmc-dynamic-plugins was given.
5421if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5422 enableval=$enable_llvmc_dynamic_plugins;
5423else
5424 enableval=yes
5425fi
5426
5427if test ${enableval} = "yes" ; then
5428 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5429
5430else
5431 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5432
5433fi
5434
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005435
Reid Spencera773bd52006-08-04 18:18:08 +00005436ac_ext=c
5437ac_cpp='$CPP $CPPFLAGS'
5438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5442echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5443# On Suns, sometimes $CPP names a directory.
5444if test -n "$CPP" && test -d "$CPP"; then
5445 CPP=
5446fi
5447if test -z "$CPP"; then
5448 if test "${ac_cv_prog_CPP+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451 # Double quotes because CPP needs to be expanded
5452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5453 do
5454 ac_preproc_ok=false
5455for ac_c_preproc_warn_flag in '' yes
5456do
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h. */
5469#ifdef __STDC__
5470# include <limits.h>
5471#else
5472# include <assert.h>
5473#endif
5474 Syntax error
5475_ACEOF
5476if { (ac_try="$ac_cpp conftest.$ac_ext"
5477case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 :
5500else
5501 echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 # Broken: fails on valid input.
5505continue
5506fi
5507
5508rm -f conftest.err conftest.$ac_ext
5509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518#include <ac_nonexistent.h>
5519_ACEOF
5520if { (ac_try="$ac_cpp conftest.$ac_ext"
5521case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536 else
5537 ac_cpp_err=
5538 fi
5539else
5540 ac_cpp_err=yes
5541fi
5542if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005543 # Broken: success on invalid input.
5544continue
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 # Passes both tests.
5550ac_preproc_ok=:
5551break
5552fi
5553
5554rm -f conftest.err conftest.$ac_ext
5555
5556done
5557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558rm -f conftest.err conftest.$ac_ext
5559if $ac_preproc_ok; then
5560 break
5561fi
5562
5563 done
5564 ac_cv_prog_CPP=$CPP
5565
5566fi
5567 CPP=$ac_cv_prog_CPP
5568else
5569 ac_cv_prog_CPP=$CPP
5570fi
5571{ echo "$as_me:$LINENO: result: $CPP" >&5
5572echo "${ECHO_T}$CPP" >&6; }
5573ac_preproc_ok=false
5574for ac_c_preproc_warn_flag in '' yes
5575do
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588#ifdef __STDC__
5589# include <limits.h>
5590#else
5591# include <assert.h>
5592#endif
5593 Syntax error
5594_ACEOF
5595if { (ac_try="$ac_cpp conftest.$ac_ext"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 else
5612 ac_cpp_err=
5613 fi
5614else
5615 ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005618 :
5619else
5620 echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 # Broken: fails on valid input.
5624continue
5625fi
5626
5627rm -f conftest.err conftest.$ac_ext
5628
5629 # OK, works on sane cases. Now check whether nonexistent headers
5630 # can be detected and how.
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637#include <ac_nonexistent.h>
5638_ACEOF
5639if { (ac_try="$ac_cpp conftest.$ac_ext"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005651 (exit $ac_status); } >/dev/null; then
5652 if test -s conftest.err; then
5653 ac_cpp_err=$ac_c_preproc_warn_flag
5654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5655 else
5656 ac_cpp_err=
5657 fi
5658else
5659 ac_cpp_err=yes
5660fi
5661if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005662 # Broken: success on invalid input.
5663continue
5664else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 # Passes both tests.
5669ac_preproc_ok=:
5670break
5671fi
5672
5673rm -f conftest.err conftest.$ac_ext
5674
5675done
5676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677rm -f conftest.err conftest.$ac_ext
5678if $ac_preproc_ok; then
5679 :
5680else
5681 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5682See \`config.log' for more details." >&5
5683echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5684See \`config.log' for more details." >&2;}
5685 { (exit 1); exit 1; }; }
5686fi
5687
5688ac_ext=c
5689ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693
5694ac_ext=c
5695ac_cpp='$CPP $CPPFLAGS'
5696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699if test -n "$ac_tool_prefix"; then
5700 for ac_prog in gcc
5701 do
5702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706if test "${ac_cv_prog_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005718 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 +00005719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723done
5724done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729CC=$ac_cv_prog_CC
5730if test -n "$CC"; then
5731 { echo "$as_me:$LINENO: result: $CC" >&5
5732echo "${ECHO_T}$CC" >&6; }
5733else
5734 { echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6; }
5736fi
5737
5738
5739 test -n "$CC" && break
5740 done
5741fi
5742if test -z "$CC"; then
5743 ac_ct_CC=$CC
5744 for ac_prog in gcc
5745do
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747set dummy $ac_prog; ac_word=$2
5748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 if test -n "$ac_ct_CC"; then
5754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005762 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 +00005763 ac_cv_prog_ac_ct_CC="$ac_prog"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767done
5768done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773ac_ct_CC=$ac_cv_prog_ac_ct_CC
5774if test -n "$ac_ct_CC"; then
5775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5776echo "${ECHO_T}$ac_ct_CC" >&6; }
5777else
5778 { echo "$as_me:$LINENO: result: no" >&5
5779echo "${ECHO_T}no" >&6; }
5780fi
5781
5782
5783 test -n "$ac_ct_CC" && break
5784done
5785
5786 if test "x$ac_ct_CC" = x; then
5787 CC=""
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790yes:)
5791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792whose name does not start with the host triplet. If you think this
5793configuration is useful to you, please write to autoconf@gnu.org." >&5
5794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795whose name does not start with the host triplet. If you think this
5796configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5797ac_tool_warned=yes ;;
5798esac
5799 CC=$ac_ct_CC
5800 fi
5801fi
5802
5803
5804test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5805See \`config.log' for more details." >&5
5806echo "$as_me: error: no acceptable C compiler found in \$PATH
5807See \`config.log' for more details." >&2;}
5808 { (exit 1); exit 1; }; }
5809
5810# Provide some information about the compiler.
5811echo "$as_me:$LINENO: checking for C compiler version" >&5
5812ac_compiler=`set X $ac_compile; echo $2`
5813{ (ac_try="$ac_compiler --version >&5"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compiler --version >&5") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }
5823{ (ac_try="$ac_compiler -v >&5"
5824case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compiler -v >&5") 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }
5833{ (ac_try="$ac_compiler -V >&5"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compiler -V >&5") 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }
5843
5844{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5845echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5846if test "${ac_cv_c_compiler_gnu+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859#ifndef __GNUC__
5860 choke me
5861#endif
5862
5863 ;
5864 return 0;
5865}
5866_ACEOF
5867rm -f conftest.$ac_objext
5868if { (ac_try="$ac_compile"
5869case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872esac
5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885esac
5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_try") 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005901 ac_compiler_gnu=yes
5902else
5903 echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_compiler_gnu=no
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910ac_cv_c_compiler_gnu=$ac_compiler_gnu
5911
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5914echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5915GCC=`test $ac_compiler_gnu = yes && echo yes`
5916ac_test_CFLAGS=${CFLAGS+set}
5917ac_save_CFLAGS=$CFLAGS
5918{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5919echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5920if test "${ac_cv_prog_cc_g+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923 ac_save_c_werror_flag=$ac_c_werror_flag
5924 ac_c_werror_flag=yes
5925 ac_cv_prog_cc_g=no
5926 CFLAGS="-g"
5927 cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h. */
5933
5934int
5935main ()
5936{
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005976 ac_cv_prog_cc_g=yes
5977else
5978 echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 CFLAGS=""
5982 cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h. */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h. */
5988
5989int
5990main ()
5991{
5992
5993 ;
5994 return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext
5998if { (ac_try="$ac_compile"
5999case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002esac
6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_compile") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest.$ac_objext'
6022 { (case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_try") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006031 :
6032else
6033 echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6037 CFLAGS="-g"
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006087 ac_cv_prog_cc_g=yes
6088else
6089 echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092
6093fi
6094
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_c_werror_flag=$ac_save_c_werror_flag
6103fi
6104{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6105echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6106if test "$ac_test_CFLAGS" = set; then
6107 CFLAGS=$ac_save_CFLAGS
6108elif test $ac_cv_prog_cc_g = yes; then
6109 if test "$GCC" = yes; then
6110 CFLAGS="-g -O2"
6111 else
6112 CFLAGS="-g"
6113 fi
6114else
6115 if test "$GCC" = yes; then
6116 CFLAGS="-O2"
6117 else
6118 CFLAGS=
6119 fi
6120fi
6121{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6122echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6123if test "${ac_cv_prog_cc_c89+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 ac_cv_prog_cc_c89=no
6127ac_save_CC=$CC
6128cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h. */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h. */
6134#include <stdarg.h>
6135#include <stdio.h>
6136#include <sys/types.h>
6137#include <sys/stat.h>
6138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6139struct buf { int x; };
6140FILE * (*rcsopen) (struct buf *, struct stat *, int);
6141static char *e (p, i)
6142 char **p;
6143 int i;
6144{
6145 return p[i];
6146}
6147static char *f (char * (*g) (char **, int), char **p, ...)
6148{
6149 char *s;
6150 va_list v;
6151 va_start (v,p);
6152 s = g (p, va_arg (v,int));
6153 va_end (v);
6154 return s;
6155}
6156
6157/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6158 function prototypes and stuff, but not '\xHH' hex character constants.
6159 These don't provoke an error unfortunately, instead are silently treated
6160 as 'x'. The following induces an error, until -std is added to get
6161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6162 array size at least. It's necessary to write '\x00'==0 to get something
6163 that's true only with -std. */
6164int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6165
6166/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6167 inside strings and character constants. */
6168#define FOO(x) 'x'
6169int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6170
6171int test (int i, double x);
6172struct s1 {int (*f) (int a);};
6173struct s2 {int (*f) (double a);};
6174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6175int argc;
6176char **argv;
6177int
6178main ()
6179{
6180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6187do
6188 CC="$ac_save_CC $ac_arg"
6189 rm -f conftest.$ac_objext
6190if { (ac_try="$ac_compile"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6204 { (case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_try") 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_try") 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006223 ac_cv_prog_cc_c89=$ac_arg
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228
6229fi
6230
6231rm -f core conftest.err conftest.$ac_objext
6232 test "x$ac_cv_prog_cc_c89" != "xno" && break
6233done
6234rm -f conftest.$ac_ext
6235CC=$ac_save_CC
6236
6237fi
6238# AC_CACHE_VAL
6239case "x$ac_cv_prog_cc_c89" in
6240 x)
6241 { echo "$as_me:$LINENO: result: none needed" >&5
6242echo "${ECHO_T}none needed" >&6; } ;;
6243 xno)
6244 { echo "$as_me:$LINENO: result: unsupported" >&5
6245echo "${ECHO_T}unsupported" >&6; } ;;
6246 *)
6247 CC="$CC $ac_cv_prog_cc_c89"
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6249echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6250esac
6251
6252
6253ac_ext=c
6254ac_cpp='$CPP $CPPFLAGS'
6255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259ac_ext=cpp
6260ac_cpp='$CXXCPP $CPPFLAGS'
6261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6264if test -z "$CXX"; then
6265 if test -n "$CCC"; then
6266 CXX=$CCC
6267 else
6268 if test -n "$ac_tool_prefix"; then
6269 for ac_prog in g++
6270 do
6271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_prog_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 if test -n "$CXX"; then
6279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006287 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 +00006288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298CXX=$ac_cv_prog_CXX
6299if test -n "$CXX"; then
6300 { echo "$as_me:$LINENO: result: $CXX" >&5
6301echo "${ECHO_T}$CXX" >&6; }
6302else
6303 { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
6305fi
6306
6307
6308 test -n "$CXX" && break
6309 done
6310fi
6311if test -z "$CXX"; then
6312 ac_ct_CXX=$CXX
6313 for ac_prog in g++
6314do
6315 # Extract the first word of "$ac_prog", so it can be a program name with args.
6316set dummy $ac_prog; ac_word=$2
6317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 if test -n "$ac_ct_CXX"; then
6323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006331 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 +00006332 ac_cv_prog_ac_ct_CXX="$ac_prog"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336done
6337done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6343if test -n "$ac_ct_CXX"; then
6344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6345echo "${ECHO_T}$ac_ct_CXX" >&6; }
6346else
6347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
6349fi
6350
6351
6352 test -n "$ac_ct_CXX" && break
6353done
6354
6355 if test "x$ac_ct_CXX" = x; then
6356 CXX="g++"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6361whose name does not start with the host triplet. If you think this
6362configuration is useful to you, please write to autoconf@gnu.org." >&5
6363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6364whose name does not start with the host triplet. If you think this
6365configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368 CXX=$ac_ct_CXX
6369 fi
6370fi
6371
6372 fi
6373fi
6374# Provide some information about the compiler.
6375echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6376ac_compiler=`set X $ac_compile; echo $2`
6377{ (ac_try="$ac_compiler --version >&5"
6378case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_compiler --version >&5") 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }
6387{ (ac_try="$ac_compiler -v >&5"
6388case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391esac
6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compiler -v >&5") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }
6397{ (ac_try="$ac_compiler -V >&5"
6398case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compiler -V >&5") 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6407
6408{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413 cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419
6420int
6421main ()
6422{
6423#ifndef __GNUC__
6424 choke me
6425#endif
6426
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (ac_try="$ac_compile"
6433case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436esac
6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6446 { (case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449esac
6450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_try") 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006465 ac_compiler_gnu=yes
6466else
6467 echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_compiler_gnu=no
6471fi
6472
6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6475
6476fi
6477{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6478echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6479GXX=`test $ac_compiler_gnu = yes && echo yes`
6480ac_test_CXXFLAGS=${CXXFLAGS+set}
6481ac_save_CXXFLAGS=$CXXFLAGS
6482{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6483echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6484if test "${ac_cv_prog_cxx_g+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6488 ac_cxx_werror_flag=yes
6489 ac_cv_prog_cxx_g=no
6490 CXXFLAGS="-g"
6491 cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h. */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506rm -f conftest.$ac_objext
6507if { (ac_try="$ac_compile"
6508case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_try") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006540 ac_cv_prog_cxx_g=yes
6541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 CXXFLAGS=""
6546 cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h. */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h. */
6552
6553int
6554main ()
6555{
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext
6562if { (ac_try="$ac_compile"
6563case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579esac
6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_try") 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006595 :
6596else
6597 echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6601 CXXFLAGS="-g"
6602 cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h. */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h. */
6608
6609int
6610main ()
6611{
6612
6613 ;
6614 return 0;
6615}
6616_ACEOF
6617rm -f conftest.$ac_objext
6618if { (ac_try="$ac_compile"
6619case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622esac
6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6632 { (case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_try") 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645esac
6646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_try") 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006651 ac_cv_prog_cxx_g=yes
6652else
6653 echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656
6657fi
6658
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663fi
6664
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6667fi
6668{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6669echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6670if test "$ac_test_CXXFLAGS" = set; then
6671 CXXFLAGS=$ac_save_CXXFLAGS
6672elif test $ac_cv_prog_cxx_g = yes; then
6673 if test "$GXX" = yes; then
6674 CXXFLAGS="-g -O2"
6675 else
6676 CXXFLAGS="-g"
6677 fi
6678else
6679 if test "$GXX" = yes; then
6680 CXXFLAGS="-O2"
6681 else
6682 CXXFLAGS=
6683 fi
6684fi
6685ac_ext=c
6686ac_cpp='$CPP $CPPFLAGS'
6687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
Reid Spencera773bd52006-08-04 18:18:08 +00006691
6692{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6693echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6694if test "${lt_cv_path_NM+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 if test -n "$NM"; then
6698 # Let the user override the test.
6699 lt_cv_path_NM="$NM"
6700else
6701 lt_nm_to_check="${ac_tool_prefix}nm"
6702 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6703 lt_nm_to_check="$lt_nm_to_check nm"
6704 fi
6705 for lt_tmp_nm in $lt_nm_to_check; do
6706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6708 IFS="$lt_save_ifs"
6709 test -z "$ac_dir" && ac_dir=.
6710 tmp_nm="$ac_dir/$lt_tmp_nm"
6711 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6712 # Check to see if the nm accepts a BSD-compat flag.
6713 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6714 # nm: unknown option "B" ignored
6715 # Tru64's nm complains that /dev/null is an invalid object file
6716 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6717 */dev/null* | *'Invalid file or object type'*)
6718 lt_cv_path_NM="$tmp_nm -B"
6719 break
6720 ;;
6721 *)
6722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6723 */dev/null*)
6724 lt_cv_path_NM="$tmp_nm -p"
6725 break
6726 ;;
6727 *)
6728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6729 continue # so that we can try to find one that supports BSD flags
6730 ;;
6731 esac
6732 ;;
6733 esac
6734 fi
6735 done
6736 IFS="$lt_save_ifs"
6737 done
6738 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6739fi
6740fi
6741{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6742echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6743NM="$lt_cv_path_NM"
6744
6745
6746
6747{ echo "$as_me:$LINENO: checking for GNU make" >&5
6748echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6749if test "${llvm_cv_gnu_make_command+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752 llvm_cv_gnu_make_command=''
6753 for a in "$MAKE" make gmake gnumake ; do
6754 if test -z "$a" ; then continue ; fi ;
6755 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6756 then
6757 llvm_cv_gnu_make_command=$a ;
6758 break;
6759 fi
6760 done
6761fi
6762{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6763echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6764 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6765 ifGNUmake='' ;
6766 else
6767 ifGNUmake='#' ;
6768 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6769echo "${ECHO_T}\"Not found\"" >&6; };
6770 fi
6771
6772
6773{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6774echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6775LN_S=$as_ln_s
6776if test "$LN_S" = "ln -s"; then
6777 { echo "$as_me:$LINENO: result: yes" >&5
6778echo "${ECHO_T}yes" >&6; }
6779else
6780 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6781echo "${ECHO_T}no, using $LN_S" >&6; }
6782fi
6783
6784# Extract the first word of "cmp", so it can be a program name with args.
6785set dummy cmp; ac_word=$2
6786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788if test "${ac_cv_path_CMP+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791 case $CMP in
6792 [\\/]* | ?:[\\/]*)
6793 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6794 ;;
6795 *)
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006802 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 +00006803 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6812 ;;
6813esac
6814fi
6815CMP=$ac_cv_path_CMP
6816if test -n "$CMP"; then
6817 { echo "$as_me:$LINENO: result: $CMP" >&5
6818echo "${ECHO_T}$CMP" >&6; }
6819else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824
6825# Extract the first word of "cp", so it can be a program name with args.
6826set dummy cp; ac_word=$2
6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829if test "${ac_cv_path_CP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832 case $CP in
6833 [\\/]* | ?:[\\/]*)
6834 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6835 ;;
6836 *)
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006843 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 +00006844 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6853 ;;
6854esac
6855fi
6856CP=$ac_cv_path_CP
6857if test -n "$CP"; then
6858 { echo "$as_me:$LINENO: result: $CP" >&5
6859echo "${ECHO_T}$CP" >&6; }
6860else
6861 { echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6; }
6863fi
6864
6865
6866# Extract the first word of "date", so it can be a program name with args.
6867set dummy date; ac_word=$2
6868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_DATE+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 case $DATE in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006884 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 +00006885 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6894 ;;
6895esac
6896fi
6897DATE=$ac_cv_path_DATE
6898if test -n "$DATE"; then
6899 { echo "$as_me:$LINENO: result: $DATE" >&5
6900echo "${ECHO_T}$DATE" >&6; }
6901else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
6904fi
6905
6906
6907# Extract the first word of "find", so it can be a program name with args.
6908set dummy find; ac_word=$2
6909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911if test "${ac_cv_path_FIND+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 case $FIND in
6915 [\\/]* | ?:[\\/]*)
6916 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6917 ;;
6918 *)
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006925 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 +00006926 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
6931done
6932IFS=$as_save_IFS
6933
6934 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6935 ;;
6936esac
6937fi
6938FIND=$ac_cv_path_FIND
6939if test -n "$FIND"; then
6940 { echo "$as_me:$LINENO: result: $FIND" >&5
6941echo "${ECHO_T}$FIND" >&6; }
6942else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6; }
6945fi
6946
6947
6948# Extract the first word of "grep", so it can be a program name with args.
6949set dummy grep; ac_word=$2
6950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952if test "${ac_cv_path_GREP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 case $GREP in
6956 [\\/]* | ?:[\\/]*)
6957 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6958 ;;
6959 *)
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006966 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 +00006967 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972done
6973IFS=$as_save_IFS
6974
6975 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6976 ;;
6977esac
6978fi
6979GREP=$ac_cv_path_GREP
6980if test -n "$GREP"; then
6981 { echo "$as_me:$LINENO: result: $GREP" >&5
6982echo "${ECHO_T}$GREP" >&6; }
6983else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988
6989# Extract the first word of "mkdir", so it can be a program name with args.
6990set dummy mkdir; ac_word=$2
6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_path_MKDIR+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 case $MKDIR in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6999 ;;
7000 *)
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007007 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 +00007008 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013done
7014IFS=$as_save_IFS
7015
7016 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7017 ;;
7018esac
7019fi
7020MKDIR=$ac_cv_path_MKDIR
7021if test -n "$MKDIR"; then
7022 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7023echo "${ECHO_T}$MKDIR" >&6; }
7024else
7025 { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
7027fi
7028
7029
7030# Extract the first word of "mv", so it can be a program name with args.
7031set dummy mv; ac_word=$2
7032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034if test "${ac_cv_path_MV+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037 case $MV in
7038 [\\/]* | ?:[\\/]*)
7039 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7040 ;;
7041 *)
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007048 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 +00007049 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7058 ;;
7059esac
7060fi
7061MV=$ac_cv_path_MV
7062if test -n "$MV"; then
7063 { echo "$as_me:$LINENO: result: $MV" >&5
7064echo "${ECHO_T}$MV" >&6; }
7065else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6; }
7068fi
7069
7070
7071if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_prog_RANLIB+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 if test -n "$RANLIB"; then
7080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007088 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 +00007089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099RANLIB=$ac_cv_prog_RANLIB
7100if test -n "$RANLIB"; then
7101 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7102echo "${ECHO_T}$RANLIB" >&6; }
7103else
7104 { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_RANLIB"; then
7111 ac_ct_RANLIB=$RANLIB
7112 # Extract the first word of "ranlib", so it can be a program name with args.
7113set dummy ranlib; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 if test -n "$ac_ct_RANLIB"; then
7120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007128 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 +00007129 ac_cv_prog_ac_ct_RANLIB="ranlib"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7140if test -n "$ac_ct_RANLIB"; then
7141 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7142echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7143else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147
7148 if test "x$ac_ct_RANLIB" = x; then
7149 RANLIB=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7154whose name does not start with the host triplet. If you think this
7155configuration is useful to you, please write to autoconf@gnu.org." >&5
7156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7157whose name does not start with the host triplet. If you think this
7158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161 RANLIB=$ac_ct_RANLIB
7162 fi
7163else
7164 RANLIB="$ac_cv_prog_RANLIB"
7165fi
7166
7167# Extract the first word of "rm", so it can be a program name with args.
7168set dummy rm; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_RM+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 case $RM in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7177 ;;
7178 *)
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007185 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 +00007186 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7195 ;;
7196esac
7197fi
7198RM=$ac_cv_path_RM
7199if test -n "$RM"; then
7200 { echo "$as_me:$LINENO: result: $RM" >&5
7201echo "${ECHO_T}$RM" >&6; }
7202else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208# Extract the first word of "sed", so it can be a program name with args.
7209set dummy sed; ac_word=$2
7210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212if test "${ac_cv_path_SED+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215 case $SED in
7216 [\\/]* | ?:[\\/]*)
7217 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7218 ;;
7219 *)
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007226 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 +00007227 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231done
7232done
7233IFS=$as_save_IFS
7234
7235 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7236 ;;
7237esac
7238fi
7239SED=$ac_cv_path_SED
7240if test -n "$SED"; then
7241 { echo "$as_me:$LINENO: result: $SED" >&5
7242echo "${ECHO_T}$SED" >&6; }
7243else
7244 { echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6; }
7246fi
7247
7248
7249# Extract the first word of "tar", so it can be a program name with args.
7250set dummy tar; ac_word=$2
7251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253if test "${ac_cv_path_TAR+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 case $TAR in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7259 ;;
7260 *)
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007267 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 +00007268 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272done
7273done
7274IFS=$as_save_IFS
7275
7276 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7277 ;;
7278esac
7279fi
7280TAR=$ac_cv_path_TAR
7281if test -n "$TAR"; then
7282 { echo "$as_me:$LINENO: result: $TAR" >&5
7283echo "${ECHO_T}$TAR" >&6; }
7284else
7285 { echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6; }
7287fi
7288
7289
7290# Extract the first word of "pwd", so it can be a program name with args.
7291set dummy pwd; ac_word=$2
7292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294if test "${ac_cv_path_BINPWD+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297 case $BINPWD in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7300 ;;
7301 *)
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007308 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 +00007309 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314done
7315IFS=$as_save_IFS
7316
7317 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7318 ;;
7319esac
7320fi
7321BINPWD=$ac_cv_path_BINPWD
7322if test -n "$BINPWD"; then
7323 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7324echo "${ECHO_T}$BINPWD" >&6; }
7325else
7326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
7328fi
7329
7330
7331
7332# Extract the first word of "Graphviz", so it can be a program name with args.
7333set dummy Graphviz; ac_word=$2
7334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 case $GRAPHVIZ in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007350 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 +00007351 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357IFS=$as_save_IFS
7358
7359 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7360 ;;
7361esac
7362fi
7363GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7364if test -n "$GRAPHVIZ"; then
7365 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7366echo "${ECHO_T}$GRAPHVIZ" >&6; }
7367else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
7373if test "$GRAPHVIZ" != "echo Graphviz" ; then
7374
7375cat >>confdefs.h <<\_ACEOF
7376#define HAVE_GRAPHVIZ 1
7377_ACEOF
7378
Jeff Cohen28783c32007-01-12 18:22:38 +00007379 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007380 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7381 fi
7382
7383cat >>confdefs.h <<_ACEOF
7384#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7385_ACEOF
7386
7387fi
7388# Extract the first word of "dot", so it can be a program name with args.
7389set dummy dot; ac_word=$2
7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_DOT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 case $DOT in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007406 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 +00007407 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7416 ;;
7417esac
7418fi
7419DOT=$ac_cv_path_DOT
7420if test -n "$DOT"; then
7421 { echo "$as_me:$LINENO: result: $DOT" >&5
7422echo "${ECHO_T}$DOT" >&6; }
7423else
7424 { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
7426fi
7427
7428
7429if test "$DOT" != "echo dot" ; then
7430
7431cat >>confdefs.h <<\_ACEOF
7432#define HAVE_DOT 1
7433_ACEOF
7434
Jeff Cohen28783c32007-01-12 18:22:38 +00007435 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007436 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7437 fi
7438
7439cat >>confdefs.h <<_ACEOF
7440#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7441_ACEOF
7442
7443fi
David Greenef0b9eff2009-07-09 17:16:26 +00007444# Extract the first word of "fdp", so it can be a program name with args.
7445set dummy fdp; ac_word=$2
7446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448if test "${ac_cv_path_FDP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 case $FDP in
7452 [\\/]* | ?:[\\/]*)
7453 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7454 ;;
7455 *)
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468done
7469IFS=$as_save_IFS
7470
7471 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7472 ;;
7473esac
7474fi
7475FDP=$ac_cv_path_FDP
7476if test -n "$FDP"; then
7477 { echo "$as_me:$LINENO: result: $FDP" >&5
7478echo "${ECHO_T}$FDP" >&6; }
7479else
7480 { echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6; }
7482fi
7483
7484
7485if test "$FDP" != "echo fdp" ; then
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define HAVE_FDP 1
7489_ACEOF
7490
7491 if test "$llvm_cv_os_type" = "MingW" ; then
7492 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7493 fi
7494
7495cat >>confdefs.h <<_ACEOF
7496#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7497_ACEOF
7498
7499fi
7500# Extract the first word of "neato", so it can be a program name with args.
7501set dummy neato; ac_word=$2
7502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504if test "${ac_cv_path_NEATO+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 case $NEATO in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7510 ;;
7511 *)
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524done
7525IFS=$as_save_IFS
7526
7527 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7528 ;;
7529esac
7530fi
7531NEATO=$ac_cv_path_NEATO
7532if test -n "$NEATO"; then
7533 { echo "$as_me:$LINENO: result: $NEATO" >&5
7534echo "${ECHO_T}$NEATO" >&6; }
7535else
7536 { echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6; }
7538fi
7539
7540
7541if test "$NEATO" != "echo neato" ; then
7542
7543cat >>confdefs.h <<\_ACEOF
7544#define HAVE_NEATO 1
7545_ACEOF
7546
7547 if test "$llvm_cv_os_type" = "MingW" ; then
7548 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7549 fi
7550
7551cat >>confdefs.h <<_ACEOF
7552#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7553_ACEOF
7554
7555fi
7556# Extract the first word of "twopi", so it can be a program name with args.
7557set dummy twopi; ac_word=$2
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560if test "${ac_cv_path_TWOPI+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 case $TWOPI in
7564 [\\/]* | ?:[\\/]*)
7565 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7566 ;;
7567 *)
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579done
7580done
7581IFS=$as_save_IFS
7582
7583 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7584 ;;
7585esac
7586fi
7587TWOPI=$ac_cv_path_TWOPI
7588if test -n "$TWOPI"; then
7589 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7590echo "${ECHO_T}$TWOPI" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597if test "$TWOPI" != "echo twopi" ; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define HAVE_TWOPI 1
7601_ACEOF
7602
7603 if test "$llvm_cv_os_type" = "MingW" ; then
7604 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7605 fi
7606
7607cat >>confdefs.h <<_ACEOF
7608#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7609_ACEOF
7610
7611fi
7612# Extract the first word of "circo", so it can be a program name with args.
7613set dummy circo; ac_word=$2
7614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616if test "${ac_cv_path_CIRCO+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 case $CIRCO in
7620 [\\/]* | ?:[\\/]*)
7621 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7622 ;;
7623 *)
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637IFS=$as_save_IFS
7638
7639 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7640 ;;
7641esac
7642fi
7643CIRCO=$ac_cv_path_CIRCO
7644if test -n "$CIRCO"; then
7645 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7646echo "${ECHO_T}$CIRCO" >&6; }
7647else
7648 { echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6; }
7650fi
7651
7652
7653if test "$CIRCO" != "echo circo" ; then
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define HAVE_CIRCO 1
7657_ACEOF
7658
7659 if test "$llvm_cv_os_type" = "MingW" ; then
7660 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7661 fi
7662
7663cat >>confdefs.h <<_ACEOF
7664#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7665_ACEOF
7666
7667fi
Reid Spencera773bd52006-08-04 18:18:08 +00007668for ac_prog in gv gsview32
7669do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_GV+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 case $GV in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007688 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 +00007689 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695IFS=$as_save_IFS
7696
7697 ;;
7698esac
7699fi
7700GV=$ac_cv_path_GV
7701if test -n "$GV"; then
7702 { echo "$as_me:$LINENO: result: $GV" >&5
7703echo "${ECHO_T}$GV" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710 test -n "$GV" && break
7711done
7712test -n "$GV" || GV="echo gv"
7713
7714if test "$GV" != "echo gv" ; then
7715
7716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_GV 1
7718_ACEOF
7719
Jeff Cohen28783c32007-01-12 18:22:38 +00007720 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007721 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7722 fi
7723
7724cat >>confdefs.h <<_ACEOF
7725#define LLVM_PATH_GV "$GV${EXEEXT}"
7726_ACEOF
7727
7728fi
7729# Extract the first word of "dotty", so it can be a program name with args.
7730set dummy dotty; ac_word=$2
7731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733if test "${ac_cv_path_DOTTY+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 case $DOTTY in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007747 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 +00007748 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752done
7753done
7754IFS=$as_save_IFS
7755
7756 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7757 ;;
7758esac
7759fi
7760DOTTY=$ac_cv_path_DOTTY
7761if test -n "$DOTTY"; then
7762 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7763echo "${ECHO_T}$DOTTY" >&6; }
7764else
7765 { echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6; }
7767fi
7768
7769
7770if test "$DOTTY" != "echo dotty" ; then
7771
7772cat >>confdefs.h <<\_ACEOF
7773#define HAVE_DOTTY 1
7774_ACEOF
7775
Jeff Cohen28783c32007-01-12 18:22:38 +00007776 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007777 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7778 fi
7779
7780cat >>confdefs.h <<_ACEOF
7781#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7782_ACEOF
7783
7784fi
7785
7786
7787# Extract the first word of "perl", so it can be a program name with args.
7788set dummy perl; ac_word=$2
7789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791if test "${ac_cv_path_PERL+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 case $PERL in
7795 [\\/]* | ?:[\\/]*)
7796 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7797 ;;
7798 *)
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007805 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 +00007806 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811done
7812IFS=$as_save_IFS
7813
7814 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7815 ;;
7816esac
7817fi
7818PERL=$ac_cv_path_PERL
7819if test -n "$PERL"; then
7820 { echo "$as_me:$LINENO: result: $PERL" >&5
7821echo "${ECHO_T}$PERL" >&6; }
7822else
7823 { echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6; }
7825fi
7826
7827
7828if test "$PERL" != "none"; then
7829 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7830echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7831 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7832 { echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6; }
7834 else
7835 PERL=none
7836 { echo "$as_me:$LINENO: result: not found" >&5
7837echo "${ECHO_T}not found" >&6; }
7838 fi
7839fi
7840
7841
7842if test x"$PERL" = xnone; then
7843 HAVE_PERL=0
7844
Reid Spencer59807fa2007-05-17 18:11:03 +00007845 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7846echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7847 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007848else
7849 HAVE_PERL=1
7850
7851fi
7852
7853# Find a good install program. We prefer a C program (faster),
7854# so one script is as good as another. But avoid the broken or
7855# incompatible versions:
7856# SysV /etc/install, /usr/sbin/install
7857# SunOS /usr/etc/install
7858# IRIX /sbin/install
7859# AIX /bin/install
7860# AmigaOS /C/install, which installs bootblocks on floppy discs
7861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7864# OS/2's system install, which has a completely different semantic
7865# ./install, which can be erroneously created by make from ./install.sh.
7866{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7867echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7868if test -z "$INSTALL"; then
7869if test "${ac_cv_path_install+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 # Account for people who put trailing slashes in PATH elements.
7878case $as_dir/ in
7879 ./ | .// | /cC/* | \
7880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7882 /usr/ucb/* ) ;;
7883 *)
7884 # OSF1 and SCO ODT 3.0 have their own names for install.
7885 # Don't use installbsd from OSF since it installs stuff as root
7886 # by default.
7887 for ac_prog in ginstall scoinst install; do
7888 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007889 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 +00007890 if test $ac_prog = install &&
7891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7892 # AIX install. It has an incompatible calling convention.
7893 :
7894 elif test $ac_prog = install &&
7895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7896 # program-specific install script used by HP pwplus--don't use.
7897 :
7898 else
7899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7900 break 3
7901 fi
7902 fi
7903 done
7904 done
7905 ;;
7906esac
7907done
7908IFS=$as_save_IFS
7909
7910
7911fi
7912 if test "${ac_cv_path_install+set}" = set; then
7913 INSTALL=$ac_cv_path_install
7914 else
7915 # As a last resort, use the slow shell script. Don't cache a
7916 # value for INSTALL within a source directory, because that will
7917 # break other packages using the cache if that directory is
7918 # removed, or if the value is a relative name.
7919 INSTALL=$ac_install_sh
7920 fi
7921fi
7922{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7923echo "${ECHO_T}$INSTALL" >&6; }
7924
7925# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7926# It thinks the first close brace ends the variable substitution.
7927test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7928
7929test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7930
7931test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7932
7933
7934# Extract the first word of "bzip2", so it can be a program name with args.
7935set dummy bzip2; ac_word=$2
7936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7938if test "${ac_cv_path_BZIP2+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941 case $BZIP2 in
7942 [\\/]* | ?:[\\/]*)
7943 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7944 ;;
7945 *)
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007952 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 +00007953 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957done
7958done
7959IFS=$as_save_IFS
7960
Reid Spencera773bd52006-08-04 18:18:08 +00007961 ;;
7962esac
7963fi
7964BZIP2=$ac_cv_path_BZIP2
7965if test -n "$BZIP2"; then
7966 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7967echo "${ECHO_T}$BZIP2" >&6; }
7968else
7969 { echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6; }
7971fi
7972
7973
7974# Extract the first word of "doxygen", so it can be a program name with args.
7975set dummy doxygen; ac_word=$2
7976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978if test "${ac_cv_path_DOXYGEN+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 case $DOXYGEN in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7984 ;;
7985 *)
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007992 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 +00007993 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997done
7998done
7999IFS=$as_save_IFS
8000
Reid Spencera773bd52006-08-04 18:18:08 +00008001 ;;
8002esac
8003fi
8004DOXYGEN=$ac_cv_path_DOXYGEN
8005if test -n "$DOXYGEN"; then
8006 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8007echo "${ECHO_T}$DOXYGEN" >&6; }
8008else
8009 { echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6; }
8011fi
8012
8013
Reid Spencera773bd52006-08-04 18:18:08 +00008014# Extract the first word of "groff", so it can be a program name with args.
8015set dummy groff; ac_word=$2
8016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018if test "${ac_cv_path_GROFF+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 case $GROFF in
8022 [\\/]* | ?:[\\/]*)
8023 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8024 ;;
8025 *)
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008032 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 +00008033 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037done
8038done
8039IFS=$as_save_IFS
8040
Reid Spencera773bd52006-08-04 18:18:08 +00008041 ;;
8042esac
8043fi
8044GROFF=$ac_cv_path_GROFF
8045if test -n "$GROFF"; then
8046 { echo "$as_me:$LINENO: result: $GROFF" >&5
8047echo "${ECHO_T}$GROFF" >&6; }
8048else
8049 { echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6; }
8051fi
8052
8053
8054# Extract the first word of "gzip", so it can be a program name with args.
8055set dummy gzip; ac_word=$2
8056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058if test "${ac_cv_path_GZIP+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 case $GZIP in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008072 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 +00008073 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078done
8079IFS=$as_save_IFS
8080
Reid Spencera773bd52006-08-04 18:18:08 +00008081 ;;
8082esac
8083fi
8084GZIP=$ac_cv_path_GZIP
8085if test -n "$GZIP"; then
8086 { echo "$as_me:$LINENO: result: $GZIP" >&5
8087echo "${ECHO_T}$GZIP" >&6; }
8088else
8089 { echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6; }
8091fi
8092
8093
8094# Extract the first word of "pod2html", so it can be a program name with args.
8095set dummy pod2html; ac_word=$2
8096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_POD2HTML+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 case $POD2HTML in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008112 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 +00008113 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118done
8119IFS=$as_save_IFS
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121 ;;
8122esac
8123fi
8124POD2HTML=$ac_cv_path_POD2HTML
8125if test -n "$POD2HTML"; then
8126 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8127echo "${ECHO_T}$POD2HTML" >&6; }
8128else
8129 { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
8131fi
8132
8133
8134# Extract the first word of "pod2man", so it can be a program name with args.
8135set dummy pod2man; ac_word=$2
8136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_POD2MAN+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 case $POD2MAN in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008152 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 +00008153 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159IFS=$as_save_IFS
8160
Reid Spencera773bd52006-08-04 18:18:08 +00008161 ;;
8162esac
8163fi
8164POD2MAN=$ac_cv_path_POD2MAN
8165if test -n "$POD2MAN"; then
8166 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8167echo "${ECHO_T}$POD2MAN" >&6; }
8168else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
8171fi
8172
8173
8174# Extract the first word of "runtest", so it can be a program name with args.
8175set dummy runtest; ac_word=$2
8176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178if test "${ac_cv_path_RUNTEST+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 case $RUNTEST in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8184 ;;
8185 *)
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008192 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 +00008193 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197done
8198done
8199IFS=$as_save_IFS
8200
Reid Spencera773bd52006-08-04 18:18:08 +00008201 ;;
8202esac
8203fi
8204RUNTEST=$ac_cv_path_RUNTEST
8205if test -n "$RUNTEST"; then
8206 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8207echo "${ECHO_T}$RUNTEST" >&6; }
8208else
8209 { echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6; }
8211fi
8212
8213
8214
8215no_itcl=true
8216{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8217echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8218
8219# Check whether --with-tclinclude was given.
8220if test "${with_tclinclude+set}" = set; then
8221 withval=$with_tclinclude; with_tclinclude=${withval}
8222else
8223 with_tclinclude=''
8224fi
8225
8226if test "${ac_cv_path_tclsh+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229
8230if test x"${with_tclinclude}" != x ; then
8231 if test -f ${with_tclinclude}/tclsh ; then
8232 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8233 elif test -f ${with_tclinclude}/src/tclsh ; then
8234 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8235 else
8236 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8237echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8238 { (exit 1); exit 1; }; }
8239 fi
8240fi
8241
8242if test x"${ac_cv_path_tclsh}" = x ; then
8243 { echo "$as_me:$LINENO: result: none" >&5
8244echo "${ECHO_T}none" >&6; }
8245 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
8246do
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248set dummy $ac_prog; ac_word=$2
8249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251if test "${ac_cv_path_TCLSH+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254 case $TCLSH in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8257 ;;
8258 *)
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008265 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 +00008266 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270done
8271done
8272IFS=$as_save_IFS
8273
8274 ;;
8275esac
8276fi
8277TCLSH=$ac_cv_path_TCLSH
8278if test -n "$TCLSH"; then
8279 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8280echo "${ECHO_T}$TCLSH" >&6; }
8281else
8282 { echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6; }
8284fi
8285
8286
8287 test -n "$TCLSH" && break
8288done
8289
8290 if test x"${TCLSH}" = x ; then
8291 ac_cv_path_tclsh='';
8292 else
8293 ac_cv_path_tclsh="${TCLSH}";
8294 fi
8295else
8296 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8297echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8298 TCLSH="${ac_cv_path_tclsh}"
8299
8300fi
8301
8302fi
8303
8304# Extract the first word of "zip", so it can be a program name with args.
8305set dummy zip; ac_word=$2
8306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308if test "${ac_cv_path_ZIP+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311 case $ZIP in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8314 ;;
8315 *)
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008322 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 +00008323 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327done
8328done
8329IFS=$as_save_IFS
8330
Reid Spencera773bd52006-08-04 18:18:08 +00008331 ;;
8332esac
8333fi
8334ZIP=$ac_cv_path_ZIP
8335if test -n "$ZIP"; then
8336 { echo "$as_me:$LINENO: result: $ZIP" >&5
8337echo "${ECHO_T}$ZIP" >&6; }
8338else
8339 { echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6; }
8341fi
8342
8343
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008344for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008345do
8346 # Extract the first word of "$ac_prog", so it can be a program name with args.
8347set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350if test "${ac_cv_path_OCAMLC+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 case $OCAMLC in
8354 [\\/]* | ?:[\\/]*)
8355 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8356 ;;
8357 *)
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008364 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 +00008365 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369done
8370done
8371IFS=$as_save_IFS
8372
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008373 ;;
8374esac
8375fi
8376OCAMLC=$ac_cv_path_OCAMLC
8377if test -n "$OCAMLC"; then
8378 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8379echo "${ECHO_T}$OCAMLC" >&6; }
8380else
8381 { echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6; }
8383fi
8384
8385
Gordon Henriksene7072162008-03-07 18:20:01 +00008386 test -n "$OCAMLC" && break
8387done
8388
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008389for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008390do
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 case $OCAMLOPT in
8399 [\\/]* | ?:[\\/]*)
8400 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8401 ;;
8402 *)
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008409 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 +00008410 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414done
8415done
8416IFS=$as_save_IFS
8417
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008418 ;;
8419esac
8420fi
8421OCAMLOPT=$ac_cv_path_OCAMLOPT
8422if test -n "$OCAMLOPT"; then
8423 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8424echo "${ECHO_T}$OCAMLOPT" >&6; }
8425else
8426 { echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6; }
8428fi
8429
8430
Gordon Henriksene7072162008-03-07 18:20:01 +00008431 test -n "$OCAMLOPT" && break
8432done
8433
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008434for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008435do
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 case $OCAMLDEP in
8444 [\\/]* | ?:[\\/]*)
8445 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8446 ;;
8447 *)
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008454 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 +00008455 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460done
8461IFS=$as_save_IFS
8462
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008463 ;;
8464esac
8465fi
8466OCAMLDEP=$ac_cv_path_OCAMLDEP
8467if test -n "$OCAMLDEP"; then
8468 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8469echo "${ECHO_T}$OCAMLDEP" >&6; }
8470else
8471 { echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6; }
8473fi
8474
8475
Gordon Henriksene7072162008-03-07 18:20:01 +00008476 test -n "$OCAMLDEP" && break
8477done
8478
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008479for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008480do
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482set dummy $ac_prog; ac_word=$2
8483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 case $OCAMLDOC in
8489 [\\/]* | ?:[\\/]*)
8490 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8491 ;;
8492 *)
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008499 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 +00008500 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504done
8505done
8506IFS=$as_save_IFS
8507
8508 ;;
8509esac
8510fi
8511OCAMLDOC=$ac_cv_path_OCAMLDOC
8512if test -n "$OCAMLDOC"; then
8513 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8514echo "${ECHO_T}$OCAMLDOC" >&6; }
8515else
8516 { echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6; }
8518fi
8519
8520
8521 test -n "$OCAMLDOC" && break
8522done
8523
Torok Edwincc499a42008-10-22 09:56:27 +00008524for ac_prog in gas as
8525do
8526 # Extract the first word of "$ac_prog", so it can be a program name with args.
8527set dummy $ac_prog; ac_word=$2
8528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530if test "${ac_cv_path_GAS+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533 case $GAS in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8536 ;;
8537 *)
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008544 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 +00008545 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549done
8550done
8551IFS=$as_save_IFS
8552
8553 ;;
8554esac
8555fi
8556GAS=$ac_cv_path_GAS
8557if test -n "$GAS"; then
8558 { echo "$as_me:$LINENO: result: $GAS" >&5
8559echo "${ECHO_T}$GAS" >&6; }
8560else
8561 { echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6; }
8563fi
8564
8565
8566 test -n "$GAS" && break
8567done
8568
Reid Spencera773bd52006-08-04 18:18:08 +00008569
8570{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8571echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8572if test "${llvm_cv_link_use_r+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575 ac_ext=c
8576ac_cpp='$CPP $CPPFLAGS'
8577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581 oldcflags="$CFLAGS"
8582 CFLAGS="$CFLAGS -Wl,-R."
8583 cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h. */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h. */
8589
8590int
8591main ()
8592{
8593int main() { return 0; }
8594 ;
8595 return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext conftest$ac_exeext
8599if { (ac_try="$ac_link"
8600case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626esac
8627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008632 llvm_cv_link_use_r=yes
8633else
8634 echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 llvm_cv_link_use_r=no
8638fi
8639
Bill Wendlingebcceee2009-04-18 11:20:33 +00008640rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008641 conftest$ac_exeext conftest.$ac_ext
8642 CFLAGS="$oldcflags"
8643 ac_ext=c
8644ac_cpp='$CPP $CPPFLAGS'
8645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649
8650fi
8651{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8652echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8653if test "$llvm_cv_link_use_r" = yes ; then
8654
8655cat >>confdefs.h <<\_ACEOF
8656#define HAVE_LINK_R 1
8657_ACEOF
8658
8659 fi
8660
8661
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008662{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8663echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8664if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666else
8667 ac_ext=c
8668ac_cpp='$CPP $CPPFLAGS'
8669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672
8673 oldcflags="$CFLAGS"
8674 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8675 cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h. */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h. */
8681
8682int
8683main ()
8684{
8685int main() { return 0; }
8686 ;
8687 return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (ac_try="$ac_link"
8692case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718esac
8719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_try") 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008724 llvm_cv_link_use_export_dynamic=yes
8725else
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 llvm_cv_link_use_export_dynamic=no
8730fi
8731
Bill Wendlingebcceee2009-04-18 11:20:33 +00008732rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008733 conftest$ac_exeext conftest.$ac_ext
8734 CFLAGS="$oldcflags"
8735 ac_ext=c
8736ac_cpp='$CPP $CPPFLAGS'
8737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739ac_compiler_gnu=$ac_cv_c_compiler_gnu
8740
8741
8742fi
8743{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8744echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8745if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8746
8747cat >>confdefs.h <<\_ACEOF
8748#define HAVE_LINK_EXPORT_DYNAMIC 1
8749_ACEOF
8750
8751 fi
8752
8753
Reid Spencera773bd52006-08-04 18:18:08 +00008754
8755
8756{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8757echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8758if test "${ac_cv_c_const+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761 cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
8767
8768int
8769main ()
8770{
8771/* FIXME: Include the comments suggested by Paul. */
8772#ifndef __cplusplus
8773 /* Ultrix mips cc rejects this. */
8774 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008775 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008776 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008777 char const *const *ccp;
8778 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008779 /* NEC SVR4.0.2 mips cc rejects this. */
8780 struct point {int x, y;};
8781 static struct point const zero = {0,0};
8782 /* AIX XL C 1.02.0.0 rejects this.
8783 It does not let you subtract one const X* pointer from another in
8784 an arm of an if-expression whose if-part is not a constant
8785 expression */
8786 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008787 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008788 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008789 ++ccp;
8790 p = (char**) ccp;
8791 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008792 { /* SCO 3.2v4 cc rejects this. */
8793 char *t;
8794 char const *s = 0 ? (char *) 0 : (char const *) 0;
8795
8796 *t++ = 0;
8797 if (s) return 0;
8798 }
8799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8800 int x[] = {25, 17};
8801 const int *foo = &x[0];
8802 ++foo;
8803 }
8804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8805 typedef const int *iptr;
8806 iptr p = 0;
8807 ++p;
8808 }
8809 { /* AIX XL C 1.02.0.0 rejects this saying
8810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8811 struct s { int j; const int *ap[3]; };
8812 struct s *b; b->j = 5;
8813 }
8814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8815 const int foo = 10;
8816 if (!foo) return 0;
8817 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008818 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008819#endif
8820
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext
8826if { (ac_try="$ac_compile"
8827case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008859 ac_cv_c_const=yes
8860else
8861 echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_cv_c_const=no
8865fi
8866
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8870echo "${ECHO_T}$ac_cv_c_const" >&6; }
8871if test $ac_cv_c_const = no; then
8872
8873cat >>confdefs.h <<\_ACEOF
8874#define const
8875_ACEOF
8876
8877fi
8878
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879
8880
8881
8882
8883
8884ac_header_dirent=no
8885for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8886 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008887{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8888echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892 cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
8898#include <sys/types.h>
8899#include <$ac_hdr>
8900
8901int
8902main ()
8903{
8904if ((DIR *) 0)
8905return 0;
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008911if { (ac_try="$ac_compile"
8912case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915esac
8916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938esac
8939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_try") 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008944 eval "$as_ac_Header=yes"
8945else
8946 echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
Reid Spencera773bd52006-08-04 18:18:08 +00008949 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950fi
Reid Spencera773bd52006-08-04 18:18:08 +00008951
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953fi
Reid Spencera773bd52006-08-04 18:18:08 +00008954ac_res=`eval echo '${'$as_ac_Header'}'`
8955 { echo "$as_me:$LINENO: result: $ac_res" >&5
8956echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008957if test `eval echo '${'$as_ac_Header'}'` = yes; then
8958 cat >>confdefs.h <<_ACEOF
8959#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8960_ACEOF
8961
8962ac_header_dirent=$ac_hdr; break
8963fi
8964
8965done
8966# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8967if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8969echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008970if test "${ac_cv_search_opendir+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980
Reid Spencera773bd52006-08-04 18:18:08 +00008981/* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008984#ifdef __cplusplus
8985extern "C"
8986#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987char opendir ();
8988int
8989main ()
8990{
Reid Spencera773bd52006-08-04 18:18:08 +00008991return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008992 ;
8993 return 0;
8994}
8995_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008996for ac_lib in '' dir; do
8997 if test -z "$ac_lib"; then
8998 ac_res="none required"
8999 else
9000 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009002 fi
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004if { (ac_try="$ac_link"
9005case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008esac
9009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9031esac
9032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_try") 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009037 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009038else
9039 echo "$as_me: failed program was:" >&5
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009042
9043fi
9044
Bill Wendlingebcceee2009-04-18 11:20:33 +00009045rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009046 conftest$ac_exeext
9047 if test "${ac_cv_search_opendir+set}" = set; then
9048 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009049fi
John Criswell7a73b802003-06-30 21:59:07 +00009050done
Reid Spencera773bd52006-08-04 18:18:08 +00009051if test "${ac_cv_search_opendir+set}" = set; then
9052 :
9053else
9054 ac_cv_search_opendir=no
9055fi
9056rm conftest.$ac_ext
9057LIBS=$ac_func_search_save_LIBS
9058fi
9059{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9060echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9061ac_res=$ac_cv_search_opendir
9062if test "$ac_res" != no; then
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009064
Reid Spencera773bd52006-08-04 18:18:08 +00009065fi
9066
9067else
9068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9069echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9070if test "${ac_cv_search_opendir+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073 ac_func_search_save_LIBS=$LIBS
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char opendir ();
9088int
9089main ()
9090{
9091return opendir ();
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096for ac_lib in '' x; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9099 else
9100 ac_res=-l$ac_lib
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9102 fi
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104if { (ac_try="$ac_link"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
9109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_link") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131esac
9132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_try") 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009137 ac_cv_search_opendir=$ac_res
9138else
9139 echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142
9143fi
9144
Bill Wendlingebcceee2009-04-18 11:20:33 +00009145rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009146 conftest$ac_exeext
9147 if test "${ac_cv_search_opendir+set}" = set; then
9148 break
9149fi
9150done
9151if test "${ac_cv_search_opendir+set}" = set; then
9152 :
9153else
9154 ac_cv_search_opendir=no
9155fi
9156rm conftest.$ac_ext
9157LIBS=$ac_func_search_save_LIBS
9158fi
9159{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9161ac_res=$ac_cv_search_opendir
9162if test "$ac_res" != no; then
9163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164
9165fi
9166
9167fi
John Criswell7a73b802003-06-30 21:59:07 +00009168
9169
9170for ac_header in dlfcn.h
9171do
9172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009177 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009178fi
Reid Spencera773bd52006-08-04 18:18:08 +00009179ac_res=`eval echo '${'$as_ac_Header'}'`
9180 { echo "$as_me:$LINENO: result: $ac_res" >&5
9181echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009182else
Brian Gaeke0a621332004-09-08 20:38:05 +00009183 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009186cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009192$ac_includes_default
9193#include <$ac_header>
9194_ACEOF
9195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009196if { (ac_try="$ac_compile"
9197case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200esac
9201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009229 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009230else
9231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009232sed 's/^/| /' conftest.$ac_ext >&5
9233
Reid Spencera773bd52006-08-04 18:18:08 +00009234 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009235fi
Reid Spencera773bd52006-08-04 18:18:08 +00009236
9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009240
9241# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009244cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009245/* confdefs.h. */
9246_ACEOF
9247cat confdefs.h >>conftest.$ac_ext
9248cat >>conftest.$ac_ext <<_ACEOF
9249/* end confdefs.h. */
9250#include <$ac_header>
9251_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009252if { (ac_try="$ac_cpp conftest.$ac_ext"
9253case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256esac
9257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009264 (exit $ac_status); } >/dev/null; then
9265 if test -s conftest.err; then
9266 ac_cpp_err=$ac_c_preproc_warn_flag
9267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9268 else
9269 ac_cpp_err=
9270 fi
9271else
9272 ac_cpp_err=yes
9273fi
9274if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009275 ac_header_preproc=yes
9276else
9277 echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_header_preproc=no
9281fi
Reid Spencera773bd52006-08-04 18:18:08 +00009282
Brian Gaeke0a621332004-09-08 20:38:05 +00009283rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009286
9287# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009295 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009296 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009309 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009310## ----------------------------------- ##
9311## Report this to llvmbugs@cs.uiuc.edu ##
9312## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009313_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009314 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009315 ;;
9316esac
Reid Spencera773bd52006-08-04 18:18:08 +00009317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009322 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009323fi
Reid Spencera773bd52006-08-04 18:18:08 +00009324ac_res=`eval echo '${'$as_ac_Header'}'`
9325 { echo "$as_me:$LINENO: result: $ac_res" >&5
9326echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009327
9328fi
John Criswell7a73b802003-06-30 21:59:07 +00009329if test `eval echo '${'$as_ac_Header'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9332_ACEOF
9333
9334fi
9335
9336done
9337
Reid Spencera773bd52006-08-04 18:18:08 +00009338# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009340 enableval=$enable_ltdl_install;
9341fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343
Bill Wendlingebcceee2009-04-18 11:20:33 +00009344
9345
9346if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347 INSTALL_LTDL_TRUE=
9348 INSTALL_LTDL_FALSE='#'
9349else
9350 INSTALL_LTDL_TRUE='#'
9351 INSTALL_LTDL_FALSE=
9352fi
9353
Bill Wendlingebcceee2009-04-18 11:20:33 +00009354
9355
9356if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357 CONVENIENCE_LTDL_TRUE=
9358 CONVENIENCE_LTDL_FALSE='#'
9359else
9360 CONVENIENCE_LTDL_TRUE='#'
9361 CONVENIENCE_LTDL_FALSE=
9362fi
9363
9364
Reid Spencera773bd52006-08-04 18:18:08 +00009365{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9366echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367library_names_spec=
9368libname_spec='lib$name'
9369soname_spec=
9370shrext_cmds=".so"
9371postinstall_cmds=
9372postuninstall_cmds=
9373finish_cmds=
9374finish_eval=
9375shlibpath_var=
9376shlibpath_overrides_runpath=unknown
9377version_type=none
9378dynamic_linker="$host_os ld.so"
9379sys_lib_dlsearch_path_spec="/lib /usr/lib"
9380if test "$GCC" = yes; then
9381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9383 # if the path contains ";" then we assume it to be the separator
9384 # otherwise default to the standard path separator (i.e. ":") - it is
9385 # assumed that no part of a normal pathname contains ";" but that should
9386 # okay in the real world where ";" in dirpaths is itself problematic.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388 else
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9390 fi
9391else
9392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9393fi
9394need_lib_prefix=unknown
9395hardcode_into_libs=no
9396
9397# when you set need_version to no, make sure it does not cause -set_version
9398# flags to be left without arguments
9399need_version=unknown
9400
9401case $host_os in
9402aix3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9405 shlibpath_var=LIBPATH
9406
9407 # AIX 3 has no versioning support, so we append a major version to the name.
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 ;;
9410
9411aix4* | aix5*)
9412 version_type=linux
9413 need_lib_prefix=no
9414 need_version=no
9415 hardcode_into_libs=yes
9416 if test "$host_cpu" = ia64; then
9417 # AIX 5 supports IA64
9418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 else
9421 # With GCC up to 2.95.x, collect2 would create an import file
9422 # for dependence libraries. The import file would start with
9423 # the line `#! .'. This would cause the generated library to
9424 # depend on `.', always an invalid library. This was fixed in
9425 # development snapshots of GCC prior to 3.0.
9426 case $host_os in
9427 aix4 | aix4.[01] | aix4.[01].*)
9428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9429 echo ' yes '
9430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9431 :
9432 else
9433 can_build_shared=no
9434 fi
9435 ;;
9436 esac
9437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9438 # soname into executable. Probably we can add versioning support to
9439 # collect2, so additional links can be useful in future.
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9442 # instead of lib<name>.a to let people know that these are not
9443 # typical AIX shared libraries.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 else
9446 # We preserve .a as extension for shared libraries through AIX4.2
9447 # and later when we are not doing run time linking.
9448 library_names_spec='${libname}${release}.a $libname.a'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 fi
9451 shlibpath_var=LIBPATH
9452 fi
9453 ;;
9454
9455amigaos*)
9456 library_names_spec='$libname.ixlibrary $libname.a'
9457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9458 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'
9459 ;;
9460
9461beos*)
9462 library_names_spec='${libname}${shared_ext}'
9463 dynamic_linker="$host_os ld.so"
9464 shlibpath_var=LIBRARY_PATH
9465 ;;
9466
9467bsdi[45]*)
9468 version_type=linux
9469 need_version=no
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9476 # the default ld.so.conf also contains /usr/contrib/lib and
9477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9478 # libtool to hard-code these into programs
9479 ;;
9480
9481cygwin* | mingw* | pw32*)
9482 version_type=windows
9483 shrext_cmds=".dll"
9484 need_version=no
9485 need_lib_prefix=no
9486
9487 case $GCC,$host_os in
9488 yes,cygwin* | yes,mingw* | yes,pw32*)
9489 library_names_spec='$libname.dll.a'
9490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9491 postinstall_cmds='base_file=`basename \${file}`~
9492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9493 dldir=$destdir/`dirname \$dlpath`~
9494 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009495 $install_prog $dir/$dlname \$dldir/$dlname~
9496 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9498 dlpath=$dir/\$dldll~
9499 $rm \$dlpath'
9500 shlibpath_overrides_runpath=yes
9501
9502 case $host_os in
9503 cygwin*)
9504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9507 ;;
9508 mingw*)
9509 # MinGW DLLs use traditional 'lib' prefix
9510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9513 # It is most probably a Windows format PATH printed by
9514 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9515 # path with ; separators, and with drive letters. We can handle the
9516 # drive letters (cygwin fileutils understands them), so leave them,
9517 # especially as we might pass files found there to a mingw objdump,
9518 # which wouldn't understand a cygwinified path. Ahh.
9519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9520 else
9521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9522 fi
9523 ;;
9524 pw32*)
9525 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009526 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 +00009527 ;;
9528 esac
9529 ;;
9530
9531 *)
9532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9533 ;;
9534 esac
9535 dynamic_linker='Win32 ld.exe'
9536 # FIXME: first we should search . and the directory the executable is in
9537 shlibpath_var=PATH
9538 ;;
9539
9540darwin* | rhapsody*)
9541 dynamic_linker="$host_os dyld"
9542 version_type=darwin
9543 need_lib_prefix=no
9544 need_version=no
9545 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9546 soname_spec='${libname}${release}${major}$shared_ext'
9547 shlibpath_overrides_runpath=yes
9548 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009549 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9551 if test "$GCC" = yes; then
9552 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"`
9553 else
9554 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9555 fi
9556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9557 ;;
9558
9559dgux*)
9560 version_type=linux
9561 need_lib_prefix=no
9562 need_version=no
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 ;;
9567
9568freebsd1*)
9569 dynamic_linker=no
9570 ;;
9571
9572kfreebsd*-gnu)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=no
9580 hardcode_into_libs=yes
9581 dynamic_linker='GNU ld.so'
9582 ;;
9583
Reid Spencera773bd52006-08-04 18:18:08 +00009584freebsd* | dragonfly*)
9585 # DragonFly does not have aout. When/if they implement a new
9586 # versioning mechanism, adjust this.
9587 if test -x /usr/bin/objformat; then
9588 objformat=`/usr/bin/objformat`
9589 else
9590 case $host_os in
9591 freebsd[123]*) objformat=aout ;;
9592 *) objformat=elf ;;
9593 esac
9594 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595 version_type=freebsd-$objformat
9596 case $version_type in
9597 freebsd-elf*)
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9599 need_version=no
9600 need_lib_prefix=no
9601 ;;
9602 freebsd-*)
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9604 need_version=yes
9605 ;;
9606 esac
9607 shlibpath_var=LD_LIBRARY_PATH
9608 case $host_os in
9609 freebsd2*)
9610 shlibpath_overrides_runpath=yes
9611 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009612 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613 shlibpath_overrides_runpath=yes
9614 hardcode_into_libs=yes
9615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618 shlibpath_overrides_runpath=no
9619 hardcode_into_libs=yes
9620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009621 freebsd*) # from 4.6 on
9622 shlibpath_overrides_runpath=yes
9623 hardcode_into_libs=yes
9624 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625 esac
9626 ;;
9627
9628gnu*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 hardcode_into_libs=yes
9636 ;;
9637
9638hpux9* | hpux10* | hpux11*)
9639 # Give a soname corresponding to the major version so that dld.sl refuses to
9640 # link against other versions.
9641 version_type=sunos
9642 need_lib_prefix=no
9643 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009644 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645 ia64*)
9646 shrext_cmds='.so'
9647 hardcode_into_libs=yes
9648 dynamic_linker="$host_os dld.so"
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 if test "X$HPUX_IA64_MODE" = X32; then
9654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9655 else
9656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9657 fi
9658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9659 ;;
9660 hppa*64*)
9661 shrext_cmds='.sl'
9662 hardcode_into_libs=yes
9663 dynamic_linker="$host_os dld.sl"
9664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9670 ;;
9671 *)
9672 shrext_cmds='.sl'
9673 dynamic_linker="$host_os dld.sl"
9674 shlibpath_var=SHLIB_PATH
9675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 ;;
9679 esac
9680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9681 postinstall_cmds='chmod 555 $lib'
9682 ;;
9683
Reid Spencera773bd52006-08-04 18:18:08 +00009684interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=no
9693 hardcode_into_libs=yes
9694 ;;
9695
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696irix5* | irix6* | nonstopux*)
9697 case $host_os in
9698 nonstopux*) version_type=nonstopux ;;
9699 *)
9700 if test "$lt_cv_prog_gnu_ld" = yes; then
9701 version_type=linux
9702 else
9703 version_type=irix
9704 fi ;;
9705 esac
9706 need_lib_prefix=no
9707 need_version=no
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9710 case $host_os in
9711 irix5* | nonstopux*)
9712 libsuff= shlibsuff=
9713 ;;
9714 *)
9715 case $LD in # libtool.m4 will add one of these switches to LD
9716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9717 libsuff= shlibsuff= libmagic=32-bit;;
9718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9719 libsuff=32 shlibsuff=N32 libmagic=N32;;
9720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9722 *) libsuff= shlibsuff= libmagic=never-match;;
9723 esac
9724 ;;
9725 esac
9726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9727 shlibpath_overrides_runpath=no
9728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9730 hardcode_into_libs=yes
9731 ;;
9732
9733# No shared lib support for Linux oldld, aout, or coff.
9734linux*oldld* | linux*aout* | linux*coff*)
9735 dynamic_linker=no
9736 ;;
9737
9738# This must be Linux ELF.
9739linux*)
9740 version_type=linux
9741 need_lib_prefix=no
9742 need_version=no
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=no
9748 # This implies no fast_install, which is unacceptable.
9749 # Some rework will be needed to allow for fast_install
9750 # before this can be enabled.
9751 hardcode_into_libs=yes
9752
9753 # Append ld.so.conf contents to the search path
9754 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009755 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 +00009756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9757 fi
9758
9759 # We used to test for /lib/ld.so.1 and disable shared libraries on
9760 # powerpc, because MkLinux only supported shared libraries with the
9761 # GNU dynamic linker. Since this was broken with cross compilers,
9762 # most powerpc-linux boxes support dynamic linking these days and
9763 # people can always --disable-shared, the test was removed, and we
9764 # assume the GNU/Linux dynamic linker is in use.
9765 dynamic_linker='GNU/Linux ld.so'
9766 ;;
9767
9768knetbsd*-gnu)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=no
9776 hardcode_into_libs=yes
9777 dynamic_linker='GNU ld.so'
9778 ;;
9779
9780netbsd*)
9781 version_type=sunos
9782 need_lib_prefix=no
9783 need_version=no
9784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9787 dynamic_linker='NetBSD (a.out) ld.so'
9788 else
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 dynamic_linker='NetBSD ld.elf_so'
9792 fi
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 hardcode_into_libs=yes
9796 ;;
9797
9798newsos6)
9799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9803 ;;
9804
9805nto-qnx*)
9806 version_type=linux
9807 need_lib_prefix=no
9808 need_version=no
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9813 ;;
9814
9815openbsd*)
9816 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009817 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009819 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9820 case $host_os in
9821 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9822 *) need_version=no ;;
9823 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9828 case $host_os in
9829 openbsd2.[89] | openbsd2.[89].*)
9830 shlibpath_overrides_runpath=no
9831 ;;
9832 *)
9833 shlibpath_overrides_runpath=yes
9834 ;;
9835 esac
9836 else
9837 shlibpath_overrides_runpath=yes
9838 fi
9839 ;;
9840
9841os2*)
9842 libname_spec='$name'
9843 shrext_cmds=".dll"
9844 need_lib_prefix=no
9845 library_names_spec='$libname${shared_ext} $libname.a'
9846 dynamic_linker='OS/2 ld.exe'
9847 shlibpath_var=LIBPATH
9848 ;;
9849
9850osf3* | osf4* | osf5*)
9851 version_type=osf
9852 need_lib_prefix=no
9853 need_version=no
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9859 ;;
9860
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861solaris*)
9862 version_type=linux
9863 need_lib_prefix=no
9864 need_version=no
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=yes
9869 hardcode_into_libs=yes
9870 # ldd complains unless libraries are executable
9871 postinstall_cmds='chmod +x $lib'
9872 ;;
9873
9874sunos4*)
9875 version_type=sunos
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=yes
9880 if test "$with_gnu_ld" = yes; then
9881 need_lib_prefix=no
9882 fi
9883 need_version=yes
9884 ;;
9885
Reid Spencera773bd52006-08-04 18:18:08 +00009886sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 version_type=linux
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 case $host_vendor in
9892 sni)
9893 shlibpath_overrides_runpath=no
9894 need_lib_prefix=no
9895 export_dynamic_flag_spec='${wl}-Blargedynsym'
9896 runpath_var=LD_RUN_PATH
9897 ;;
9898 siemens)
9899 need_lib_prefix=no
9900 ;;
9901 motorola)
9902 need_lib_prefix=no
9903 need_version=no
9904 shlibpath_overrides_runpath=no
9905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9906 ;;
9907 esac
9908 ;;
9909
9910sysv4*MP*)
9911 if test -d /usr/nec ;then
9912 version_type=linux
9913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914 soname_spec='$libname${shared_ext}.$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 fi
9917 ;;
9918
Reid Spencera773bd52006-08-04 18:18:08 +00009919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920 version_type=freebsd-elf
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 hardcode_into_libs=yes
9927 if test "$with_gnu_ld" = yes; then
9928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9929 shlibpath_overrides_runpath=no
9930 else
9931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932 shlibpath_overrides_runpath=yes
9933 case $host_os in
9934 sco3.2v5*)
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9936 ;;
9937 esac
9938 fi
9939 sys_lib_dlsearch_path_spec='/usr/lib'
9940 ;;
9941
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942uts4*)
9943 version_type=linux
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 ;;
9948
9949*)
9950 dynamic_linker=no
9951 ;;
9952esac
Reid Spencera773bd52006-08-04 18:18:08 +00009953{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9954echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955test "$dynamic_linker" = no && can_build_shared=no
9956
Reid Spencera773bd52006-08-04 18:18:08 +00009957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9958if test "$GCC" = yes; then
9959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9960fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961
Reid Spencera773bd52006-08-04 18:18:08 +00009962
9963{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9964echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965if test "${libltdl_cv_shlibext+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968
9969module=yes
9970eval libltdl_cv_shlibext=$shrext_cmds
9971
9972fi
Reid Spencera773bd52006-08-04 18:18:08 +00009973{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9974echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975if test -n "$libltdl_cv_shlibext"; then
9976
9977cat >>confdefs.h <<_ACEOF
9978#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9979_ACEOF
9980
9981fi
9982
9983
Reid Spencera773bd52006-08-04 18:18:08 +00009984{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9985echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986if test "${libltdl_cv_shlibpath_var+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989 libltdl_cv_shlibpath_var="$shlibpath_var"
9990fi
Reid Spencera773bd52006-08-04 18:18:08 +00009991{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9992echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993if test -n "$libltdl_cv_shlibpath_var"; then
9994
9995cat >>confdefs.h <<_ACEOF
9996#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9997_ACEOF
9998
9999fi
10000
10001
Reid Spencera773bd52006-08-04 18:18:08 +000010002{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10003echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004if test "${libltdl_cv_sys_search_path+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10008fi
Reid Spencera773bd52006-08-04 18:18:08 +000010009{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10010echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011if test -n "$libltdl_cv_sys_search_path"; then
10012 sys_search_path=
10013 for dir in $libltdl_cv_sys_search_path; do
10014 if test -z "$sys_search_path"; then
10015 sys_search_path="$dir"
10016 else
10017 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10018 fi
10019 done
10020
10021cat >>confdefs.h <<_ACEOF
10022#define LTDL_SYSSEARCHPATH "$sys_search_path"
10023_ACEOF
10024
10025fi
10026
Reid Spencera773bd52006-08-04 18:18:08 +000010027{ echo "$as_me:$LINENO: checking for objdir" >&5
10028echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029if test "${libltdl_cv_objdir+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031else
10032 libltdl_cv_objdir="$objdir"
10033 if test -n "$objdir"; then
10034 :
10035 else
10036 rm -f .libs 2>/dev/null
10037 mkdir .libs 2>/dev/null
10038 if test -d .libs; then
10039 libltdl_cv_objdir=.libs
10040 else
10041 # MS-DOS does not allow filenames that begin with a dot.
10042 libltdl_cv_objdir=_libs
10043 fi
10044 rmdir .libs 2>/dev/null
10045 fi
10046
10047fi
Reid Spencera773bd52006-08-04 18:18:08 +000010048{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10049echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050
10051cat >>confdefs.h <<_ACEOF
10052#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10053_ACEOF
10054
10055
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056
10057
10058
10059
10060# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000010061{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10062echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066
10067# These are sane defaults that work on at least a few old systems.
10068# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10069
10070# Character class describing NM global symbol codes.
10071symcode='[BCDEGRST]'
10072
10073# Regexp to match symbols that can be accessed directly from C.
10074sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10075
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076# Transform an extracted symbol line into a proper C declaration
10077lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10078
10079# Transform an extracted symbol line into symbol name and symbol address
10080lt_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'"
10081
10082# Define system-specific variables.
10083case $host_os in
10084aix*)
10085 symcode='[BCDT]'
10086 ;;
10087cygwin* | mingw* | pw32*)
10088 symcode='[ABCDGISTW]'
10089 ;;
10090hpux*) # Its linker distinguishes data from code symbols
10091 if test "$host_cpu" = ia64; then
10092 symcode='[ABCDEGRST]'
10093 fi
10094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095 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'"
10096 ;;
10097linux*)
10098 if test "$host_cpu" = ia64; then
10099 symcode='[ABCDGIRSTW]'
10100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10101 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'"
10102 fi
10103 ;;
10104irix* | nonstopux*)
10105 symcode='[BCDEGRST]'
10106 ;;
10107osf*)
10108 symcode='[BCDEGQRST]'
10109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010110solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111 symcode='[BDRT]'
10112 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010113sco3.2v5*)
10114 symcode='[DT]'
10115 ;;
10116sysv4.2uw2*)
10117 symcode='[DT]'
10118 ;;
10119sysv5* | sco5v6* | unixware* | OpenUNIX*)
10120 symcode='[ABDT]'
10121 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122sysv4)
10123 symcode='[DFNSTU]'
10124 ;;
10125esac
10126
10127# Handle CRLF in mingw tool chain
10128opt_cr=
10129case $build_os in
10130mingw*)
10131 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10132 ;;
10133esac
10134
10135# If we're using GNU nm, then use its standard symbol codes.
10136case `$NM -V 2>&1` in
10137*GNU* | *'with BFD'*)
10138 symcode='[ABCDGIRSTW]' ;;
10139esac
10140
10141# Try without a prefix undercore, then with it.
10142for ac_symprfx in "" "_"; do
10143
Reid Spencera773bd52006-08-04 18:18:08 +000010144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10145 symxfrm="\\1 $ac_symprfx\\2 \\2"
10146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010148 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 +000010149
10150 # Check to see that the pipe works correctly.
10151 pipe_works=no
10152
10153 rm -f conftest*
10154 cat > conftest.$ac_ext <<EOF
10155#ifdef __cplusplus
10156extern "C" {
10157#endif
10158char nm_test_var;
10159void nm_test_func(){}
10160#ifdef __cplusplus
10161}
10162#endif
10163int main(){nm_test_var='a';nm_test_func();return(0);}
10164EOF
10165
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; then
10171 # Now try to grab the symbols.
10172 nlist=conftest.nm
10173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && test -s "$nlist"; then
10178 # Try sorting and uniquifying the output.
10179 if sort "$nlist" | uniq > "$nlist"T; then
10180 mv -f "$nlist"T "$nlist"
10181 else
10182 rm -f "$nlist"T
10183 fi
10184
10185 # Make sure that we snagged all the symbols we need.
10186 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10187 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10188 cat <<EOF > conftest.$ac_ext
10189#ifdef __cplusplus
10190extern "C" {
10191#endif
10192
10193EOF
10194 # Now generate the symbol file.
10195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10196
10197 cat <<EOF >> conftest.$ac_ext
10198#if defined (__STDC__) && __STDC__
10199# define lt_ptr_t void *
10200#else
10201# define lt_ptr_t char *
10202# define const
10203#endif
10204
10205/* The mapping between symbol names and symbols. */
10206const struct {
10207 const char *name;
10208 lt_ptr_t address;
10209}
10210lt_preloaded_symbols[] =
10211{
10212EOF
10213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10214 cat <<\EOF >> conftest.$ac_ext
10215 {0, (lt_ptr_t) 0}
10216};
10217
10218#ifdef __cplusplus
10219}
10220#endif
10221EOF
10222 # Now try linking the two files.
10223 mv conftest.$ac_objext conftstm.$ac_objext
10224 lt_save_LIBS="$LIBS"
10225 lt_save_CFLAGS="$CFLAGS"
10226 LIBS="conftstm.$ac_objext"
10227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10233 pipe_works=yes
10234 fi
10235 LIBS="$lt_save_LIBS"
10236 CFLAGS="$lt_save_CFLAGS"
10237 else
10238 echo "cannot find nm_test_func in $nlist" >&5
10239 fi
10240 else
10241 echo "cannot find nm_test_var in $nlist" >&5
10242 fi
10243 else
10244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10245 fi
10246 else
10247 echo "$progname: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 fi
10250 rm -f conftest* conftst*
10251
10252 # Do not use the global_symbol_pipe unless it works.
10253 if test "$pipe_works" = yes; then
10254 break
10255 else
10256 lt_cv_sys_global_symbol_pipe=
10257 fi
10258done
10259
10260fi
10261
10262if test -z "$lt_cv_sys_global_symbol_pipe"; then
10263 lt_cv_sys_global_symbol_to_cdecl=
10264fi
10265if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010266 { echo "$as_me:$LINENO: result: failed" >&5
10267echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268else
Reid Spencera773bd52006-08-04 18:18:08 +000010269 { echo "$as_me:$LINENO: result: ok" >&5
10270echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271fi
10272
10273
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10275echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10280 libltdl_cv_preloaded_symbols=yes
10281 else
10282 libltdl_cv_preloaded_symbols=no
10283 fi
10284
10285fi
Reid Spencera773bd52006-08-04 18:18:08 +000010286{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10287echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10289
10290cat >>confdefs.h <<\_ACEOF
10291#define HAVE_PRELOADED_SYMBOLS 1
10292_ACEOF
10293
10294fi
10295
10296LIBADD_DL=
10297
10298ac_ext=c
10299ac_cpp='$CPP $CPPFLAGS'
10300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
Reid Spencera773bd52006-08-04 18:18:08 +000010305{ echo "$as_me:$LINENO: checking for shl_load" >&5
10306echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307if test "${ac_cv_func_shl_load+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
10316/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10318#define shl_load innocuous_shl_load
10319
10320/* System header to define __stub macros and hopefully few prototypes,
10321 which can conflict with char shl_load (); below.
10322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10323 <limits.h> exists even on freestanding compilers. */
10324
10325#ifdef __STDC__
10326# include <limits.h>
10327#else
10328# include <assert.h>
10329#endif
10330
10331#undef shl_load
10332
Reid Spencera773bd52006-08-04 18:18:08 +000010333/* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336#ifdef __cplusplus
10337extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339char shl_load ();
10340/* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010343#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345#endif
10346
10347int
10348main ()
10349{
Reid Spencera773bd52006-08-04 18:18:08 +000010350return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351 ;
10352 return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010356if { (ac_try="$ac_link"
10357case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest$ac_exeext'
10380 { (case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383esac
10384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_try") 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 ac_cv_func_shl_load=yes
10390else
10391 echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
Reid Spencera773bd52006-08-04 18:18:08 +000010394 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395fi
Reid Spencera773bd52006-08-04 18:18:08 +000010396
Bill Wendlingebcceee2009-04-18 11:20:33 +000010397rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398 conftest$ac_exeext conftest.$ac_ext
10399fi
Reid Spencera773bd52006-08-04 18:18:08 +000010400{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10401echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402if test $ac_cv_func_shl_load = yes; then
10403
10404cat >>confdefs.h <<\_ACEOF
10405#define HAVE_SHL_LOAD 1
10406_ACEOF
10407
10408else
Reid Spencera773bd52006-08-04 18:18:08 +000010409 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 ac_check_lib_save_LIBS=$LIBS
10415LIBS="-ldld $LIBS"
10416cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422
Reid Spencera773bd52006-08-04 18:18:08 +000010423/* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426#ifdef __cplusplus
10427extern "C"
10428#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429char shl_load ();
10430int
10431main ()
10432{
Reid Spencera773bd52006-08-04 18:18:08 +000010433return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 ;
10435 return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010439if { (ac_try="$ac_link"
10440case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 ac_cv_lib_dld_shl_load=yes
10473else
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
Reid Spencera773bd52006-08-04 18:18:08 +000010477 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478fi
Reid Spencera773bd52006-08-04 18:18:08 +000010479
Bill Wendlingebcceee2009-04-18 11:20:33 +000010480rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010481 conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
Reid Spencera773bd52006-08-04 18:18:08 +000010484{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10485echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486if test $ac_cv_lib_dld_shl_load = yes; then
10487
10488cat >>confdefs.h <<\_ACEOF
10489#define HAVE_SHL_LOAD 1
10490_ACEOF
10491
10492 LIBADD_DL="$LIBADD_DL -ldld"
10493else
Reid Spencera773bd52006-08-04 18:18:08 +000010494 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10495echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 ac_check_lib_save_LIBS=$LIBS
10500LIBS="-ldl $LIBS"
10501cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507
Reid Spencera773bd52006-08-04 18:18:08 +000010508/* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511#ifdef __cplusplus
10512extern "C"
10513#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514char dlopen ();
10515int
10516main ()
10517{
Reid Spencera773bd52006-08-04 18:18:08 +000010518return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519 ;
10520 return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010524if { (ac_try="$ac_link"
10525case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557 ac_cv_lib_dl_dlopen=yes
10558else
10559 echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
Reid Spencera773bd52006-08-04 18:18:08 +000010562 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563fi
Reid Spencera773bd52006-08-04 18:18:08 +000010564
Bill Wendlingebcceee2009-04-18 11:20:33 +000010565rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 conftest$ac_exeext conftest.$ac_ext
10567LIBS=$ac_check_lib_save_LIBS
10568fi
Reid Spencera773bd52006-08-04 18:18:08 +000010569{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10570echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571if test $ac_cv_lib_dl_dlopen = yes; then
10572
10573cat >>confdefs.h <<\_ACEOF
10574#define HAVE_LIBDL 1
10575_ACEOF
10576
10577 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10578else
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585#if HAVE_DLFCN_H
10586# include <dlfcn.h>
10587#endif
10588
10589int
10590main ()
10591{
10592dlopen(0, 0);
10593 ;
10594 return 0;
10595}
10596_ACEOF
10597rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010598if { (ac_try="$ac_link"
10599case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602esac
10603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625esac
10626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631
10632cat >>confdefs.h <<\_ACEOF
10633#define HAVE_LIBDL 1
10634_ACEOF
10635 libltdl_cv_func_dlopen="yes"
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
Reid Spencera773bd52006-08-04 18:18:08 +000010640 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10641echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645 ac_check_lib_save_LIBS=$LIBS
10646LIBS="-lsvld $LIBS"
10647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
10653
Reid Spencera773bd52006-08-04 18:18:08 +000010654/* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657#ifdef __cplusplus
10658extern "C"
10659#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660char dlopen ();
10661int
10662main ()
10663{
Reid Spencera773bd52006-08-04 18:18:08 +000010664return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 ;
10666 return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010670if { (ac_try="$ac_link"
10671case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674esac
10675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_cv_lib_svld_dlopen=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
Reid Spencera773bd52006-08-04 18:18:08 +000010708 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709fi
Reid Spencera773bd52006-08-04 18:18:08 +000010710
Bill Wendlingebcceee2009-04-18 11:20:33 +000010711rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 conftest$ac_exeext conftest.$ac_ext
10713LIBS=$ac_check_lib_save_LIBS
10714fi
Reid Spencera773bd52006-08-04 18:18:08 +000010715{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10716echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717if test $ac_cv_lib_svld_dlopen = yes; then
10718
10719cat >>confdefs.h <<\_ACEOF
10720#define HAVE_LIBDL 1
10721_ACEOF
10722
10723 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10724else
Reid Spencera773bd52006-08-04 18:18:08 +000010725 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729else
10730 ac_check_lib_save_LIBS=$LIBS
10731LIBS="-ldld $LIBS"
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
10738
Reid Spencera773bd52006-08-04 18:18:08 +000010739/* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742#ifdef __cplusplus
10743extern "C"
10744#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745char dld_link ();
10746int
10747main ()
10748{
Reid Spencera773bd52006-08-04 18:18:08 +000010749return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010755if { (ac_try="$ac_link"
10756case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759esac
10760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788 ac_cv_lib_dld_dld_link=yes
10789else
10790 echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
Reid Spencera773bd52006-08-04 18:18:08 +000010793 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794fi
Reid Spencera773bd52006-08-04 18:18:08 +000010795
Bill Wendlingebcceee2009-04-18 11:20:33 +000010796rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797 conftest$ac_exeext conftest.$ac_ext
10798LIBS=$ac_check_lib_save_LIBS
10799fi
Reid Spencera773bd52006-08-04 18:18:08 +000010800{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10801echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802if test $ac_cv_lib_dld_dld_link = yes; then
10803
10804cat >>confdefs.h <<\_ACEOF
10805#define HAVE_DLD 1
10806_ACEOF
10807
10808 LIBADD_DL="$LIBADD_DL -ldld"
10809else
Reid Spencera773bd52006-08-04 18:18:08 +000010810 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10811echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815 cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h. */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h. */
10821/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10823#define _dyld_func_lookup innocuous__dyld_func_lookup
10824
10825/* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char _dyld_func_lookup (); below.
10827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828 <limits.h> exists even on freestanding compilers. */
10829
10830#ifdef __STDC__
10831# include <limits.h>
10832#else
10833# include <assert.h>
10834#endif
10835
10836#undef _dyld_func_lookup
10837
Reid Spencera773bd52006-08-04 18:18:08 +000010838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841#ifdef __cplusplus
10842extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844char _dyld_func_lookup ();
10845/* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010848#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850#endif
10851
10852int
10853main ()
10854{
Reid Spencera773bd52006-08-04 18:18:08 +000010855return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856 ;
10857 return 0;
10858}
10859_ACEOF
10860rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010861if { (ac_try="$ac_link"
10862case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894 ac_cv_func__dyld_func_lookup=yes
10895else
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
Reid Spencera773bd52006-08-04 18:18:08 +000010899 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900fi
Reid Spencera773bd52006-08-04 18:18:08 +000010901
Bill Wendlingebcceee2009-04-18 11:20:33 +000010902rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903 conftest$ac_exeext conftest.$ac_ext
10904fi
Reid Spencera773bd52006-08-04 18:18:08 +000010905{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10906echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907if test $ac_cv_func__dyld_func_lookup = yes; then
10908
10909cat >>confdefs.h <<\_ACEOF
10910#define HAVE_DYLD 1
10911_ACEOF
10912
10913fi
10914
10915
10916fi
10917
10918
10919fi
10920
10921
10922fi
Reid Spencera773bd52006-08-04 18:18:08 +000010923
Bill Wendlingebcceee2009-04-18 11:20:33 +000010924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925 conftest$ac_exeext conftest.$ac_ext
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10937then
10938 lt_save_LIBS="$LIBS"
10939 LIBS="$LIBS $LIBADD_DL"
10940
10941for ac_func in dlerror
10942do
10943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948else
10949 cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
10955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10957#define $ac_func innocuous_$ac_func
10958
10959/* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10963
10964#ifdef __STDC__
10965# include <limits.h>
10966#else
10967# include <assert.h>
10968#endif
10969
10970#undef $ac_func
10971
Reid Spencera773bd52006-08-04 18:18:08 +000010972/* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975#ifdef __cplusplus
10976extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978char $ac_func ();
10979/* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010982#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984#endif
10985
10986int
10987main ()
10988{
Reid Spencera773bd52006-08-04 18:18:08 +000010989return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990 ;
10991 return 0;
10992}
10993_ACEOF
10994rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010995if { (ac_try="$ac_link"
10996case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999esac
11000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028 eval "$as_ac_var=yes"
11029else
11030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
Reid Spencera773bd52006-08-04 18:18:08 +000011033 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034fi
Reid Spencera773bd52006-08-04 18:18:08 +000011035
Bill Wendlingebcceee2009-04-18 11:20:33 +000011036rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037 conftest$ac_exeext conftest.$ac_ext
11038fi
Reid Spencera773bd52006-08-04 18:18:08 +000011039ac_res=`eval echo '${'$as_ac_var'}'`
11040 { echo "$as_me:$LINENO: result: $ac_res" >&5
11041echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042if test `eval echo '${'$as_ac_var'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045_ACEOF
11046
11047fi
11048done
11049
11050 LIBS="$lt_save_LIBS"
11051fi
11052ac_ext=c
11053ac_cpp='$CPP $CPPFLAGS'
11054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056ac_compiler_gnu=$ac_cv_c_compiler_gnu
11057
11058
11059
Reid Spencera773bd52006-08-04 18:18:08 +000011060{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11061echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064else
11065 ac_cv_sys_symbol_underscore=no
11066 cat > conftest.$ac_ext <<EOF
11067void nm_test_func(){}
11068int main(){nm_test_func;return 0;}
11069EOF
11070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; then
11075 # Now try to grab the symbols.
11076 ac_nlist=conftest.nm
11077 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11078 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && test -s "$ac_nlist"; then
11082 # See whether the symbols have a leading underscore.
11083 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11084 ac_cv_sys_symbol_underscore=yes
11085 else
11086 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11087 :
11088 else
11089 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11090 fi
11091 fi
11092 else
11093 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11094 fi
11095 else
11096 echo "configure: failed program was:" >&5
11097 cat conftest.c >&5
11098 fi
11099 rm -rf conftest*
11100
11101fi
Reid Spencera773bd52006-08-04 18:18:08 +000011102{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11103echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104
11105
11106if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11107 if test x"$libltdl_cv_func_dlopen" = xyes ||
11108 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011109 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11110echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111if test "${libltdl_cv_need_uscore+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 libltdl_cv_need_uscore=unknown
11115 save_LIBS="$LIBS"
11116 LIBS="$LIBS $LIBADD_DL"
11117 if test "$cross_compiling" = yes; then :
11118 libltdl_cv_need_uscore=cross
11119else
11120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11121 lt_status=$lt_dlunknown
11122 cat > conftest.$ac_ext <<EOF
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000011123#line 11123 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124#include "confdefs.h"
11125
11126#if HAVE_DLFCN_H
11127#include <dlfcn.h>
11128#endif
11129
11130#include <stdio.h>
11131
11132#ifdef RTLD_GLOBAL
11133# define LT_DLGLOBAL RTLD_GLOBAL
11134#else
11135# ifdef DL_GLOBAL
11136# define LT_DLGLOBAL DL_GLOBAL
11137# else
11138# define LT_DLGLOBAL 0
11139# endif
11140#endif
11141
11142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11143 find out it does not work in some platform. */
11144#ifndef LT_DLLAZY_OR_NOW
11145# ifdef RTLD_LAZY
11146# define LT_DLLAZY_OR_NOW RTLD_LAZY
11147# else
11148# ifdef DL_LAZY
11149# define LT_DLLAZY_OR_NOW DL_LAZY
11150# else
11151# ifdef RTLD_NOW
11152# define LT_DLLAZY_OR_NOW RTLD_NOW
11153# else
11154# ifdef DL_NOW
11155# define LT_DLLAZY_OR_NOW DL_NOW
11156# else
11157# define LT_DLLAZY_OR_NOW 0
11158# endif
11159# endif
11160# endif
11161# endif
11162#endif
11163
11164#ifdef __cplusplus
11165extern "C" void exit (int);
11166#endif
11167
11168void fnord() { int i=42;}
11169int main ()
11170{
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11173
11174 if (self)
11175 {
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178 /* dlclose (self); */
11179 }
Reid Spencera773bd52006-08-04 18:18:08 +000011180 else
11181 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182
11183 exit (status);
11184}
11185EOF
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011191 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192 lt_status=$?
11193 case x$lt_status in
11194 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11195 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011196 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 esac
11198 else :
11199 # compilation failed
11200
11201 fi
11202fi
11203rm -fr conftest*
11204
11205 LIBS="$save_LIBS"
11206
11207fi
Reid Spencera773bd52006-08-04 18:18:08 +000011208{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11209echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 fi
11211fi
11212
11213if test x"$libltdl_cv_need_uscore" = xyes; then
11214
11215cat >>confdefs.h <<\_ACEOF
11216#define NEED_USCORE 1
11217_ACEOF
11218
11219fi
11220
11221
Reid Spencera773bd52006-08-04 18:18:08 +000011222{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11223echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227 # PORTME does your system automatically load deplibs for dlopen?
11228 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11229 # For now, we just catch OSes we know something about -- in the
11230 # future, we'll try test this programmatically.
11231 libltdl_cv_sys_dlopen_deplibs=unknown
11232 case "$host_os" in
11233 aix3*|aix4.1.*|aix4.2.*)
11234 # Unknown whether this is true for these versions of AIX, but
11235 # we want this `case' here to explicitly catch those versions.
11236 libltdl_cv_sys_dlopen_deplibs=unknown
11237 ;;
11238 aix[45]*)
11239 libltdl_cv_sys_dlopen_deplibs=yes
11240 ;;
11241 darwin*)
11242 # Assuming the user has installed a libdl from somewhere, this is true
11243 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11244 libltdl_cv_sys_dlopen_deplibs=yes
11245 ;;
11246 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11247 # GNU and its variants, using gnu ld.so (Glibc)
11248 libltdl_cv_sys_dlopen_deplibs=yes
11249 ;;
11250 hpux10*|hpux11*)
11251 libltdl_cv_sys_dlopen_deplibs=yes
11252 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011253 interix*)
11254 libltdl_cv_sys_dlopen_deplibs=yes
11255 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 irix[12345]*|irix6.[01]*)
11257 # Catch all versions of IRIX before 6.2, and indicate that we don't
11258 # know how it worked for any of those versions.
11259 libltdl_cv_sys_dlopen_deplibs=unknown
11260 ;;
11261 irix*)
11262 # The case above catches anything before 6.2, and it's known that
11263 # at 6.2 and later dlopen does load deplibs.
11264 libltdl_cv_sys_dlopen_deplibs=yes
11265 ;;
11266 netbsd*)
11267 libltdl_cv_sys_dlopen_deplibs=yes
11268 ;;
11269 openbsd*)
11270 libltdl_cv_sys_dlopen_deplibs=yes
11271 ;;
11272 osf[1234]*)
11273 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11274 # it did *not* use an RPATH in a shared library to find objects the
11275 # library depends on, so we explictly say `no'.
11276 libltdl_cv_sys_dlopen_deplibs=no
11277 ;;
11278 osf5.0|osf5.0a|osf5.1)
11279 # dlopen *does* load deplibs and with the right loader patch applied
11280 # it even uses RPATH in a shared library to search for shared objects
11281 # that the library depends on, but there's no easy way to know if that
11282 # patch is installed. Since this is the case, all we can really
11283 # say is unknown -- it depends on the patch being installed. If
11284 # it is, this changes to `yes'. Without it, it would be `no'.
11285 libltdl_cv_sys_dlopen_deplibs=unknown
11286 ;;
11287 osf*)
11288 # the two cases above should catch all versions of osf <= 5.1. Read
11289 # the comments above for what we know about them.
11290 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11291 # is used to find them so we can finally say `yes'.
11292 libltdl_cv_sys_dlopen_deplibs=yes
11293 ;;
11294 solaris*)
11295 libltdl_cv_sys_dlopen_deplibs=yes
11296 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11298 libltdl_cv_sys_dlopen_deplibs=yes
11299 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 esac
11301
11302fi
Reid Spencera773bd52006-08-04 18:18:08 +000011303{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11304echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11306
11307cat >>confdefs.h <<\_ACEOF
11308#define LTDL_DLOPEN_DEPLIBS 1
11309_ACEOF
11310
11311fi
11312
11313
11314for ac_header in argz.h
11315do
11316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322fi
Reid Spencera773bd52006-08-04 18:18:08 +000011323ac_res=`eval echo '${'$as_ac_Header'}'`
11324 { echo "$as_me:$LINENO: result: $ac_res" >&5
11325echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326else
11327 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011328{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336$ac_includes_default
11337#include <$ac_header>
11338_ACEOF
11339rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011340if { (ac_try="$ac_compile"
11341case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344esac
11345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373 ac_header_compiler=yes
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
Reid Spencera773bd52006-08-04 18:18:08 +000011378 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379fi
Reid Spencera773bd52006-08-04 18:18:08 +000011380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11383echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384
11385# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011388cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
11394#include <$ac_header>
11395_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011396if { (ac_try="$ac_cpp conftest.$ac_ext"
11397case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011408 (exit $ac_status); } >/dev/null; then
11409 if test -s conftest.err; then
11410 ac_cpp_err=$ac_c_preproc_warn_flag
11411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11412 else
11413 ac_cpp_err=
11414 fi
11415else
11416 ac_cpp_err=yes
11417fi
11418if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 ac_header_preproc=yes
11420else
11421 echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 ac_header_preproc=no
11425fi
Reid Spencera773bd52006-08-04 18:18:08 +000011426
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430
11431# So? What about this header?
11432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11433 yes:no: )
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438 ac_header_preproc=yes
11439 ;;
11440 no:yes:* )
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011453 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454## ----------------------------------- ##
11455## Report this to llvmbugs@cs.uiuc.edu ##
11456## ----------------------------------- ##
11457_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011458 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459 ;;
11460esac
Reid Spencera773bd52006-08-04 18:18:08 +000011461{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
11466 eval "$as_ac_Header=\$ac_header_preproc"
11467fi
Reid Spencera773bd52006-08-04 18:18:08 +000011468ac_res=`eval echo '${'$as_ac_Header'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471
11472fi
11473if test `eval echo '${'$as_ac_Header'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479
11480done
11481
11482
Reid Spencera773bd52006-08-04 18:18:08 +000011483{ echo "$as_me:$LINENO: checking for error_t" >&5
11484echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485if test "${ac_cv_type_error_t+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494#if HAVE_ARGZ_H
11495# include <argz.h>
11496#endif
11497
Reid Spencera773bd52006-08-04 18:18:08 +000011498typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499int
11500main ()
11501{
Reid Spencera773bd52006-08-04 18:18:08 +000011502if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011504if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505 return 0;
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011511if { (ac_try="$ac_compile"
11512case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 ac_cv_type_error_t=yes
11545else
11546 echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
Reid Spencera773bd52006-08-04 18:18:08 +000011549 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550fi
Reid Spencera773bd52006-08-04 18:18:08 +000011551
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553fi
Reid Spencera773bd52006-08-04 18:18:08 +000011554{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11555echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556if test $ac_cv_type_error_t = yes; then
11557
11558cat >>confdefs.h <<_ACEOF
11559#define HAVE_ERROR_T 1
11560_ACEOF
11561
11562
11563else
11564
11565cat >>confdefs.h <<\_ACEOF
11566#define error_t int
11567_ACEOF
11568
11569fi
11570
11571
11572
11573
11574
11575
11576
11577for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11578do
11579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011580{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11582if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11593#define $ac_func innocuous_$ac_func
11594
11595/* System header to define __stub macros and hopefully few prototypes,
11596 which can conflict with char $ac_func (); below.
11597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 <limits.h> exists even on freestanding compilers. */
11599
11600#ifdef __STDC__
11601# include <limits.h>
11602#else
11603# include <assert.h>
11604#endif
11605
11606#undef $ac_func
11607
Reid Spencera773bd52006-08-04 18:18:08 +000011608/* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611#ifdef __cplusplus
11612extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614char $ac_func ();
11615/* The GNU C library defines this for functions which it implements
11616 to always fail with ENOSYS. Some functions are actually named
11617 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011618#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620#endif
11621
11622int
11623main ()
11624{
Reid Spencera773bd52006-08-04 18:18:08 +000011625return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011631if { (ac_try="$ac_link"
11632case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664 eval "$as_ac_var=yes"
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
Reid Spencera773bd52006-08-04 18:18:08 +000011669 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670fi
Reid Spencera773bd52006-08-04 18:18:08 +000011671
Bill Wendlingebcceee2009-04-18 11:20:33 +000011672rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673 conftest$ac_exeext conftest.$ac_ext
11674fi
Reid Spencera773bd52006-08-04 18:18:08 +000011675ac_res=`eval echo '${'$as_ac_var'}'`
11676 { echo "$as_me:$LINENO: result: $ac_res" >&5
11677echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678if test `eval echo '${'$as_ac_var'}'` = yes; then
11679 cat >>confdefs.h <<_ACEOF
11680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11681_ACEOF
11682
11683fi
11684done
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11714 stdio.h unistd.h
11715do
11716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722fi
Reid Spencera773bd52006-08-04 18:18:08 +000011723ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726else
11727 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736$ac_includes_default
11737#include <$ac_header>
11738_ACEOF
11739rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011740if { (ac_try="$ac_compile"
11741case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744esac
11745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_try") 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 ac_header_compiler=yes
11774else
11775 echo "$as_me: failed program was:" >&5
11776sed 's/^/| /' conftest.$ac_ext >&5
11777
Reid Spencera773bd52006-08-04 18:18:08 +000011778 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779fi
Reid Spencera773bd52006-08-04 18:18:08 +000011780
11781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784
11785# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011786{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794#include <$ac_header>
11795_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011796if { (ac_try="$ac_cpp conftest.$ac_ext"
11797case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812 else
11813 ac_cpp_err=
11814 fi
11815else
11816 ac_cpp_err=yes
11817fi
11818if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819 ac_header_preproc=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_header_preproc=no
11825fi
Reid Spencera773bd52006-08-04 18:18:08 +000011826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011828{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830
11831# So? What about this header?
11832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11833 yes:no: )
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc=yes
11839 ;;
11840 no:yes:* )
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011853 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854## ----------------------------------- ##
11855## Report this to llvmbugs@cs.uiuc.edu ##
11856## ----------------------------------- ##
11857_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011858 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859 ;;
11860esac
Reid Spencera773bd52006-08-04 18:18:08 +000011861{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866 eval "$as_ac_Header=\$ac_header_preproc"
11867fi
Reid Spencera773bd52006-08-04 18:18:08 +000011868ac_res=`eval echo '${'$as_ac_Header'}'`
11869 { echo "$as_me:$LINENO: result: $ac_res" >&5
11870echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871
11872fi
11873if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876_ACEOF
11877
11878fi
11879
11880done
11881
11882
11883
11884
11885
11886for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11887do
11888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894fi
Reid Spencera773bd52006-08-04 18:18:08 +000011895ac_res=`eval echo '${'$as_ac_Header'}'`
11896 { echo "$as_me:$LINENO: result: $ac_res" >&5
11897echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898else
11899 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
11908$ac_includes_default
11909#include <$ac_header>
11910_ACEOF
11911rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest.$ac_objext'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939esac
11940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945 ac_header_compiler=yes
11946else
11947 echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
Reid Spencera773bd52006-08-04 18:18:08 +000011950 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951fi
Reid Spencera773bd52006-08-04 18:18:08 +000011952
11953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956
11957# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966#include <$ac_header>
11967_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011968if { (ac_try="$ac_cpp conftest.$ac_ext"
11969case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011980 (exit $ac_status); } >/dev/null; then
11981 if test -s conftest.err; then
11982 ac_cpp_err=$ac_c_preproc_warn_flag
11983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11984 else
11985 ac_cpp_err=
11986 fi
11987else
11988 ac_cpp_err=yes
11989fi
11990if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991 ac_header_preproc=yes
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_header_preproc=no
11997fi
Reid Spencera773bd52006-08-04 18:18:08 +000011998
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002
12003# So? What about this header?
12004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12011 ;;
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012025 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026## ----------------------------------- ##
12027## Report this to llvmbugs@cs.uiuc.edu ##
12028## ----------------------------------- ##
12029_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012030 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031 ;;
12032esac
Reid Spencera773bd52006-08-04 18:18:08 +000012033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 eval "$as_ac_Header=\$ac_header_preproc"
12039fi
Reid Spencera773bd52006-08-04 18:18:08 +000012040ac_res=`eval echo '${'$as_ac_Header'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043
12044fi
12045if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048_ACEOF
12049
12050fi
12051
12052done
12053
12054
12055
12056for ac_header in string.h strings.h
12057do
12058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064fi
Reid Spencera773bd52006-08-04 18:18:08 +000012065ac_res=`eval echo '${'$as_ac_Header'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068else
12069 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000012070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079#include <$ac_header>
12080_ACEOF
12081rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012082if { (ac_try="$ac_compile"
12083case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115 ac_header_compiler=yes
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
Reid Spencera773bd52006-08-04 18:18:08 +000012120 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121fi
Reid Spencera773bd52006-08-04 18:18:08 +000012122
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126
12127# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136#include <$ac_header>
12137_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012138if { (ac_try="$ac_cpp conftest.$ac_ext"
12139case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012150 (exit $ac_status); } >/dev/null; then
12151 if test -s conftest.err; then
12152 ac_cpp_err=$ac_c_preproc_warn_flag
12153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 else
12155 ac_cpp_err=
12156 fi
12157else
12158 ac_cpp_err=yes
12159fi
12160if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161 ac_header_preproc=yes
12162else
12163 echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_header_preproc=no
12167fi
Reid Spencera773bd52006-08-04 18:18:08 +000012168
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172
12173# So? What about this header?
12174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12175 yes:no: )
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc=yes
12181 ;;
12182 no:yes:* )
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012195 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196## ----------------------------------- ##
12197## Report this to llvmbugs@cs.uiuc.edu ##
12198## ----------------------------------- ##
12199_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012200 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201 ;;
12202esac
Reid Spencera773bd52006-08-04 18:18:08 +000012203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 eval "$as_ac_Header=\$ac_header_preproc"
12209fi
Reid Spencera773bd52006-08-04 18:18:08 +000012210ac_res=`eval echo '${'$as_ac_Header'}'`
12211 { echo "$as_me:$LINENO: result: $ac_res" >&5
12212echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213
12214fi
12215if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218_ACEOF
12219 break
12220fi
12221
12222done
12223
12224
12225
12226
12227for ac_func in strchr index
12228do
12229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235 cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12243#define $ac_func innocuous_$ac_func
12244
12245/* System header to define __stub macros and hopefully few prototypes,
12246 which can conflict with char $ac_func (); below.
12247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248 <limits.h> exists even on freestanding compilers. */
12249
12250#ifdef __STDC__
12251# include <limits.h>
12252#else
12253# include <assert.h>
12254#endif
12255
12256#undef $ac_func
12257
Reid Spencera773bd52006-08-04 18:18:08 +000012258/* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261#ifdef __cplusplus
12262extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012263#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264char $ac_func ();
12265/* The GNU C library defines this for functions which it implements
12266 to always fail with ENOSYS. Some functions are actually named
12267 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012268#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012269choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270#endif
12271
12272int
12273main ()
12274{
Reid Spencera773bd52006-08-04 18:18:08 +000012275return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276 ;
12277 return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012281if { (ac_try="$ac_link"
12282case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285esac
12286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314 eval "$as_ac_var=yes"
12315else
12316 echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
Reid Spencera773bd52006-08-04 18:18:08 +000012319 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320fi
Reid Spencera773bd52006-08-04 18:18:08 +000012321
Bill Wendlingebcceee2009-04-18 11:20:33 +000012322rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323 conftest$ac_exeext conftest.$ac_ext
12324fi
Reid Spencera773bd52006-08-04 18:18:08 +000012325ac_res=`eval echo '${'$as_ac_var'}'`
12326 { echo "$as_me:$LINENO: result: $ac_res" >&5
12327echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012328if test `eval echo '${'$as_ac_var'}'` = yes; then
12329 cat >>confdefs.h <<_ACEOF
12330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12331_ACEOF
12332 break
12333fi
12334done
12335
12336
12337
12338for ac_func in strrchr rindex
12339do
12340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012341{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345else
12346 cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12354#define $ac_func innocuous_$ac_func
12355
12356/* System header to define __stub macros and hopefully few prototypes,
12357 which can conflict with char $ac_func (); below.
12358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12359 <limits.h> exists even on freestanding compilers. */
12360
12361#ifdef __STDC__
12362# include <limits.h>
12363#else
12364# include <assert.h>
12365#endif
12366
12367#undef $ac_func
12368
Reid Spencera773bd52006-08-04 18:18:08 +000012369/* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372#ifdef __cplusplus
12373extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375char $ac_func ();
12376/* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012379#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012380choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381#endif
12382
12383int
12384main ()
12385{
Reid Spencera773bd52006-08-04 18:18:08 +000012386return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012387 ;
12388 return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012392if { (ac_try="$ac_link"
12393case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425 eval "$as_ac_var=yes"
12426else
12427 echo "$as_me: failed program was:" >&5
12428sed 's/^/| /' conftest.$ac_ext >&5
12429
Reid Spencera773bd52006-08-04 18:18:08 +000012430 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012431fi
Reid Spencera773bd52006-08-04 18:18:08 +000012432
Bill Wendlingebcceee2009-04-18 11:20:33 +000012433rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434 conftest$ac_exeext conftest.$ac_ext
12435fi
Reid Spencera773bd52006-08-04 18:18:08 +000012436ac_res=`eval echo '${'$as_ac_var'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012439if test `eval echo '${'$as_ac_var'}'` = yes; then
12440 cat >>confdefs.h <<_ACEOF
12441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442_ACEOF
12443 break
12444fi
12445done
12446
12447
12448
12449for ac_func in memcpy bcopy
12450do
12451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457 cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465#define $ac_func innocuous_$ac_func
12466
12467/* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12471
12472#ifdef __STDC__
12473# include <limits.h>
12474#else
12475# include <assert.h>
12476#endif
12477
12478#undef $ac_func
12479
Reid Spencera773bd52006-08-04 18:18:08 +000012480/* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483#ifdef __cplusplus
12484extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486char $ac_func ();
12487/* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012490#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492#endif
12493
12494int
12495main ()
12496{
Reid Spencera773bd52006-08-04 18:18:08 +000012497return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012498 ;
12499 return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012536 eval "$as_ac_var=yes"
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
Reid Spencera773bd52006-08-04 18:18:08 +000012541 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012542fi
Reid Spencera773bd52006-08-04 18:18:08 +000012543
Bill Wendlingebcceee2009-04-18 11:20:33 +000012544rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545 conftest$ac_exeext conftest.$ac_ext
12546fi
Reid Spencera773bd52006-08-04 18:18:08 +000012547ac_res=`eval echo '${'$as_ac_var'}'`
12548 { echo "$as_me:$LINENO: result: $ac_res" >&5
12549echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550if test `eval echo '${'$as_ac_var'}'` = yes; then
12551 cat >>confdefs.h <<_ACEOF
12552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553_ACEOF
12554 break
12555fi
12556done
12557
12558
12559
12560for ac_func in memmove strcmp
12561do
12562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568 cat >conftest.$ac_ext <<_ACEOF
12569/* confdefs.h. */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */
12574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576#define $ac_func innocuous_$ac_func
12577
12578/* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char $ac_func (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12582
12583#ifdef __STDC__
12584# include <limits.h>
12585#else
12586# include <assert.h>
12587#endif
12588
12589#undef $ac_func
12590
Reid Spencera773bd52006-08-04 18:18:08 +000012591/* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594#ifdef __cplusplus
12595extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597char $ac_func ();
12598/* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012601#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012602choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603#endif
12604
12605int
12606main ()
12607{
Reid Spencera773bd52006-08-04 18:18:08 +000012608return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647 eval "$as_ac_var=yes"
12648else
12649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
Reid Spencera773bd52006-08-04 18:18:08 +000012652 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012653fi
Reid Spencera773bd52006-08-04 18:18:08 +000012654
Bill Wendlingebcceee2009-04-18 11:20:33 +000012655rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656 conftest$ac_exeext conftest.$ac_ext
12657fi
Reid Spencera773bd52006-08-04 18:18:08 +000012658ac_res=`eval echo '${'$as_ac_var'}'`
12659 { echo "$as_me:$LINENO: result: $ac_res" >&5
12660echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661if test `eval echo '${'$as_ac_var'}'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664_ACEOF
12665
12666fi
12667done
12668
12669
12670
12671
12672for ac_func in closedir opendir readdir
12673do
12674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680 cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h. */
12686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12688#define $ac_func innocuous_$ac_func
12689
12690/* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char $ac_func (); below.
12692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 <limits.h> exists even on freestanding compilers. */
12694
12695#ifdef __STDC__
12696# include <limits.h>
12697#else
12698# include <assert.h>
12699#endif
12700
12701#undef $ac_func
12702
Reid Spencera773bd52006-08-04 18:18:08 +000012703/* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706#ifdef __cplusplus
12707extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709char $ac_func ();
12710/* The GNU C library defines this for functions which it implements
12711 to always fail with ENOSYS. Some functions are actually named
12712 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012713#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715#endif
12716
12717int
12718main ()
12719{
Reid Spencera773bd52006-08-04 18:18:08 +000012720return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012721 ;
12722 return 0;
12723}
12724_ACEOF
12725rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012726if { (ac_try="$ac_link"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012759 eval "$as_ac_var=yes"
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
Reid Spencera773bd52006-08-04 18:18:08 +000012764 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012765fi
Reid Spencera773bd52006-08-04 18:18:08 +000012766
Bill Wendlingebcceee2009-04-18 11:20:33 +000012767rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768 conftest$ac_exeext conftest.$ac_ext
12769fi
Reid Spencera773bd52006-08-04 18:18:08 +000012770ac_res=`eval echo '${'$as_ac_var'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012773if test `eval echo '${'$as_ac_var'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12776_ACEOF
12777
12778fi
12779done
12780
12781
Reid Spencera773bd52006-08-04 18:18:08 +000012782# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012783if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012784 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012785 case $enableval in
12786 yes) enable_shared=yes ;;
12787 no) enable_shared=no ;;
12788 *)
12789 enable_shared=no
12790 # Look at the argument we got. We use all the common list separators.
12791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12792 for pkg in $enableval; do
12793 IFS="$lt_save_ifs"
12794 if test "X$pkg" = "X$p"; then
12795 enable_shared=yes
12796 fi
12797 done
12798 IFS="$lt_save_ifs"
12799 ;;
12800 esac
12801else
12802 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012803fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012804
Reid Spencera773bd52006-08-04 18:18:08 +000012805
12806# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012808 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809 case $enableval in
12810 yes) enable_static=yes ;;
12811 no) enable_static=no ;;
12812 *)
12813 enable_static=no
12814 # Look at the argument we got. We use all the common list separators.
12815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12816 for pkg in $enableval; do
12817 IFS="$lt_save_ifs"
12818 if test "X$pkg" = "X$p"; then
12819 enable_static=yes
12820 fi
12821 done
12822 IFS="$lt_save_ifs"
12823 ;;
12824 esac
12825else
12826 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012827fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012828
Reid Spencera773bd52006-08-04 18:18:08 +000012829
12830# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012831if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012832 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012833 case $enableval in
12834 yes) enable_fast_install=yes ;;
12835 no) enable_fast_install=no ;;
12836 *)
12837 enable_fast_install=no
12838 # Look at the argument we got. We use all the common list separators.
12839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12840 for pkg in $enableval; do
12841 IFS="$lt_save_ifs"
12842 if test "X$pkg" = "X$p"; then
12843 enable_fast_install=yes
12844 fi
12845 done
12846 IFS="$lt_save_ifs"
12847 ;;
12848 esac
12849else
12850 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012851fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012852
Reid Spencera773bd52006-08-04 18:18:08 +000012853
12854{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12855echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856if test "${lt_cv_path_SED+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859 # Loop through the user's path and test for sed and gsed.
12860# Then use that list of sed's as ones to test for truncation.
12861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862for as_dir in $PATH
12863do
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for lt_ac_prog in sed gsed; do
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12869 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12870 fi
12871 done
12872 done
12873done
12874lt_ac_max=0
12875lt_ac_count=0
12876# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12877# along with /bin/sed that truncates output.
12878for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012879 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012880 cat /dev/null > conftest.in
12881 lt_ac_count=0
12882 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12883 # Check for GNU sed and select it if it is found.
12884 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12885 lt_cv_path_SED=$lt_ac_sed
12886 break
12887 fi
12888 while true; do
12889 cat conftest.in conftest.in >conftest.tmp
12890 mv conftest.tmp conftest.in
12891 cp conftest.in conftest.nl
12892 echo >>conftest.nl
12893 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12894 cmp -s conftest.out conftest.nl || break
12895 # 10000 chars as input seems more than enough
12896 test $lt_ac_count -gt 10 && break
12897 lt_ac_count=`expr $lt_ac_count + 1`
12898 if test $lt_ac_count -gt $lt_ac_max; then
12899 lt_ac_max=$lt_ac_count
12900 lt_cv_path_SED=$lt_ac_sed
12901 fi
12902 done
12903done
12904
12905fi
12906
12907SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012908{ echo "$as_me:$LINENO: result: $SED" >&5
12909echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910
12911
Reid Spencera773bd52006-08-04 18:18:08 +000012912# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012913if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012915else
12916 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012917fi
12918
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919ac_prog=ld
12920if test "$GCC" = yes; then
12921 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012922 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12923echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012924 case $host in
12925 *-*-mingw*)
12926 # gcc leaves a trailing carriage return which upsets mingw
12927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12928 *)
12929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12930 esac
12931 case $ac_prog in
12932 # Accept absolute paths.
12933 [\\/]* | ?:[\\/]*)
12934 re_direlt='/[^/][^/]*/\.\./'
12935 # Canonicalize the pathname of ld
12936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12939 done
12940 test -z "$LD" && LD="$ac_prog"
12941 ;;
12942 "")
12943 # If it fails, then pretend we aren't using GCC.
12944 ac_prog=ld
12945 ;;
12946 *)
12947 # If it is relative, then search for the first ld in PATH.
12948 with_gnu_ld=unknown
12949 ;;
12950 esac
12951elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012952 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12953echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012954else
Reid Spencera773bd52006-08-04 18:18:08 +000012955 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12956echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012957fi
12958if test "${lt_cv_path_LD+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 if test -z "$LD"; then
12962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12963 for ac_dir in $PATH; do
12964 IFS="$lt_save_ifs"
12965 test -z "$ac_dir" && ac_dir=.
12966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12967 lt_cv_path_LD="$ac_dir/$ac_prog"
12968 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012969 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012970 # Break only if it was the GNU/non-GNU ld that we prefer.
12971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12972 *GNU* | *'with BFD'*)
12973 test "$with_gnu_ld" != no && break
12974 ;;
12975 *)
12976 test "$with_gnu_ld" != yes && break
12977 ;;
12978 esac
12979 fi
12980 done
12981 IFS="$lt_save_ifs"
12982else
12983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12984fi
12985fi
12986
12987LD="$lt_cv_path_LD"
12988if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012989 { echo "$as_me:$LINENO: result: $LD" >&5
12990echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012991else
Reid Spencera773bd52006-08-04 18:18:08 +000012992 { echo "$as_me:$LINENO: result: no" >&5
12993echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012994fi
12995test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12996echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12997 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012998{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12999echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013000if test "${lt_cv_prog_gnu_ld+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
Reid Spencera773bd52006-08-04 18:18:08 +000013003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013004case `$LD -v 2>&1 </dev/null` in
13005*GNU* | *'with BFD'*)
13006 lt_cv_prog_gnu_ld=yes
13007 ;;
13008*)
13009 lt_cv_prog_gnu_ld=no
13010 ;;
13011esac
13012fi
Reid Spencera773bd52006-08-04 18:18:08 +000013013{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13014echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013015with_gnu_ld=$lt_cv_prog_gnu_ld
13016
13017
Reid Spencera773bd52006-08-04 18:18:08 +000013018{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13019echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013020if test "${lt_cv_ld_reload_flag+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022else
13023 lt_cv_ld_reload_flag='-r'
13024fi
Reid Spencera773bd52006-08-04 18:18:08 +000013025{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13026echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013027reload_flag=$lt_cv_ld_reload_flag
13028case $reload_flag in
13029"" | " "*) ;;
13030*) reload_flag=" $reload_flag" ;;
13031esac
13032reload_cmds='$LD$reload_flag -o $output$reload_objs'
13033case $host_os in
13034 darwin*)
13035 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000013036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013037 else
13038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13039 fi
13040 ;;
13041esac
13042
Reid Spencera773bd52006-08-04 18:18:08 +000013043{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13044echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045if test "${lt_cv_deplibs_check_method+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048 lt_cv_file_magic_cmd='$MAGIC_CMD'
13049lt_cv_file_magic_test_file=
13050lt_cv_deplibs_check_method='unknown'
13051# Need to set the preceding variable on all platforms that support
13052# interlibrary dependencies.
13053# 'none' -- dependencies not supported.
13054# `unknown' -- same as none, but documents that we really don't know.
13055# 'pass_all' -- all dependencies passed with no checks.
13056# 'test_compile' -- check by making test program.
13057# 'file_magic [[regex]]' -- check by looking for files in library path
13058# which responds to the $file_magic_cmd with a given extended regex.
13059# If you have `file' or equivalent on your system and you're not sure
13060# whether `pass_all' will *always* work, you probably want this one.
13061
13062case $host_os in
13063aix4* | aix5*)
13064 lt_cv_deplibs_check_method=pass_all
13065 ;;
13066
13067beos*)
13068 lt_cv_deplibs_check_method=pass_all
13069 ;;
13070
13071bsdi[45]*)
13072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13073 lt_cv_file_magic_cmd='/usr/bin/file -L'
13074 lt_cv_file_magic_test_file=/shlib/libc.so
13075 ;;
13076
13077cygwin*)
13078 # func_win32_libid is a shell function defined in ltmain.sh
13079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13080 lt_cv_file_magic_cmd='func_win32_libid'
13081 ;;
13082
13083mingw* | pw32*)
13084 # Base MSYS/MinGW do not provide the 'file' command needed by
13085 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13086 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13087 lt_cv_file_magic_cmd='$OBJDUMP -f'
13088 ;;
13089
13090darwin* | rhapsody*)
13091 lt_cv_deplibs_check_method=pass_all
13092 ;;
13093
Reid Spencera773bd52006-08-04 18:18:08 +000013094freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013095 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13096 case $host_cpu in
13097 i*86 )
13098 # Not sure whether the presence of OpenBSD here was a mistake.
13099 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000013100 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 +000013101 lt_cv_file_magic_cmd=/usr/bin/file
13102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13103 ;;
13104 esac
13105 else
13106 lt_cv_deplibs_check_method=pass_all
13107 fi
13108 ;;
13109
13110gnu*)
13111 lt_cv_deplibs_check_method=pass_all
13112 ;;
13113
13114hpux10.20* | hpux11*)
13115 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013116 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013117 ia64*)
13118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13120 ;;
13121 hppa*64*)
13122 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]'
13123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13124 ;;
13125 *)
13126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13128 ;;
13129 esac
13130 ;;
13131
Reid Spencera773bd52006-08-04 18:18:08 +000013132interix3*)
13133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13135 ;;
13136
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013137irix5* | irix6* | nonstopux*)
13138 case $LD in
13139 *-32|*"-32 ") libmagic=32-bit;;
13140 *-n32|*"-n32 ") libmagic=N32;;
13141 *-64|*"-64 ") libmagic=64-bit;;
13142 *) libmagic=never-match;;
13143 esac
13144 lt_cv_deplibs_check_method=pass_all
13145 ;;
13146
13147# This must be Linux ELF.
13148linux*)
13149 lt_cv_deplibs_check_method=pass_all
13150 ;;
13151
13152netbsd*)
13153 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13155 else
13156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13157 fi
13158 ;;
13159
13160newos6*)
13161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13162 lt_cv_file_magic_cmd=/usr/bin/file
13163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13164 ;;
13165
13166nto-qnx*)
13167 lt_cv_deplibs_check_method=unknown
13168 ;;
13169
13170openbsd*)
13171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13173 else
13174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13175 fi
13176 ;;
13177
13178osf3* | osf4* | osf5*)
13179 lt_cv_deplibs_check_method=pass_all
13180 ;;
13181
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013182solaris*)
13183 lt_cv_deplibs_check_method=pass_all
13184 ;;
13185
Reid Spencera773bd52006-08-04 18:18:08 +000013186sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013187 case $host_vendor in
13188 motorola)
13189 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]'
13190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13191 ;;
13192 ncr)
13193 lt_cv_deplibs_check_method=pass_all
13194 ;;
13195 sequent)
13196 lt_cv_file_magic_cmd='/bin/file'
13197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13198 ;;
13199 sni)
13200 lt_cv_file_magic_cmd='/bin/file'
13201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13202 lt_cv_file_magic_test_file=/lib/libc.so
13203 ;;
13204 siemens)
13205 lt_cv_deplibs_check_method=pass_all
13206 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013207 pc)
13208 lt_cv_deplibs_check_method=pass_all
13209 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013210 esac
13211 ;;
13212
Reid Spencera773bd52006-08-04 18:18:08 +000013213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013214 lt_cv_deplibs_check_method=pass_all
13215 ;;
13216esac
13217
13218fi
Reid Spencera773bd52006-08-04 18:18:08 +000013219{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13220echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013221file_magic_cmd=$lt_cv_file_magic_cmd
13222deplibs_check_method=$lt_cv_deplibs_check_method
13223test -z "$deplibs_check_method" && deplibs_check_method=unknown
13224
13225
13226
13227# If no C compiler was specified, use CC.
13228LTCC=${LTCC-"$CC"}
13229
Reid Spencera773bd52006-08-04 18:18:08 +000013230# If no C compiler flags were specified, use CFLAGS.
13231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13232
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013233# Allow CC to be a program name with arguments.
13234compiler=$CC
13235
Reid Spencera773bd52006-08-04 18:18:08 +000013236# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013237if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013238 enableval=$enable_libtool_lock;
13239fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013240
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013241test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13242
13243# Some flags need to be propagated to the compiler or linker for good
13244# libtool support.
13245case $host in
13246ia64-*-hpux*)
13247 # Find out which ABI we are using.
13248 echo 'int i;' > conftest.$ac_ext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; then
13254 case `/usr/bin/file conftest.$ac_objext` in
13255 *ELF-32*)
13256 HPUX_IA64_MODE="32"
13257 ;;
13258 *ELF-64*)
13259 HPUX_IA64_MODE="64"
13260 ;;
13261 esac
13262 fi
13263 rm -rf conftest*
13264 ;;
13265*-*-irix6*)
13266 # Find out which ABI we are using.
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000013267 echo '#line 13267 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; then
13273 if test "$lt_cv_prog_gnu_ld" = yes; then
13274 case `/usr/bin/file conftest.$ac_objext` in
13275 *32-bit*)
13276 LD="${LD-ld} -melf32bsmip"
13277 ;;
13278 *N32*)
13279 LD="${LD-ld} -melf32bmipn32"
13280 ;;
13281 *64-bit*)
13282 LD="${LD-ld} -melf64bmip"
13283 ;;
13284 esac
13285 else
13286 case `/usr/bin/file conftest.$ac_objext` in
13287 *32-bit*)
13288 LD="${LD-ld} -32"
13289 ;;
13290 *N32*)
13291 LD="${LD-ld} -n32"
13292 ;;
13293 *64-bit*)
13294 LD="${LD-ld} -64"
13295 ;;
13296 esac
13297 fi
13298 fi
13299 rm -rf conftest*
13300 ;;
13301
13302x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13303 # Find out which ABI we are using.
13304 echo 'int i;' > conftest.$ac_ext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013310 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013311 *32-bit*)
13312 case $host in
13313 x86_64-*linux*)
13314 LD="${LD-ld} -m elf_i386"
13315 ;;
13316 ppc64-*linux*|powerpc64-*linux*)
13317 LD="${LD-ld} -m elf32ppclinux"
13318 ;;
13319 s390x-*linux*)
13320 LD="${LD-ld} -m elf_s390"
13321 ;;
13322 sparc64-*linux*)
13323 LD="${LD-ld} -m elf32_sparc"
13324 ;;
13325 esac
13326 ;;
13327 *64-bit*)
13328 case $host in
13329 x86_64-*linux*)
13330 LD="${LD-ld} -m elf_x86_64"
13331 ;;
13332 ppc*-*linux*|powerpc*-*linux*)
13333 LD="${LD-ld} -m elf64ppc"
13334 ;;
13335 s390*-*linux*)
13336 LD="${LD-ld} -m elf64_s390"
13337 ;;
13338 sparc*-*linux*)
13339 LD="${LD-ld} -m elf64_sparc"
13340 ;;
13341 esac
13342 ;;
13343 esac
13344 fi
13345 rm -rf conftest*
13346 ;;
13347
13348*-*-sco3.2v5*)
13349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13350 SAVE_CFLAGS="$CFLAGS"
13351 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013352 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13353echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013354if test "${lt_cv_cc_needs_belf+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357 ac_ext=c
13358ac_cpp='$CPP $CPPFLAGS'
13359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361ac_compiler_gnu=$ac_cv_c_compiler_gnu
13362
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369
Reid Spencera773bd52006-08-04 18:18:08 +000013370int
13371main ()
13372{
13373
13374 ;
13375 return 0;
13376}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013377_ACEOF
13378rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013379if { (ac_try="$ac_link"
13380case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013412 lt_cv_cc_needs_belf=yes
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
Reid Spencera773bd52006-08-04 18:18:08 +000013417 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013418fi
Reid Spencera773bd52006-08-04 18:18:08 +000013419
Bill Wendlingebcceee2009-04-18 11:20:33 +000013420rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013421 conftest$ac_exeext conftest.$ac_ext
13422 ac_ext=c
13423ac_cpp='$CPP $CPPFLAGS'
13424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_c_compiler_gnu
13427
13428fi
Reid Spencera773bd52006-08-04 18:18:08 +000013429{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13430echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433 CFLAGS="$SAVE_CFLAGS"
13434 fi
13435 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013436sparc*-*solaris*)
13437 # Find out which ABI we are using.
13438 echo 'int i;' > conftest.$ac_ext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; then
13444 case `/usr/bin/file conftest.o` in
13445 *64-bit*)
13446 case $lt_cv_prog_gnu_ld in
13447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13448 *) LD="${LD-ld} -64" ;;
13449 esac
13450 ;;
13451 esac
13452 fi
13453 rm -rf conftest*
13454 ;;
13455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013456
13457esac
13458
13459need_locks="$enable_libtool_lock"
13460
13461
Reid Spencer2706f8c2004-09-19 23:53:36 +000013462
13463
13464if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13465 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13466 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013467 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013468ac_cpp='$CXXCPP $CPPFLAGS'
13469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013472{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13473echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013474if test -z "$CXXCPP"; then
13475 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
John Criswell47fdd832003-07-14 16:52:07 +000013478 # Double quotes because CXXCPP needs to be expanded
13479 for CXXCPP in "$CXX -E" "/lib/cpp"
13480 do
13481 ac_preproc_ok=false
13482for ac_cxx_preproc_warn_flag in '' yes
13483do
13484 # Use a header file that comes with gcc, so configuring glibc
13485 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013488 # On the NeXT, cc -E runs the code through the compiler's parser,
13489 # not just through cpp. "Syntax error" is here to catch this case.
13490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
13496#ifdef __STDC__
13497# include <limits.h>
13498#else
13499# include <assert.h>
13500#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013501 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013502_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013503if { (ac_try="$ac_cpp conftest.$ac_ext"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013510 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013511 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_cxx_preproc_warn_flag
13518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13519 else
13520 ac_cpp_err=
13521 fi
13522else
13523 ac_cpp_err=yes
13524fi
13525if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013526 :
13527else
13528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013529sed 's/^/| /' conftest.$ac_ext >&5
13530
John Criswell47fdd832003-07-14 16:52:07 +000013531 # Broken: fails on valid input.
13532continue
13533fi
Reid Spencera773bd52006-08-04 18:18:08 +000013534
John Criswell47fdd832003-07-14 16:52:07 +000013535rm -f conftest.err conftest.$ac_ext
13536
Reid Spencera773bd52006-08-04 18:18:08 +000013537 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013538 # can be detected and how.
13539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013545#include <ac_nonexistent.h>
13546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013547if { (ac_try="$ac_cpp conftest.$ac_ext"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013554 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013555 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_cxx_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13563 else
13564 ac_cpp_err=
13565 fi
13566else
13567 ac_cpp_err=yes
13568fi
13569if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013570 # Broken: success on invalid input.
13571continue
13572else
13573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013574sed 's/^/| /' conftest.$ac_ext >&5
13575
John Criswell47fdd832003-07-14 16:52:07 +000013576 # Passes both tests.
13577ac_preproc_ok=:
13578break
13579fi
Reid Spencera773bd52006-08-04 18:18:08 +000013580
John Criswell47fdd832003-07-14 16:52:07 +000013581rm -f conftest.err conftest.$ac_ext
13582
13583done
13584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585rm -f conftest.err conftest.$ac_ext
13586if $ac_preproc_ok; then
13587 break
John Criswell7a73b802003-06-30 21:59:07 +000013588fi
13589
John Criswell47fdd832003-07-14 16:52:07 +000013590 done
13591 ac_cv_prog_CXXCPP=$CXXCPP
13592
13593fi
13594 CXXCPP=$ac_cv_prog_CXXCPP
13595else
13596 ac_cv_prog_CXXCPP=$CXXCPP
13597fi
Reid Spencera773bd52006-08-04 18:18:08 +000013598{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13599echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013600ac_preproc_ok=false
13601for ac_cxx_preproc_warn_flag in '' yes
13602do
13603 # Use a header file that comes with gcc, so configuring glibc
13604 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013607 # On the NeXT, cc -E runs the code through the compiler's parser,
13608 # not just through cpp. "Syntax error" is here to catch this case.
13609 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
13615#ifdef __STDC__
13616# include <limits.h>
13617#else
13618# include <assert.h>
13619#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013620 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013621_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013622if { (ac_try="$ac_cpp conftest.$ac_ext"
13623case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013629 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013630 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013634 (exit $ac_status); } >/dev/null; then
13635 if test -s conftest.err; then
13636 ac_cpp_err=$ac_cxx_preproc_warn_flag
13637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13638 else
13639 ac_cpp_err=
13640 fi
13641else
13642 ac_cpp_err=yes
13643fi
13644if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013645 :
13646else
13647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013648sed 's/^/| /' conftest.$ac_ext >&5
13649
John Criswell47fdd832003-07-14 16:52:07 +000013650 # Broken: fails on valid input.
13651continue
13652fi
Reid Spencera773bd52006-08-04 18:18:08 +000013653
John Criswell47fdd832003-07-14 16:52:07 +000013654rm -f conftest.err conftest.$ac_ext
13655
Reid Spencera773bd52006-08-04 18:18:08 +000013656 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013657 # can be detected and how.
13658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013664#include <ac_nonexistent.h>
13665_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013666if { (ac_try="$ac_cpp conftest.$ac_ext"
13667case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670esac
13671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013673 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013674 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013678 (exit $ac_status); } >/dev/null; then
13679 if test -s conftest.err; then
13680 ac_cpp_err=$ac_cxx_preproc_warn_flag
13681 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13682 else
13683 ac_cpp_err=
13684 fi
13685else
13686 ac_cpp_err=yes
13687fi
13688if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013689 # Broken: success on invalid input.
13690continue
13691else
13692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013693sed 's/^/| /' conftest.$ac_ext >&5
13694
John Criswell47fdd832003-07-14 16:52:07 +000013695 # Passes both tests.
13696ac_preproc_ok=:
13697break
13698fi
Reid Spencera773bd52006-08-04 18:18:08 +000013699
John Criswell47fdd832003-07-14 16:52:07 +000013700rm -f conftest.err conftest.$ac_ext
13701
13702done
13703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13704rm -f conftest.err conftest.$ac_ext
13705if $ac_preproc_ok; then
13706 :
13707else
John Criswell0c38eaf2003-09-10 15:17:25 +000013708 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13709See \`config.log' for more details." >&5
13710echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13711See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013712 { (exit 1); exit 1; }; }
13713fi
13714
Reid Spencera773bd52006-08-04 18:18:08 +000013715ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013716ac_cpp='$CXXCPP $CPPFLAGS'
13717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721fi
13722
John Criswell47fdd832003-07-14 16:52:07 +000013723
13724ac_ext=f
13725ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13726ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13728if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013729 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 +000013730 do
13731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013735if test "${ac_cv_prog_F77+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738 if test -n "$F77"; then
13739 ac_cv_prog_F77="$F77" # Let the user override the test.
13740else
13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013747 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 +000013748 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13751 fi
13752done
13753done
Reid Spencera773bd52006-08-04 18:18:08 +000013754IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013755
13756fi
13757fi
13758F77=$ac_cv_prog_F77
13759if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013760 { echo "$as_me:$LINENO: result: $F77" >&5
13761echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013762else
Reid Spencera773bd52006-08-04 18:18:08 +000013763 { echo "$as_me:$LINENO: result: no" >&5
13764echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013765fi
13766
Reid Spencera773bd52006-08-04 18:18:08 +000013767
John Criswell47fdd832003-07-14 16:52:07 +000013768 test -n "$F77" && break
13769 done
13770fi
13771if test -z "$F77"; then
13772 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013773 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 +000013774do
13775 # Extract the first word of "$ac_prog", so it can be a program name with args.
13776set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013779if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782 if test -n "$ac_ct_F77"; then
13783 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13784else
13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786for as_dir in $PATH
13787do
13788 IFS=$as_save_IFS
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013791 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 +000013792 ac_cv_prog_ac_ct_F77="$ac_prog"
13793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 break 2
13795 fi
13796done
13797done
Reid Spencera773bd52006-08-04 18:18:08 +000013798IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013799
13800fi
13801fi
13802ac_ct_F77=$ac_cv_prog_ac_ct_F77
13803if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013804 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13805echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013806else
Reid Spencera773bd52006-08-04 18:18:08 +000013807 { echo "$as_me:$LINENO: result: no" >&5
13808echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013809fi
13810
Reid Spencera773bd52006-08-04 18:18:08 +000013811
John Criswell47fdd832003-07-14 16:52:07 +000013812 test -n "$ac_ct_F77" && break
13813done
13814
Reid Spencera773bd52006-08-04 18:18:08 +000013815 if test "x$ac_ct_F77" = x; then
13816 F77=""
13817 else
13818 case $cross_compiling:$ac_tool_warned in
13819yes:)
13820{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821whose name does not start with the host triplet. If you think this
13822configuration is useful to you, please write to autoconf@gnu.org." >&5
13823echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824whose name does not start with the host triplet. If you think this
13825configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826ac_tool_warned=yes ;;
13827esac
13828 F77=$ac_ct_F77
13829 fi
John Criswell47fdd832003-07-14 16:52:07 +000013830fi
13831
13832
13833# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013834echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013835ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013836{ (ac_try="$ac_compiler --version >&5"
13837case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013846{ (ac_try="$ac_compiler -v >&5"
13847case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013856{ (ac_try="$ac_compiler -V >&5"
13857case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860esac
13861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013867
13868# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013869# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013870ac_save_ext=$ac_ext
13871ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013872{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13873echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013874if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878 program main
13879#ifndef __GNUC__
13880 choke me
13881#endif
13882
13883 end
13884_ACEOF
13885rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013886if { (ac_try="$ac_compile"
13887case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903esac
13904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913esac
13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013919 ac_compiler_gnu=yes
13920else
13921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013922sed 's/^/| /' conftest.$ac_ext >&5
13923
Reid Spencera773bd52006-08-04 18:18:08 +000013924 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013925fi
Reid Spencera773bd52006-08-04 18:18:08 +000013926
13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013928ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13929
13930fi
Reid Spencera773bd52006-08-04 18:18:08 +000013931{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13932echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013933ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013934ac_test_FFLAGS=${FFLAGS+set}
13935ac_save_FFLAGS=$FFLAGS
13936FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013937{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13938echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013939if test "${ac_cv_prog_f77_g+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942 FFLAGS=-g
13943cat >conftest.$ac_ext <<_ACEOF
13944 program main
13945
13946 end
13947_ACEOF
13948rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013949if { (ac_try="$ac_compile"
13950case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013982 ac_cv_prog_f77_g=yes
13983else
13984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013985sed 's/^/| /' conftest.$ac_ext >&5
13986
Reid Spencera773bd52006-08-04 18:18:08 +000013987 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013988fi
Reid Spencera773bd52006-08-04 18:18:08 +000013989
13990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013991
13992fi
Reid Spencera773bd52006-08-04 18:18:08 +000013993{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13994echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013995if test "$ac_test_FFLAGS" = set; then
13996 FFLAGS=$ac_save_FFLAGS
13997elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013998 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013999 FFLAGS="-g -O2"
14000 else
14001 FFLAGS="-g"
14002 fi
14003else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014004 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000014005 FFLAGS="-O2"
14006 else
14007 FFLAGS=
14008 fi
14009fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014010
14011G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000014012ac_ext=c
14013ac_cpp='$CPP $CPPFLAGS'
14014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018
14019
14020# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14021
14022# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000014023{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14024echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014025if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027else
14028 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000014029 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000014030
14031 case $build_os in
14032 msdosdjgpp*)
14033 # On DJGPP, this test can blow up pretty badly due to problems in libc
14034 # (any single argument exceeding 2000 bytes causes a buffer overrun
14035 # during glob expansion). Even if it were fixed, the result of this
14036 # check would be larger than it should be.
14037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14038 ;;
14039
14040 gnu*)
14041 # Under GNU Hurd, this test is not required because there is
14042 # no limit to the length of command line arguments.
14043 # Libtool will interpret -1 as no limit whatsoever
14044 lt_cv_sys_max_cmd_len=-1;
14045 ;;
14046
14047 cygwin* | mingw*)
14048 # On Win9x/ME, this test blows up -- it succeeds, but takes
14049 # about 5 minutes as the teststring grows exponentially.
14050 # Worse, since 9x/ME are not pre-emptively multitasking,
14051 # you end up with a "frozen" computer, even though with patience
14052 # the test eventually succeeds (with a max line length of 256k).
14053 # Instead, let's just punt: use the minimum linelength reported by
14054 # all of the supported platforms: 8192 (on NT/2K/XP).
14055 lt_cv_sys_max_cmd_len=8192;
14056 ;;
14057
Reid Spencer2706f8c2004-09-19 23:53:36 +000014058 amigaos*)
14059 # On AmigaOS with pdksh, this test takes hours, literally.
14060 # So we just punt and use a minimum line length of 8192.
14061 lt_cv_sys_max_cmd_len=8192;
14062 ;;
14063
Reid Spencera773bd52006-08-04 18:18:08 +000014064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014065 # This has been around since 386BSD, at least. Likely further.
14066 if test -x /sbin/sysctl; then
14067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14068 elif test -x /usr/sbin/sysctl; then
14069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14070 else
Reid Spencera773bd52006-08-04 18:18:08 +000014071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000014072 fi
14073 # And add a safety zone
14074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000014075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014076 ;;
14077
Reid Spencera773bd52006-08-04 18:18:08 +000014078 interix*)
14079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14080 lt_cv_sys_max_cmd_len=196608
14081 ;;
14082
14083 osf*)
14084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14086 # nice to cause kernel panics so lets avoid the loop below.
14087 # First set a reasonable default.
14088 lt_cv_sys_max_cmd_len=16384
14089 #
14090 if test -x /sbin/sysconfig; then
14091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14093 esac
14094 fi
14095 ;;
14096 sco3.2v5*)
14097 lt_cv_sys_max_cmd_len=102400
14098 ;;
14099 sysv5* | sco5v6* | sysv4.2uw2*)
14100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14101 if test -n "$kargmax"; then
14102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14103 else
14104 lt_cv_sys_max_cmd_len=32768
14105 fi
14106 ;;
14107 *)
John Criswell47fdd832003-07-14 16:52:07 +000014108 # If test is not a shell built-in, we'll probably end up computing a
14109 # maximum length that is only half of the actual maximum length, but
14110 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14112 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14113 = "XX$teststring") >/dev/null 2>&1 &&
14114 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014115 lt_cv_sys_max_cmd_len=$new_result &&
14116 test $i != 17 # 1/2 MB should be enough
14117 do
14118 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014119 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014120 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014121 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014122 # Add a significant safety factor because C++ compilers can tack on massive
14123 # amounts of additional arguments before passing them to the linker.
14124 # It appears as though 1/2 is a usable value.
14125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14126 ;;
14127 esac
14128
14129fi
14130
14131if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014132 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14133echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014134else
Reid Spencera773bd52006-08-04 18:18:08 +000014135 { echo "$as_me:$LINENO: result: none" >&5
14136echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014137fi
14138
14139
14140
14141
14142# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014143{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14144echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014145if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148
14149# These are sane defaults that work on at least a few old systems.
14150# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14151
14152# Character class describing NM global symbol codes.
14153symcode='[BCDEGRST]'
14154
14155# Regexp to match symbols that can be accessed directly from C.
14156sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14157
John Criswell47fdd832003-07-14 16:52:07 +000014158# Transform an extracted symbol line into a proper C declaration
14159lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14160
14161# Transform an extracted symbol line into symbol name and symbol address
14162lt_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'"
14163
14164# Define system-specific variables.
14165case $host_os in
14166aix*)
14167 symcode='[BCDT]'
14168 ;;
14169cygwin* | mingw* | pw32*)
14170 symcode='[ABCDGISTW]'
14171 ;;
14172hpux*) # Its linker distinguishes data from code symbols
14173 if test "$host_cpu" = ia64; then
14174 symcode='[ABCDEGRST]'
14175 fi
14176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177 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'"
14178 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014179linux*)
14180 if test "$host_cpu" = ia64; then
14181 symcode='[ABCDGIRSTW]'
14182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14183 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'"
14184 fi
14185 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014186irix* | nonstopux*)
14187 symcode='[BCDEGRST]'
14188 ;;
14189osf*)
14190 symcode='[BCDEGQRST]'
14191 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014192solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014193 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014194 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014195sco3.2v5*)
14196 symcode='[DT]'
14197 ;;
14198sysv4.2uw2*)
14199 symcode='[DT]'
14200 ;;
14201sysv5* | sco5v6* | unixware* | OpenUNIX*)
14202 symcode='[ABDT]'
14203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014204sysv4)
14205 symcode='[DFNSTU]'
14206 ;;
14207esac
14208
14209# Handle CRLF in mingw tool chain
14210opt_cr=
14211case $build_os in
14212mingw*)
14213 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14214 ;;
14215esac
14216
14217# If we're using GNU nm, then use its standard symbol codes.
14218case `$NM -V 2>&1` in
14219*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014220 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014221esac
14222
14223# Try without a prefix undercore, then with it.
14224for ac_symprfx in "" "_"; do
14225
Reid Spencera773bd52006-08-04 18:18:08 +000014226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14227 symxfrm="\\1 $ac_symprfx\\2 \\2"
14228
John Criswell47fdd832003-07-14 16:52:07 +000014229 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014230 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 +000014231
14232 # Check to see that the pipe works correctly.
14233 pipe_works=no
14234
14235 rm -f conftest*
14236 cat > conftest.$ac_ext <<EOF
14237#ifdef __cplusplus
14238extern "C" {
14239#endif
14240char nm_test_var;
14241void nm_test_func(){}
14242#ifdef __cplusplus
14243}
14244#endif
14245int main(){nm_test_var='a';nm_test_func();return(0);}
14246EOF
14247
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; then
14253 # Now try to grab the symbols.
14254 nlist=conftest.nm
14255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && test -s "$nlist"; then
14260 # Try sorting and uniquifying the output.
14261 if sort "$nlist" | uniq > "$nlist"T; then
14262 mv -f "$nlist"T "$nlist"
14263 else
14264 rm -f "$nlist"T
14265 fi
14266
14267 # Make sure that we snagged all the symbols we need.
14268 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14269 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14270 cat <<EOF > conftest.$ac_ext
14271#ifdef __cplusplus
14272extern "C" {
14273#endif
14274
14275EOF
14276 # Now generate the symbol file.
14277 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14278
14279 cat <<EOF >> conftest.$ac_ext
14280#if defined (__STDC__) && __STDC__
14281# define lt_ptr_t void *
14282#else
14283# define lt_ptr_t char *
14284# define const
14285#endif
14286
14287/* The mapping between symbol names and symbols. */
14288const struct {
14289 const char *name;
14290 lt_ptr_t address;
14291}
14292lt_preloaded_symbols[] =
14293{
14294EOF
14295 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14296 cat <<\EOF >> conftest.$ac_ext
14297 {0, (lt_ptr_t) 0}
14298};
14299
14300#ifdef __cplusplus
14301}
14302#endif
14303EOF
14304 # Now try linking the two files.
14305 mv conftest.$ac_objext conftstm.$ac_objext
14306 lt_save_LIBS="$LIBS"
14307 lt_save_CFLAGS="$CFLAGS"
14308 LIBS="conftstm.$ac_objext"
14309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14315 pipe_works=yes
14316 fi
14317 LIBS="$lt_save_LIBS"
14318 CFLAGS="$lt_save_CFLAGS"
14319 else
14320 echo "cannot find nm_test_func in $nlist" >&5
14321 fi
14322 else
14323 echo "cannot find nm_test_var in $nlist" >&5
14324 fi
14325 else
14326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14327 fi
14328 else
14329 echo "$progname: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14331 fi
14332 rm -f conftest* conftst*
14333
14334 # Do not use the global_symbol_pipe unless it works.
14335 if test "$pipe_works" = yes; then
14336 break
14337 else
14338 lt_cv_sys_global_symbol_pipe=
14339 fi
14340done
14341
14342fi
14343
14344if test -z "$lt_cv_sys_global_symbol_pipe"; then
14345 lt_cv_sys_global_symbol_to_cdecl=
14346fi
14347if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014348 { echo "$as_me:$LINENO: result: failed" >&5
14349echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014350else
Reid Spencera773bd52006-08-04 18:18:08 +000014351 { echo "$as_me:$LINENO: result: ok" >&5
14352echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014353fi
14354
Reid Spencera773bd52006-08-04 18:18:08 +000014355{ echo "$as_me:$LINENO: checking for objdir" >&5
14356echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014357if test "${lt_cv_objdir+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
14360 rm -f .libs 2>/dev/null
14361mkdir .libs 2>/dev/null
14362if test -d .libs; then
14363 lt_cv_objdir=.libs
14364else
14365 # MS-DOS does not allow filenames that begin with a dot.
14366 lt_cv_objdir=_libs
14367fi
14368rmdir .libs 2>/dev/null
14369fi
Reid Spencera773bd52006-08-04 18:18:08 +000014370{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14371echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014372objdir=$lt_cv_objdir
14373
14374
14375
14376
14377
14378case $host_os in
14379aix3*)
14380 # AIX sometimes has problems with the GCC collect2 program. For some
14381 # reason, if we set the COLLECT_NAMES environment variable, the problems
14382 # vanish in a puff of smoke.
14383 if test "X${COLLECT_NAMES+set}" != Xset; then
14384 COLLECT_NAMES=
14385 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014386 fi
14387 ;;
14388esac
14389
John Criswell47fdd832003-07-14 16:52:07 +000014390# Sed substitution that helps us do robust quoting. It backslashifies
14391# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014392Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014393sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14394
14395# Same as above, but do not quote variable references.
14396double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14397
14398# Sed substitution to delay expansion of an escaped shell variable in a
14399# double_quote_subst'ed string.
14400delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14401
14402# Sed substitution to avoid accidental globbing in evaled expressions
14403no_glob_subst='s/\*/\\\*/g'
14404
14405# Constants:
14406rm="rm -f"
14407
14408# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014409default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014410can_build_shared=yes
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014413# which needs '.lib').
14414libext=a
14415ltmain="$ac_aux_dir/ltmain.sh"
14416ofile="$default_ofile"
14417with_gnu_ld="$lt_cv_prog_gnu_ld"
14418
14419if test -n "$ac_tool_prefix"; then
14420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14421set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014424if test "${ac_cv_prog_AR+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 if test -n "$AR"; then
14428 ac_cv_prog_AR="$AR" # Let the user override the test.
14429else
14430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431for as_dir in $PATH
14432do
14433 IFS=$as_save_IFS
14434 test -z "$as_dir" && as_dir=.
14435 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014436 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 +000014437 ac_cv_prog_AR="${ac_tool_prefix}ar"
14438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 break 2
14440 fi
14441done
14442done
Reid Spencera773bd52006-08-04 18:18:08 +000014443IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014444
14445fi
14446fi
14447AR=$ac_cv_prog_AR
14448if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014449 { echo "$as_me:$LINENO: result: $AR" >&5
14450echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014451else
Reid Spencera773bd52006-08-04 18:18:08 +000014452 { echo "$as_me:$LINENO: result: no" >&5
14453echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014454fi
14455
Reid Spencera773bd52006-08-04 18:18:08 +000014456
John Criswell47fdd832003-07-14 16:52:07 +000014457fi
14458if test -z "$ac_cv_prog_AR"; then
14459 ac_ct_AR=$AR
14460 # Extract the first word of "ar", so it can be a program name with args.
14461set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014464if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466else
14467 if test -n "$ac_ct_AR"; then
14468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14469else
14470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471for as_dir in $PATH
14472do
14473 IFS=$as_save_IFS
14474 test -z "$as_dir" && as_dir=.
14475 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014476 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 +000014477 ac_cv_prog_ac_ct_AR="ar"
14478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14479 break 2
14480 fi
14481done
14482done
Reid Spencera773bd52006-08-04 18:18:08 +000014483IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014484
John Criswell47fdd832003-07-14 16:52:07 +000014485fi
14486fi
14487ac_ct_AR=$ac_cv_prog_ac_ct_AR
14488if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014489 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14490echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014491else
Reid Spencera773bd52006-08-04 18:18:08 +000014492 { echo "$as_me:$LINENO: result: no" >&5
14493echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014494fi
14495
Reid Spencera773bd52006-08-04 18:18:08 +000014496 if test "x$ac_ct_AR" = x; then
14497 AR="false"
14498 else
14499 case $cross_compiling:$ac_tool_warned in
14500yes:)
14501{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14502whose name does not start with the host triplet. If you think this
14503configuration is useful to you, please write to autoconf@gnu.org." >&5
14504echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14505whose name does not start with the host triplet. If you think this
14506configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14507ac_tool_warned=yes ;;
14508esac
14509 AR=$ac_ct_AR
14510 fi
John Criswell47fdd832003-07-14 16:52:07 +000014511else
14512 AR="$ac_cv_prog_AR"
14513fi
14514
John Criswell7a73b802003-06-30 21:59:07 +000014515if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14517set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014520if test "${ac_cv_prog_RANLIB+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523 if test -n "$RANLIB"; then
14524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14525else
14526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527for as_dir in $PATH
14528do
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014532 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 +000014533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14536 fi
14537done
14538done
Reid Spencera773bd52006-08-04 18:18:08 +000014539IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014540
14541fi
14542fi
14543RANLIB=$ac_cv_prog_RANLIB
14544if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014545 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14546echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014547else
Reid Spencera773bd52006-08-04 18:18:08 +000014548 { echo "$as_me:$LINENO: result: no" >&5
14549echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014550fi
14551
Reid Spencera773bd52006-08-04 18:18:08 +000014552
John Criswell7a73b802003-06-30 21:59:07 +000014553fi
14554if test -z "$ac_cv_prog_RANLIB"; then
14555 ac_ct_RANLIB=$RANLIB
14556 # Extract the first word of "ranlib", so it can be a program name with args.
14557set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014560if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563 if test -n "$ac_ct_RANLIB"; then
14564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14565else
14566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567for as_dir in $PATH
14568do
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014572 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 +000014573 ac_cv_prog_ac_ct_RANLIB="ranlib"
14574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14576 fi
14577done
14578done
Reid Spencera773bd52006-08-04 18:18:08 +000014579IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014580
John Criswell7a73b802003-06-30 21:59:07 +000014581fi
14582fi
14583ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14584if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014585 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14586echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014587else
Reid Spencera773bd52006-08-04 18:18:08 +000014588 { echo "$as_me:$LINENO: result: no" >&5
14589echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014590fi
14591
Reid Spencera773bd52006-08-04 18:18:08 +000014592 if test "x$ac_ct_RANLIB" = x; then
14593 RANLIB=":"
14594 else
14595 case $cross_compiling:$ac_tool_warned in
14596yes:)
14597{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14598whose name does not start with the host triplet. If you think this
14599configuration is useful to you, please write to autoconf@gnu.org." >&5
14600echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14601whose name does not start with the host triplet. If you think this
14602configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14603ac_tool_warned=yes ;;
14604esac
14605 RANLIB=$ac_ct_RANLIB
14606 fi
John Criswell7a73b802003-06-30 21:59:07 +000014607else
14608 RANLIB="$ac_cv_prog_RANLIB"
14609fi
14610
14611if test -n "$ac_tool_prefix"; then
14612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14613set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014616if test "${ac_cv_prog_STRIP+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 if test -n "$STRIP"; then
14620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14621else
14622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623for as_dir in $PATH
14624do
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014628 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 +000014629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14632 fi
14633done
14634done
Reid Spencera773bd52006-08-04 18:18:08 +000014635IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014636
14637fi
14638fi
14639STRIP=$ac_cv_prog_STRIP
14640if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014641 { echo "$as_me:$LINENO: result: $STRIP" >&5
14642echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014643else
Reid Spencera773bd52006-08-04 18:18:08 +000014644 { echo "$as_me:$LINENO: result: no" >&5
14645echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014646fi
14647
Reid Spencera773bd52006-08-04 18:18:08 +000014648
John Criswell7a73b802003-06-30 21:59:07 +000014649fi
14650if test -z "$ac_cv_prog_STRIP"; then
14651 ac_ct_STRIP=$STRIP
14652 # Extract the first word of "strip", so it can be a program name with args.
14653set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659 if test -n "$ac_ct_STRIP"; then
14660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14661else
14662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663for as_dir in $PATH
14664do
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014668 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 +000014669 ac_cv_prog_ac_ct_STRIP="strip"
14670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671 break 2
14672 fi
14673done
14674done
Reid Spencera773bd52006-08-04 18:18:08 +000014675IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014676
John Criswell7a73b802003-06-30 21:59:07 +000014677fi
14678fi
14679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14680if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014681 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14682echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014683else
Reid Spencera773bd52006-08-04 18:18:08 +000014684 { echo "$as_me:$LINENO: result: no" >&5
14685echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014686fi
14687
Reid Spencera773bd52006-08-04 18:18:08 +000014688 if test "x$ac_ct_STRIP" = x; then
14689 STRIP=":"
14690 else
14691 case $cross_compiling:$ac_tool_warned in
14692yes:)
14693{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14694whose name does not start with the host triplet. If you think this
14695configuration is useful to you, please write to autoconf@gnu.org." >&5
14696echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14697whose name does not start with the host triplet. If you think this
14698configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14699ac_tool_warned=yes ;;
14700esac
14701 STRIP=$ac_ct_STRIP
14702 fi
John Criswell7a73b802003-06-30 21:59:07 +000014703else
14704 STRIP="$ac_cv_prog_STRIP"
14705fi
14706
14707
John Criswell7a73b802003-06-30 21:59:07 +000014708old_CC="$CC"
14709old_CFLAGS="$CFLAGS"
14710
14711# Set sane defaults for various variables
14712test -z "$AR" && AR=ar
14713test -z "$AR_FLAGS" && AR_FLAGS=cru
14714test -z "$AS" && AS=as
14715test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014716test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014717test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014718test -z "$DLLTOOL" && DLLTOOL=dlltool
14719test -z "$LD" && LD=ld
14720test -z "$LN_S" && LN_S="ln -s"
14721test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014723test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014724test -z "$OBJDUMP" && OBJDUMP=objdump
14725test -z "$RANLIB" && RANLIB=:
14726test -z "$STRIP" && STRIP=:
14727test -z "$ac_objext" && ac_objext=o
14728
John Criswell7a73b802003-06-30 21:59:07 +000014729# Determine commands to create old-style static archives.
14730old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14731old_postinstall_cmds='chmod 644 $oldlib'
14732old_postuninstall_cmds=
14733
14734if test -n "$RANLIB"; then
14735 case $host_os in
14736 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014738 ;;
14739 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014741 ;;
14742 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014743 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014744fi
14745
Reid Spencera773bd52006-08-04 18:18:08 +000014746for cc_temp in $compiler""; do
14747 case $cc_temp in
14748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14750 \-*) ;;
14751 *) break;;
14752 esac
14753done
14754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14755
Reid Spencer2706f8c2004-09-19 23:53:36 +000014756
John Criswell47fdd832003-07-14 16:52:07 +000014757# Only perform the check for file, if the check method requires it
14758case $deplibs_check_method in
14759file_magic*)
14760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014761 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14762echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014765else
John Criswell47fdd832003-07-14 16:52:07 +000014766 case $MAGIC_CMD in
14767[\\/*] | ?:[\\/]*)
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14769 ;;
14770*)
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14775 IFS="$lt_save_ifs"
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/${ac_tool_prefix}file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14781 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14786 :
14787 else
14788 cat <<EOF 1>&2
14789
14790*** Warning: the command libtool uses to detect shared libraries,
14791*** $file_magic_cmd, produces output that libtool cannot recognize.
14792*** The result is that libtool may fail to recognize shared libraries
14793*** as such. This will affect the creation of libtool libraries that
14794*** depend on shared libraries, but programs linked with such libtool
14795*** libraries will work regardless of this problem. Nevertheless, you
14796*** may want to report the problem to your system manager and/or to
14797*** bug-libtool@gnu.org
14798
14799EOF
14800 fi ;;
14801 esac
14802 fi
14803 break
14804 fi
14805 done
14806 IFS="$lt_save_ifs"
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14808 ;;
14809esac
John Criswell7a73b802003-06-30 21:59:07 +000014810fi
John Criswell7a73b802003-06-30 21:59:07 +000014811
John Criswell47fdd832003-07-14 16:52:07 +000014812MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014814 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14815echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014816else
Reid Spencera773bd52006-08-04 18:18:08 +000014817 { echo "$as_me:$LINENO: result: no" >&5
14818echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014819fi
John Criswell7a73b802003-06-30 21:59:07 +000014820
John Criswell47fdd832003-07-14 16:52:07 +000014821if test -z "$lt_cv_path_MAGIC_CMD"; then
14822 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014823 { echo "$as_me:$LINENO: checking for file" >&5
14824echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014825if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828 case $MAGIC_CMD in
14829[\\/*] | ?:[\\/]*)
14830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14831 ;;
14832*)
14833 lt_save_MAGIC_CMD="$MAGIC_CMD"
14834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14836 for ac_dir in $ac_dummy; do
14837 IFS="$lt_save_ifs"
14838 test -z "$ac_dir" && ac_dir=.
14839 if test -f $ac_dir/file; then
14840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14841 if test -n "$file_magic_test_file"; then
14842 case $deplibs_check_method in
14843 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14847 $EGREP "$file_magic_regex" > /dev/null; then
14848 :
14849 else
14850 cat <<EOF 1>&2
14851
14852*** Warning: the command libtool uses to detect shared libraries,
14853*** $file_magic_cmd, produces output that libtool cannot recognize.
14854*** The result is that libtool may fail to recognize shared libraries
14855*** as such. This will affect the creation of libtool libraries that
14856*** depend on shared libraries, but programs linked with such libtool
14857*** libraries will work regardless of this problem. Nevertheless, you
14858*** may want to report the problem to your system manager and/or to
14859*** bug-libtool@gnu.org
14860
14861EOF
14862 fi ;;
14863 esac
14864 fi
14865 break
14866 fi
14867 done
14868 IFS="$lt_save_ifs"
14869 MAGIC_CMD="$lt_save_MAGIC_CMD"
14870 ;;
14871esac
14872fi
14873
14874MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014876 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14877echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014878else
Reid Spencera773bd52006-08-04 18:18:08 +000014879 { echo "$as_me:$LINENO: result: no" >&5
14880echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014881fi
14882
14883 else
14884 MAGIC_CMD=:
14885 fi
14886fi
14887
14888 fi
14889 ;;
14890esac
14891
Reid Spencer17795972004-11-18 09:47:37 +000014892enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014893enable_win32_dll=no
14894
Reid Spencera773bd52006-08-04 18:18:08 +000014895# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014896if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014897 enableval=$enable_libtool_lock;
14898fi
John Criswell47fdd832003-07-14 16:52:07 +000014899
John Criswell47fdd832003-07-14 16:52:07 +000014900test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14901
John Criswell7a73b802003-06-30 21:59:07 +000014902
Reid Spencera773bd52006-08-04 18:18:08 +000014903# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014904if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014905 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014906else
14907 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014908fi
14909
John Criswell7a73b802003-06-30 21:59:07 +000014910test -z "$pic_mode" && pic_mode=default
14911
John Criswell47fdd832003-07-14 16:52:07 +000014912# Use C for the default configuration in the libtool script
14913tagname=
14914lt_save_CC="$CC"
14915ac_ext=c
14916ac_cpp='$CPP $CPPFLAGS'
14917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921
14922# Source file extension for C test sources.
14923ac_ext=c
14924
14925# Object file extension for compiled C test sources.
14926objext=o
14927objext=$objext
14928
14929# Code to be used in simple compile tests
14930lt_simple_compile_test_code="int some_variable = 0;\n"
14931
14932# Code to be used in simple link tests
14933lt_simple_link_test_code='int main(){return(0);}\n'
14934
14935
14936# If no C compiler was specified, use CC.
14937LTCC=${LTCC-"$CC"}
14938
Reid Spencera773bd52006-08-04 18:18:08 +000014939# If no C compiler flags were specified, use CFLAGS.
14940LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942# Allow CC to be a program name with arguments.
14943compiler=$CC
14944
14945
Reid Spencera773bd52006-08-04 18:18:08 +000014946# save warnings/boilerplate of simple test code
14947ac_outfile=conftest.$ac_objext
14948printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950_lt_compiler_boilerplate=`cat conftest.err`
14951$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014952
Reid Spencera773bd52006-08-04 18:18:08 +000014953ac_outfile=conftest.$ac_objext
14954printf "$lt_simple_link_test_code" >conftest.$ac_ext
14955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956_lt_linker_boilerplate=`cat conftest.err`
14957$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014958
14959
John Criswell47fdd832003-07-14 16:52:07 +000014960
14961lt_prog_compiler_no_builtin_flag=
14962
14963if test "$GCC" = yes; then
14964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14965
Reid Spencer2706f8c2004-09-19 23:53:36 +000014966
Reid Spencera773bd52006-08-04 18:18:08 +000014967{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14968echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014969if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 lt_cv_prog_compiler_rtti_exceptions=no
14973 ac_outfile=conftest.$ac_objext
14974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14975 lt_compiler_flag="-fno-rtti -fno-exceptions"
14976 # Insert the option either (1) after the last *FLAGS variable, or
14977 # (2) before a word containing "conftest.", or (3) at the end.
14978 # Note that $ac_compile itself does not contain backslashes and begins
14979 # with a dollar sign (not a hyphen), so the echo should work correctly.
14980 # The option is referenced via a variable to avoid confusing sed.
14981 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14984 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000014985 (eval echo "\"\$as_me:14985: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014986 (eval "$lt_compile" 2>conftest.err)
14987 ac_status=$?
14988 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000014989 echo "$as_me:14989: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014990 if (exit $ac_status) && test -s "$ac_outfile"; then
14991 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014992 # So say no if there are warnings other than the usual output.
14993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014996 lt_cv_prog_compiler_rtti_exceptions=yes
14997 fi
14998 fi
14999 $rm conftest*
15000
15001fi
Reid Spencera773bd52006-08-04 18:18:08 +000015002{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15003echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015004
15005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15007else
15008 :
15009fi
15010
15011fi
15012
15013lt_prog_compiler_wl=
15014lt_prog_compiler_pic=
15015lt_prog_compiler_static=
15016
Reid Spencera773bd52006-08-04 18:18:08 +000015017{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15018echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015019
15020 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000015023
15024 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015025 aix*)
15026 # All AIX code is PIC.
15027 if test "$host_cpu" = ia64; then
15028 # AIX 5 now supports IA64 processor
15029 lt_prog_compiler_static='-Bstatic'
15030 fi
John Criswell7a73b802003-06-30 21:59:07 +000015031 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015032
John Criswell7a73b802003-06-30 21:59:07 +000015033 amigaos*)
15034 # FIXME: we need at least 68020 code to build shared libraries, but
15035 # adding the `-m68020' flag to GCC prevents building anything better,
15036 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000015037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000015038 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015039
15040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000015041 # PIC is the default for these OSes.
15042 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015043
15044 mingw* | pw32* | os2*)
15045 # This hack is so that the source file can tell whether it is being
15046 # built for inclusion in a dll (and should export symbols for example).
15047 lt_prog_compiler_pic='-DDLL_EXPORT'
15048 ;;
15049
John Criswell7a73b802003-06-30 21:59:07 +000015050 darwin* | rhapsody*)
15051 # PIC is the default on this platform
15052 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000015053 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000015054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015055
Reid Spencera773bd52006-08-04 18:18:08 +000015056 interix3*)
15057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15058 # Instead, we relocate shared libraries at runtime.
15059 ;;
15060
John Criswell47fdd832003-07-14 16:52:07 +000015061 msdosdjgpp*)
15062 # Just because we use GCC doesn't mean we suddenly get shared libraries
15063 # on systems that don't support them.
15064 lt_prog_compiler_can_build_shared=no
15065 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015067
John Criswell7a73b802003-06-30 21:59:07 +000015068 sysv4*MP*)
15069 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000015070 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000015071 fi
15072 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015073
15074 hpux*)
15075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15076 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015077 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015078 hppa*64*|ia64*)
15079 # +Z the default
15080 ;;
15081 *)
15082 lt_prog_compiler_pic='-fPIC'
15083 ;;
15084 esac
15085 ;;
15086
John Criswell7a73b802003-06-30 21:59:07 +000015087 *)
John Criswell47fdd832003-07-14 16:52:07 +000015088 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000015089 ;;
15090 esac
15091 else
John Criswell47fdd832003-07-14 16:52:07 +000015092 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000015093 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015094 aix*)
15095 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015096 if test "$host_cpu" = ia64; then
15097 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000015098 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015099 else
John Criswell47fdd832003-07-14 16:52:07 +000015100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000015101 fi
15102 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015103 darwin*)
15104 # PIC is the default on this platform
15105 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000015106 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015107 xlc*)
15108 lt_prog_compiler_pic='-qnocommon'
15109 lt_prog_compiler_wl='-Wl,'
15110 ;;
15111 esac
15112 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015113
John Criswell47fdd832003-07-14 16:52:07 +000015114 mingw* | pw32* | os2*)
15115 # This hack is so that the source file can tell whether it is being
15116 # built for inclusion in a dll (and should export symbols for example).
15117 lt_prog_compiler_pic='-DDLL_EXPORT'
15118 ;;
15119
John Criswell7a73b802003-06-30 21:59:07 +000015120 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015121 lt_prog_compiler_wl='-Wl,'
15122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015124 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015125 hppa*64*|ia64*)
15126 # +Z the default
15127 ;;
15128 *)
15129 lt_prog_compiler_pic='+Z'
15130 ;;
15131 esac
15132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15133 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015134 ;;
15135
John Criswell47fdd832003-07-14 16:52:07 +000015136 irix5* | irix6* | nonstopux*)
15137 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015138 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015139 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015140 ;;
15141
15142 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015143 lt_prog_compiler_pic='-KPIC'
15144 lt_prog_compiler_static='-Bstatic'
15145 ;;
15146
15147 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015148 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015149 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015150 lt_prog_compiler_wl='-Wl,'
15151 lt_prog_compiler_pic='-KPIC'
15152 lt_prog_compiler_static='-static'
15153 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015154 pgcc* | pgf77* | pgf90* | pgf95*)
15155 # Portland Group compilers (*not* the Pentium gcc compiler,
15156 # which looks to be a dead project)
15157 lt_prog_compiler_wl='-Wl,'
15158 lt_prog_compiler_pic='-fpic'
15159 lt_prog_compiler_static='-Bstatic'
15160 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015161 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015162 lt_prog_compiler_wl='-Wl,'
15163 # All Alpha code is PIC.
15164 lt_prog_compiler_static='-non_shared'
15165 ;;
15166 esac
John Criswell7a73b802003-06-30 21:59:07 +000015167 ;;
15168
15169 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015170 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015171 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015172 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015173 ;;
15174
John Criswell7a73b802003-06-30 21:59:07 +000015175 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015176 lt_prog_compiler_pic='-KPIC'
15177 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015178 case $cc_basename in
15179 f77* | f90* | f95*)
15180 lt_prog_compiler_wl='-Qoption ld ';;
15181 *)
15182 lt_prog_compiler_wl='-Wl,';;
15183 esac
John Criswell7a73b802003-06-30 21:59:07 +000015184 ;;
15185
15186 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015187 lt_prog_compiler_wl='-Qoption ld '
15188 lt_prog_compiler_pic='-PIC'
15189 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015190 ;;
15191
Reid Spencera773bd52006-08-04 18:18:08 +000015192 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-KPIC'
15195 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015196 ;;
15197
15198 sysv4*MP*)
15199 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015200 lt_prog_compiler_pic='-Kconform_pic'
15201 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015202 fi
15203 ;;
15204
Reid Spencera773bd52006-08-04 18:18:08 +000015205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15209 ;;
15210
15211 unicos*)
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_can_build_shared=no
15214 ;;
15215
John Criswell47fdd832003-07-14 16:52:07 +000015216 uts4*)
15217 lt_prog_compiler_pic='-pic'
15218 lt_prog_compiler_static='-Bstatic'
15219 ;;
15220
John Criswell7a73b802003-06-30 21:59:07 +000015221 *)
John Criswell47fdd832003-07-14 16:52:07 +000015222 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015223 ;;
15224 esac
15225 fi
15226
Reid Spencera773bd52006-08-04 18:18:08 +000015227{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15228echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015229
John Criswell47fdd832003-07-14 16:52:07 +000015230#
15231# Check to make sure the PIC flag actually works.
15232#
15233if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015234
Reid Spencera773bd52006-08-04 18:18:08 +000015235{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15236echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015237if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
John Criswell47fdd832003-07-14 16:52:07 +000015240 lt_prog_compiler_pic_works=no
15241 ac_outfile=conftest.$ac_objext
15242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15244 # Insert the option either (1) after the last *FLAGS variable, or
15245 # (2) before a word containing "conftest.", or (3) at the end.
15246 # Note that $ac_compile itself does not contain backslashes and begins
15247 # with a dollar sign (not a hyphen), so the echo should work correctly.
15248 # The option is referenced via a variable to avoid confusing sed.
15249 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15252 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000015253 (eval echo "\"\$as_me:15253: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015254 (eval "$lt_compile" 2>conftest.err)
15255 ac_status=$?
15256 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000015257 echo "$as_me:15257: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015258 if (exit $ac_status) && test -s "$ac_outfile"; then
15259 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015260 # So say no if there are warnings other than the usual output.
15261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015264 lt_prog_compiler_pic_works=yes
15265 fi
15266 fi
15267 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015268
John Criswell47fdd832003-07-14 16:52:07 +000015269fi
Reid Spencera773bd52006-08-04 18:18:08 +000015270{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15271echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015272
John Criswell47fdd832003-07-14 16:52:07 +000015273if test x"$lt_prog_compiler_pic_works" = xyes; then
15274 case $lt_prog_compiler_pic in
15275 "" | " "*) ;;
15276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15277 esac
John Criswell7a73b802003-06-30 21:59:07 +000015278else
John Criswell47fdd832003-07-14 16:52:07 +000015279 lt_prog_compiler_pic=
15280 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015281fi
15282
John Criswell7a73b802003-06-30 21:59:07 +000015283fi
Reid Spencera773bd52006-08-04 18:18:08 +000015284case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015285 # For platforms which do not support PIC, -DPIC is meaningless:
15286 *djgpp*)
15287 lt_prog_compiler_pic=
15288 ;;
15289 *)
15290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15291 ;;
15292esac
John Criswell7a73b802003-06-30 21:59:07 +000015293
Reid Spencera773bd52006-08-04 18:18:08 +000015294#
15295# Check to make sure the static flag actually works.
15296#
15297wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15298{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15299echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15300if test "${lt_prog_compiler_static_works+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 lt_prog_compiler_static_works=no
15304 save_LDFLAGS="$LDFLAGS"
15305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15308 # The linker can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 if test -s conftest.err; then
15311 # Append any errors to the config.log.
15312 cat conftest.err 1>&5
15313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15315 if diff conftest.exp conftest.er2 >/dev/null; then
15316 lt_prog_compiler_static_works=yes
15317 fi
15318 else
15319 lt_prog_compiler_static_works=yes
15320 fi
15321 fi
15322 $rm conftest*
15323 LDFLAGS="$save_LDFLAGS"
15324
15325fi
15326{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15327echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15328
15329if test x"$lt_prog_compiler_static_works" = xyes; then
15330 :
15331else
15332 lt_prog_compiler_static=
15333fi
15334
15335
15336{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015338if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340else
John Criswell47fdd832003-07-14 16:52:07 +000015341 lt_cv_prog_compiler_c_o=no
15342 $rm -r conftest 2>/dev/null
15343 mkdir conftest
15344 cd conftest
15345 mkdir out
15346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015347
John Criswell47fdd832003-07-14 16:52:07 +000015348 lt_compiler_flag="-o out/conftest2.$ac_objext"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000015357 (eval echo "\"\$as_me:15357: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015358 (eval "$lt_compile" 2>out/conftest.err)
15359 ac_status=$?
15360 cat out/conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000015361 echo "$as_me:15361: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363 then
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015369 lt_cv_prog_compiler_c_o=yes
15370 fi
15371 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015372 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015373 $rm conftest*
15374 # SGI C++ compiler will create directory out/ii_files/ for
15375 # template instantiation
15376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15377 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015378 cd ..
15379 rmdir conftest
15380 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015381
15382fi
Reid Spencera773bd52006-08-04 18:18:08 +000015383{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15384echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015385
John Criswell7a73b802003-06-30 21:59:07 +000015386
John Criswell7a73b802003-06-30 21:59:07 +000015387hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015388if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015389 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015390 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015392 hard_links=yes
15393 $rm conftest*
15394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15395 touch conftest.a
15396 ln conftest.a conftest.b 2>&5 || hard_links=no
15397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015398 { echo "$as_me:$LINENO: result: $hard_links" >&5
15399echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015400 if test "$hard_links" = no; then
15401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15403 need_locks=warn
15404 fi
15405else
15406 need_locks=no
15407fi
John Criswell7a73b802003-06-30 21:59:07 +000015408
Reid Spencera773bd52006-08-04 18:18:08 +000015409{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015411
15412 runpath_var=
15413 allow_undefined_flag=
15414 enable_shared_with_static_runtimes=no
15415 archive_cmds=
15416 archive_expsym_cmds=
15417 old_archive_From_new_cmds=
15418 old_archive_from_expsyms_cmds=
15419 export_dynamic_flag_spec=
15420 whole_archive_flag_spec=
15421 thread_safe_flag_spec=
15422 hardcode_libdir_flag_spec=
15423 hardcode_libdir_flag_spec_ld=
15424 hardcode_libdir_separator=
15425 hardcode_direct=no
15426 hardcode_minus_L=no
15427 hardcode_shlibpath_var=unsupported
15428 link_all_deplibs=unknown
15429 hardcode_automatic=no
15430 module_cmds=
15431 module_expsym_cmds=
15432 always_export_symbols=no
15433 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15434 # include_expsyms should be a list of space-separated symbols to be *always*
15435 # included in the symbol list
15436 include_expsyms=
15437 # exclude_expsyms can be an extended regexp of symbols to exclude
15438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15440 # as well as any symbol that contains `d'.
15441 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15443 # platforms (ab)use it in PIC code, but their linkers get confused if
15444 # the symbol is explicitly referenced. Since portable code cannot
15445 # rely on this symbol name, it's probably fine to never include it in
15446 # preloaded symbol tables.
15447 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015448 # Just being paranoid about ensuring that cc_basename is set.
15449 for cc_temp in $compiler""; do
15450 case $cc_temp in
15451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15453 \-*) ;;
15454 *) break;;
15455 esac
15456done
15457cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015458
15459 case $host_os in
15460 cygwin* | mingw* | pw32*)
15461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15462 # When not using gcc, we currently assume that we are using
15463 # Microsoft Visual C++.
15464 if test "$GCC" != yes; then
15465 with_gnu_ld=no
15466 fi
15467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015468 interix*)
15469 # we just hope/assume this is gcc and not c89 (= MSVC++)
15470 with_gnu_ld=yes
15471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015472 openbsd*)
15473 with_gnu_ld=no
15474 ;;
15475 esac
15476
15477 ld_shlibs=yes
15478 if test "$with_gnu_ld" = yes; then
15479 # If archive_cmds runs LD, not CC, wlarc should be empty
15480 wlarc='${wl}'
15481
Reid Spencera773bd52006-08-04 18:18:08 +000015482 # Set some defaults for GNU ld with shared library support. These
15483 # are reset later if shared libraries are not supported. Putting them
15484 # here allows them to be overridden if necessary.
15485 runpath_var=LD_RUN_PATH
15486 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15487 export_dynamic_flag_spec='${wl}--export-dynamic'
15488 # ancient GNU ld didn't support --whole-archive et. al.
15489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15491 else
15492 whole_archive_flag_spec=
15493 fi
15494 supports_anon_versioning=no
15495 case `$LD -v 2>/dev/null` in
15496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15499 *\ 2.11.*) ;; # other 2.11 versions
15500 *) supports_anon_versioning=yes ;;
15501 esac
15502
John Criswell47fdd832003-07-14 16:52:07 +000015503 # See if GNU ld supports shared libraries.
15504 case $host_os in
15505 aix3* | aix4* | aix5*)
15506 # On AIX/PPC, the GNU linker is very broken
15507 if test "$host_cpu" != ia64; then
15508 ld_shlibs=no
15509 cat <<EOF 1>&2
15510
15511*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15512*** to be unable to reliably create shared libraries on AIX.
15513*** Therefore, libtool is disabling shared libraries support. If you
15514*** really care for shared libraries, you may want to modify your PATH
15515*** so that a non-GNU linker is found, and then restart.
15516
15517EOF
15518 fi
15519 ;;
15520
15521 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015522 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 +000015523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_minus_L=yes
15525
15526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15527 # that the semantics of dynamic libraries on AmigaOS, at least up
15528 # to version 4, is to share data among multiple programs linked
15529 # with the same dynamic library. Since this doesn't match the
15530 # behavior of shared libraries on other platforms, we can't use
15531 # them.
15532 ld_shlibs=no
15533 ;;
15534
15535 beos*)
15536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 allow_undefined_flag=unsupported
15538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15539 # support --undefined. This deserves some investigation. FIXME
15540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 else
15542 ld_shlibs=no
15543 fi
15544 ;;
15545
15546 cygwin* | mingw* | pw32*)
15547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15548 # as there is no search path for DLLs.
15549 hardcode_libdir_flag_spec='-L$libdir'
15550 allow_undefined_flag=unsupported
15551 always_export_symbols=no
15552 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015553 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 +000015554
15555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015556 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 +000015557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15561 else
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015564 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566 else
15567 ld_shlibs=no
15568 fi
15569 ;;
15570
15571 interix3*)
15572 hardcode_direct=no
15573 hardcode_shlibpath_var=no
15574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575 export_dynamic_flag_spec='${wl}-E'
15576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15577 # Instead, shared libraries are loaded at an image base (0x10000000 by
15578 # default) and relocated if they conflict, which is a slow very memory
15579 # consuming and fragmenting process. To avoid this, we pick a random,
15580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583 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'
15584 ;;
15585
15586 linux*)
15587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15588 tmp_addflag=
15589 case $cc_basename,$host_cpu in
15590 pgcc*) # Portland Group C compiler
15591 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'
15592 tmp_addflag=' $pic_flag'
15593 ;;
15594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15595 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'
15596 tmp_addflag=' $pic_flag -Mnomain' ;;
15597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15598 tmp_addflag=' -i_dynamic' ;;
15599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15600 tmp_addflag=' -i_dynamic -nofor_main' ;;
15601 ifc* | ifort*) # Intel Fortran compiler
15602 tmp_addflag=' -nofor_main' ;;
15603 esac
15604 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605
15606 if test $supports_anon_versioning = yes; then
15607 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15609 $echo "local: *; };" >> $output_objdir/$libname.ver~
15610 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15611 fi
John Criswell47fdd832003-07-14 16:52:07 +000015612 else
15613 ld_shlibs=no
15614 fi
15615 ;;
15616
15617 netbsd*)
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15620 wlarc=
15621 else
15622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15624 fi
15625 ;;
15626
Reid Spencera773bd52006-08-04 18:18:08 +000015627 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15629 ld_shlibs=no
15630 cat <<EOF 1>&2
15631
15632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15633*** create shared libraries on Solaris systems. Therefore, libtool
15634*** is disabling shared libraries support. We urge you to upgrade GNU
15635*** binutils to release 2.9.1 or newer. Another option is to modify
15636*** your PATH or compiler configuration so that the native linker is
15637*** used, and then restart.
15638
15639EOF
15640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15643 else
15644 ld_shlibs=no
15645 fi
15646 ;;
15647
Reid Spencera773bd52006-08-04 18:18:08 +000015648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15649 case `$LD -v 2>&1` in
15650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15651 ld_shlibs=no
15652 cat <<_LT_EOF 1>&2
15653
15654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15655*** reliably create shared libraries on SCO systems. Therefore, libtool
15656*** is disabling shared libraries support. We urge you to upgrade GNU
15657*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15658*** your PATH or compiler configuration so that the native linker is
15659*** used, and then restart.
15660
15661_LT_EOF
15662 ;;
15663 *)
15664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15668 else
15669 ld_shlibs=no
15670 fi
15671 ;;
15672 esac
15673 ;;
15674
John Criswell47fdd832003-07-14 16:52:07 +000015675 sunos4*)
15676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15677 wlarc=
15678 hardcode_direct=yes
15679 hardcode_shlibpath_var=no
15680 ;;
15681
15682 *)
15683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 else
15687 ld_shlibs=no
15688 fi
15689 ;;
15690 esac
15691
Reid Spencera773bd52006-08-04 18:18:08 +000015692 if test "$ld_shlibs" = no; then
15693 runpath_var=
15694 hardcode_libdir_flag_spec=
15695 export_dynamic_flag_spec=
15696 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015697 fi
15698 else
15699 # PORTME fill in a description of your system's linker (not GNU ld)
15700 case $host_os in
15701 aix3*)
15702 allow_undefined_flag=unsupported
15703 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015704 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 +000015705 # Note: this linker hardcodes the directories in LIBPATH if there
15706 # are no directories specified by -L.
15707 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015709 # Neither direct hardcoding nor static linking is supported with a
15710 # broken collect2.
15711 hardcode_direct=unsupported
15712 fi
15713 ;;
15714
15715 aix4* | aix5*)
15716 if test "$host_cpu" = ia64; then
15717 # On IA64, the linker does run time linking by default, so we don't
15718 # have to do anything special.
15719 aix_use_runtimelinking=no
15720 exp_sym_flag='-Bexport'
15721 no_entry_flag=""
15722 else
15723 # If we're using GNU nm, then we don't want the "-C" option.
15724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15726 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'
15727 else
15728 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'
15729 fi
15730 aix_use_runtimelinking=no
15731
15732 # Test if we are trying to use run time linking or normal
15733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15734 # need to do runtime linking.
15735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15736 for ld_flag in $LDFLAGS; do
15737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15738 aix_use_runtimelinking=yes
15739 break
15740 fi
15741 done
Reid Spencera773bd52006-08-04 18:18:08 +000015742 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015743 esac
15744
15745 exp_sym_flag='-bexport'
15746 no_entry_flag='-bnoentry'
15747 fi
15748
15749 # When large executables or shared objects are built, AIX ld can
15750 # have problems creating the table of contents. If linking a library
15751 # or program results in "error TOC overflow" add -mminimal-toc to
15752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15754
15755 archive_cmds=''
15756 hardcode_direct=yes
15757 hardcode_libdir_separator=':'
15758 link_all_deplibs=yes
15759
15760 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015761 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015762 # We only want to do this on AIX 4.2 and lower, the check
15763 # below for broken collect2 doesn't work under 4.3+
15764 collect2name=`${CC} -print-prog-name=collect2`
15765 if test -f "$collect2name" && \
15766 strings "$collect2name" | grep resolve_lib_name >/dev/null
15767 then
15768 # We have reworked collect2
15769 hardcode_direct=yes
15770 else
15771 # We have old collect2
15772 hardcode_direct=unsupported
15773 # It fails to find uninstalled libraries when the uninstalled
15774 # path is not listed in the libpath. Setting hardcode_minus_L
15775 # to unsupported forces relinking
15776 hardcode_minus_L=yes
15777 hardcode_libdir_flag_spec='-L$libdir'
15778 hardcode_libdir_separator=
15779 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015780 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015781 esac
15782 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015783 if test "$aix_use_runtimelinking" = yes; then
15784 shared_flag="$shared_flag "'${wl}-G'
15785 fi
John Criswell47fdd832003-07-14 16:52:07 +000015786 else
15787 # not using gcc
15788 if test "$host_cpu" = ia64; then
15789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15790 # chokes on -Wl,-G. The following line is correct:
15791 shared_flag='-G'
15792 else
Reid Spencera773bd52006-08-04 18:18:08 +000015793 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015794 shared_flag='${wl}-G'
15795 else
15796 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015797 fi
John Criswell47fdd832003-07-14 16:52:07 +000015798 fi
15799 fi
15800
15801 # It seems that -bexpall does not export symbols beginning with
15802 # underscore (_), so it is better to generate a list of symbols to export.
15803 always_export_symbols=yes
15804 if test "$aix_use_runtimelinking" = yes; then
15805 # Warning - without using the other runtime loading flags (-brtl),
15806 # -berok will link without error, but may produce a broken library.
15807 allow_undefined_flag='-berok'
15808 # Determine the default libpath from the value encoded in an empty executable.
15809 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015815
John Criswell7a73b802003-06-30 21:59:07 +000015816int
15817main ()
15818{
John Criswell47fdd832003-07-14 16:52:07 +000015819
John Criswell7a73b802003-06-30 21:59:07 +000015820 ;
15821 return 0;
15822}
15823_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015824rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015825if { (ac_try="$ac_link"
15826case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829esac
15830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852esac
15853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015858
John Criswell47fdd832003-07-14 16:52:07 +000015859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15860}'`
15861# Check for a 64-bit object if we didn't find anything.
15862if 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; }
15863}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015864else
15865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015866sed 's/^/| /' conftest.$ac_ext >&5
15867
Reid Spencera773bd52006-08-04 18:18:08 +000015868
John Criswell7a73b802003-06-30 21:59:07 +000015869fi
Reid Spencera773bd52006-08-04 18:18:08 +000015870
Bill Wendlingebcceee2009-04-18 11:20:33 +000015871rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015872 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015874
John Criswell47fdd832003-07-14 16:52:07 +000015875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015876 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 +000015877 else
15878 if test "$host_cpu" = ia64; then
15879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15880 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015881 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 +000015882 else
15883 # Determine the default libpath from the value encoded in an empty executable.
15884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015890
John Criswell47fdd832003-07-14 16:52:07 +000015891int
15892main ()
15893{
John Criswell7a73b802003-06-30 21:59:07 +000015894
John Criswell47fdd832003-07-14 16:52:07 +000015895 ;
15896 return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015900if { (ac_try="$ac_link"
15901case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904esac
15905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917esac
15918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927esac
15928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015933
John Criswell47fdd832003-07-14 16:52:07 +000015934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15935}'`
15936# Check for a 64-bit object if we didn't find anything.
15937if 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; }
15938}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015939else
John Criswell47fdd832003-07-14 16:52:07 +000015940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015941sed 's/^/| /' conftest.$ac_ext >&5
15942
Reid Spencera773bd52006-08-04 18:18:08 +000015943
John Criswell47fdd832003-07-14 16:52:07 +000015944fi
Reid Spencera773bd52006-08-04 18:18:08 +000015945
Bill Wendlingebcceee2009-04-18 11:20:33 +000015946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015947 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015949
John Criswell47fdd832003-07-14 16:52:07 +000015950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15951 # Warning - without using the other run time loading flags,
15952 # -berok will link without error, but may produce a broken library.
15953 no_undefined_flag=' ${wl}-bernotok'
15954 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015955 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015956 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015957 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015958 # This is similar to how AIX traditionally builds its shared libraries.
15959 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 +000015960 fi
15961 fi
John Criswell7a73b802003-06-30 21:59:07 +000015962 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015963
15964 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015965 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 +000015966 hardcode_libdir_flag_spec='-L$libdir'
15967 hardcode_minus_L=yes
15968 # see comment about different semantics on the GNU ld section
15969 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015970 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015971
Reid Spencer2706f8c2004-09-19 23:53:36 +000015972 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015973 export_dynamic_flag_spec=-rdynamic
15974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015975
John Criswell47fdd832003-07-14 16:52:07 +000015976 cygwin* | mingw* | pw32*)
15977 # When not using gcc, we currently assume that we are using
15978 # Microsoft Visual C++.
15979 # hardcode_libdir_flag_spec is actually meaningless, as there is
15980 # no search path for DLLs.
15981 hardcode_libdir_flag_spec=' '
15982 allow_undefined_flag=unsupported
15983 # Tell ltmain to make .lib files, not .a files.
15984 libext=lib
15985 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015986 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015987 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015989 # The linker will automatically build a .lib file if we build a DLL.
15990 old_archive_From_new_cmds='true'
15991 # FIXME: Should let the user specify the lib program.
15992 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15993 fix_srcfile_path='`cygpath -w "$srcfile"`'
15994 enable_shared_with_static_runtimes=yes
15995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015996
John Criswell47fdd832003-07-14 16:52:07 +000015997 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015998 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015999 rhapsody* | darwin1.[012])
16000 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16001 ;;
16002 *) # Darwin 1.3 on
16003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16004 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16005 else
16006 case ${MACOSX_DEPLOYMENT_TARGET} in
16007 10.[012])
16008 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16009 ;;
16010 10.*)
16011 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16012 ;;
16013 esac
16014 fi
16015 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016016 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016017 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016018 hardcode_direct=no
16019 hardcode_automatic=yes
16020 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016021 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000016022 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016023 if test "$GCC" = yes ; then
16024 output_verbose_link_cmd='echo'
16025 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000016027 # 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 +000016028 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}'
16029 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 +000016030 else
Reid Spencera773bd52006-08-04 18:18:08 +000016031 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016032 xlc*)
16033 output_verbose_link_cmd='echo'
16034 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16035 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000016036 # 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 +000016037 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}'
16038 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 +000016039 ;;
16040 *)
16041 ld_shlibs=no
16042 ;;
16043 esac
John Criswell7a73b802003-06-30 21:59:07 +000016044 fi
John Criswell47fdd832003-07-14 16:52:07 +000016045 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016046
John Criswell47fdd832003-07-14 16:52:07 +000016047 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000016048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016049 hardcode_libdir_flag_spec='-L$libdir'
16050 hardcode_shlibpath_var=no
16051 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016052
John Criswell47fdd832003-07-14 16:52:07 +000016053 freebsd1*)
16054 ld_shlibs=no
16055 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016056
John Criswell47fdd832003-07-14 16:52:07 +000016057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16058 # support. Future versions do this automatically, but an explicit c++rt0.o
16059 # does not break anything, and helps significantly (at the cost of a little
16060 # extra space).
16061 freebsd2.2*)
16062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_direct=yes
16065 hardcode_shlibpath_var=no
16066 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016067
John Criswell47fdd832003-07-14 16:52:07 +000016068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16069 freebsd2*)
16070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_direct=yes
16072 hardcode_minus_L=yes
16073 hardcode_shlibpath_var=no
16074 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016075
John Criswell47fdd832003-07-14 16:52:07 +000016076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000016077 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000016078 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16082 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016083
John Criswell47fdd832003-07-14 16:52:07 +000016084 hpux9*)
16085 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016086 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 +000016087 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016088 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 +000016089 fi
16090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16091 hardcode_libdir_separator=:
16092 hardcode_direct=yes
16093
16094 # hardcode_minus_L: Not really in the search PATH,
16095 # but as the default location of the library.
16096 hardcode_minus_L=yes
16097 export_dynamic_flag_spec='${wl}-E'
16098 ;;
16099
Reid Spencera773bd52006-08-04 18:18:08 +000016100 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000016101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16103 else
16104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16105 fi
16106 if test "$with_gnu_ld" = no; then
16107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16108 hardcode_libdir_separator=:
16109
16110 hardcode_direct=yes
16111 export_dynamic_flag_spec='${wl}-E'
16112
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L=yes
16116 fi
16117 ;;
16118
16119 hpux11*)
16120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16121 case $host_cpu in
16122 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016125 ia64*)
16126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16127 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016128 *)
16129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16130 ;;
16131 esac
16132 else
Reid Spencera773bd52006-08-04 18:18:08 +000016133 case $host_cpu in
16134 hppa*64*)
16135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 ;;
16137 ia64*)
16138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016139 ;;
16140 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016141 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 +000016142 ;;
16143 esac
16144 fi
16145 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16147 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016148
Reid Spencera773bd52006-08-04 18:18:08 +000016149 case $host_cpu in
16150 hppa*64*|ia64*)
16151 hardcode_libdir_flag_spec_ld='+b $libdir'
16152 hardcode_direct=no
16153 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016154 ;;
16155 *)
John Criswell47fdd832003-07-14 16:52:07 +000016156 hardcode_direct=yes
16157 export_dynamic_flag_spec='${wl}-E'
16158
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16162 ;;
16163 esac
16164 fi
16165 ;;
16166
16167 irix5* | irix6* | nonstopux*)
16168 if test "$GCC" = yes; then
16169 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'
16170 else
16171 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'
16172 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16173 fi
16174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator=:
16176 link_all_deplibs=yes
16177 ;;
16178
16179 netbsd*)
16180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16182 else
16183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16184 fi
16185 hardcode_libdir_flag_spec='-R$libdir'
16186 hardcode_direct=yes
16187 hardcode_shlibpath_var=no
16188 ;;
16189
16190 newsos6)
16191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_direct=yes
16193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator=:
16195 hardcode_shlibpath_var=no
16196 ;;
16197
16198 openbsd*)
16199 hardcode_direct=yes
16200 hardcode_shlibpath_var=no
16201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016203 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 +000016204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16205 export_dynamic_flag_spec='${wl}-E'
16206 else
16207 case $host_os in
16208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_libdir_flag_spec='-R$libdir'
16211 ;;
16212 *)
16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16215 ;;
16216 esac
16217 fi
16218 ;;
16219
16220 os2*)
16221 hardcode_libdir_flag_spec='-L$libdir'
16222 hardcode_minus_L=yes
16223 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016224 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 +000016225 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16226 ;;
16227
16228 osf3*)
16229 if test "$GCC" = yes; then
16230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16231 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'
16232 else
16233 allow_undefined_flag=' -expect_unresolved \*'
16234 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'
16235 fi
16236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16237 hardcode_libdir_separator=:
16238 ;;
16239
16240 osf4* | osf5*) # as osf3* with the addition of -msym flag
16241 if test "$GCC" = yes; then
16242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16243 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'
16244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16245 else
16246 allow_undefined_flag=' -expect_unresolved \*'
16247 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 +000016248 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 +000016249 $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 +000016250
John Criswell47fdd832003-07-14 16:52:07 +000016251 # Both c and cxx compiler support -rpath directly
16252 hardcode_libdir_flag_spec='-rpath $libdir'
16253 fi
16254 hardcode_libdir_separator=:
16255 ;;
16256
John Criswell47fdd832003-07-14 16:52:07 +000016257 solaris*)
16258 no_undefined_flag=' -z text'
16259 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016260 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016261 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016262 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16263 $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 +000016264 else
Reid Spencera773bd52006-08-04 18:18:08 +000016265 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268 $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 +000016269 fi
16270 hardcode_libdir_flag_spec='-R$libdir'
16271 hardcode_shlibpath_var=no
16272 case $host_os in
16273 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016274 *)
16275 # The compiler driver will combine linker options so we
16276 # cannot just pass the convience library names through
16277 # without $wl, iff we do not link with $LD.
16278 # Luckily, gcc supports the same syntax we need for Sun Studio.
16279 # Supported since Solaris 2.6 (maybe 2.5.1?)
16280 case $wlarc in
16281 '')
16282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16283 *)
16284 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' ;;
16285 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016286 esac
16287 link_all_deplibs=yes
16288 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016289
John Criswell47fdd832003-07-14 16:52:07 +000016290 sunos4*)
16291 if test "x$host_vendor" = xsequent; then
16292 # Use $CC to link under sequent, because it throws in some extra .o
16293 # files that make .init and .fini sections work.
16294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16295 else
16296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16297 fi
16298 hardcode_libdir_flag_spec='-L$libdir'
16299 hardcode_direct=yes
16300 hardcode_minus_L=yes
16301 hardcode_shlibpath_var=no
16302 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016303
John Criswell47fdd832003-07-14 16:52:07 +000016304 sysv4)
16305 case $host_vendor in
16306 sni)
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes # is this really true???
16309 ;;
16310 siemens)
16311 ## LD is ld it makes a PLAMLIB
16312 ## CC just makes a GrossModule.
16313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16314 reload_cmds='$CC -r -o $output$reload_objs'
16315 hardcode_direct=no
16316 ;;
16317 motorola)
16318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16320 ;;
16321 esac
16322 runpath_var='LD_RUN_PATH'
16323 hardcode_shlibpath_var=no
16324 ;;
16325
16326 sysv4.3*)
16327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328 hardcode_shlibpath_var=no
16329 export_dynamic_flag_spec='-Bexport'
16330 ;;
16331
16332 sysv4*MP*)
16333 if test -d /usr/nec; then
16334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_shlibpath_var=no
16336 runpath_var=LD_RUN_PATH
16337 hardcode_runpath_var=yes
16338 ld_shlibs=yes
16339 fi
16340 ;;
16341
Reid Spencera773bd52006-08-04 18:18:08 +000016342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16343 no_undefined_flag='${wl}-z,text'
16344 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016345 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016346 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016347
John Criswell47fdd832003-07-14 16:52:07 +000016348 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 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 +000016351 else
Reid Spencera773bd52006-08-04 18:18:08 +000016352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 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 +000016354 fi
John Criswell47fdd832003-07-14 16:52:07 +000016355 ;;
16356
Reid Spencera773bd52006-08-04 18:18:08 +000016357 sysv5* | sco3.2v5* | sco5v6*)
16358 # Note: We can NOT use -z defs as we might desire, because we do not
16359 # link with -lc, and that would cause any symbols used from libc to
16360 # always be unresolved, which means just about no library would
16361 # ever link correctly. If we're not using GNU ld we use -z text
16362 # though, which does catch some bad symbols but isn't as heavy-handed
16363 # as -z defs.
16364 no_undefined_flag='${wl}-z,text'
16365 allow_undefined_flag='${wl}-z,nodefs'
16366 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016367 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016368 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16369 hardcode_libdir_separator=':'
16370 link_all_deplibs=yes
16371 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016372 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016373
16374 if test "$GCC" = yes; then
16375 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16377 else
16378 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16380 fi
John Criswell47fdd832003-07-14 16:52:07 +000016381 ;;
16382
16383 uts4*)
16384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_libdir_flag_spec='-L$libdir'
16386 hardcode_shlibpath_var=no
16387 ;;
16388
16389 *)
16390 ld_shlibs=no
16391 ;;
16392 esac
16393 fi
16394
Reid Spencera773bd52006-08-04 18:18:08 +000016395{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16396echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016397test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016398
John Criswell47fdd832003-07-14 16:52:07 +000016399#
16400# Do we need to explicitly link libc?
16401#
16402case "x$archive_cmds_need_lc" in
16403x|xyes)
16404 # Assume -lc should be added
16405 archive_cmds_need_lc=yes
16406
16407 if test "$enable_shared" = yes && test "$GCC" = yes; then
16408 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016410 # FIXME: we may have to deal with multi-command sequences.
16411 ;;
16412 '$CC '*)
16413 # Test whether the compiler implicitly links with -lc since on some
16414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16415 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016416 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016418 $rm conftest*
16419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16420
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } 2>conftest.err; then
16426 soname=conftest
16427 lib=conftest
16428 libobjs=conftest.$ac_objext
16429 deplibs=
16430 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016431 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016432 compiler_flags=-v
16433 linker_flags=-v
16434 verstring=
16435 output_objdir=.
16436 libname=conftest
16437 lt_save_allow_undefined_flag=$allow_undefined_flag
16438 allow_undefined_flag=
16439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }
16444 then
16445 archive_cmds_need_lc=no
16446 else
16447 archive_cmds_need_lc=yes
16448 fi
16449 allow_undefined_flag=$lt_save_allow_undefined_flag
16450 else
16451 cat conftest.err 1>&5
16452 fi
16453 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016454 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16455echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016456 ;;
16457 esac
16458 fi
16459 ;;
16460esac
16461
Reid Spencera773bd52006-08-04 18:18:08 +000016462{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016464library_names_spec=
16465libname_spec='lib$name'
16466soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016467shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016468postinstall_cmds=
16469postuninstall_cmds=
16470finish_cmds=
16471finish_eval=
16472shlibpath_var=
16473shlibpath_overrides_runpath=unknown
16474version_type=none
16475dynamic_linker="$host_os ld.so"
16476sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016477if test "$GCC" = yes; then
16478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480 # if the path contains ";" then we assume it to be the separator
16481 # otherwise default to the standard path separator (i.e. ":") - it is
16482 # assumed that no part of a normal pathname contains ";" but that should
16483 # okay in the real world where ";" in dirpaths is itself problematic.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16487 fi
16488else
16489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16490fi
16491need_lib_prefix=unknown
16492hardcode_into_libs=no
16493
16494# when you set need_version to no, make sure it does not cause -set_version
16495# flags to be left without arguments
16496need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016497
16498case $host_os in
16499aix3*)
16500 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016502 shlibpath_var=LIBPATH
16503
John Criswell47fdd832003-07-14 16:52:07 +000016504 # AIX 3 has no versioning support, so we append a major version to the name.
16505 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016506 ;;
16507
16508aix4* | aix5*)
16509 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016510 need_lib_prefix=no
16511 need_version=no
16512 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016513 if test "$host_cpu" = ia64; then
16514 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016516 shlibpath_var=LD_LIBRARY_PATH
16517 else
16518 # With GCC up to 2.95.x, collect2 would create an import file
16519 # for dependence libraries. The import file would start with
16520 # the line `#! .'. This would cause the generated library to
16521 # depend on `.', always an invalid library. This was fixed in
16522 # development snapshots of GCC prior to 3.0.
16523 case $host_os in
16524 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16526 echo ' yes '
16527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16528 :
16529 else
16530 can_build_shared=no
16531 fi
16532 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016533 esac
John Criswell47fdd832003-07-14 16:52:07 +000016534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535 # soname into executable. Probably we can add versioning support to
16536 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016537 if test "$aix_use_runtimelinking" = yes; then
16538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539 # instead of lib<name>.a to let people know that these are not
16540 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016542 else
16543 # We preserve .a as extension for shared libraries through AIX4.2
16544 # and later when we are not doing run time linking.
16545 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016546 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016547 fi
16548 shlibpath_var=LIBPATH
16549 fi
16550 ;;
16551
16552amigaos*)
16553 library_names_spec='$libname.ixlibrary $libname.a'
16554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555 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 +000016556 ;;
16557
16558beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016559 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016560 dynamic_linker="$host_os ld.so"
16561 shlibpath_var=LIBRARY_PATH
16562 ;;
16563
Reid Spencer2706f8c2004-09-19 23:53:36 +000016564bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016565 version_type=linux
16566 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016573 # the default ld.so.conf also contains /usr/contrib/lib and
16574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575 # libtool to hard-code these into programs
16576 ;;
16577
16578cygwin* | mingw* | pw32*)
16579 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016580 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016581 need_version=no
16582 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016583
John Criswell7a73b802003-06-30 21:59:07 +000016584 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016585 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016586 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016588 postinstall_cmds='base_file=`basename \${file}`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016592 $install_prog $dir/$dlname \$dldir/$dlname~
16593 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016596 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016597 shlibpath_overrides_runpath=yes
16598
16599 case $host_os in
16600 cygwin*)
16601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602 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 +000016603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016604 ;;
16605 mingw*)
16606 # MinGW DLLs use traditional 'lib' prefix
16607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16610 # It is most probably a Windows format PATH printed by
16611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612 # path with ; separators, and with drive letters. We can handle the
16613 # drive letters (cygwin fileutils understands them), so leave them,
16614 # especially as we might pass files found there to a mingw objdump,
16615 # which wouldn't understand a cygwinified path. Ahh.
16616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617 else
16618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16619 fi
16620 ;;
16621 pw32*)
16622 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016623 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 +000016624 ;;
16625 esac
John Criswell7a73b802003-06-30 21:59:07 +000016626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016627
John Criswell7a73b802003-06-30 21:59:07 +000016628 *)
John Criswell47fdd832003-07-14 16:52:07 +000016629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016630 ;;
16631 esac
16632 dynamic_linker='Win32 ld.exe'
16633 # FIXME: first we should search . and the directory the executable is in
16634 shlibpath_var=PATH
16635 ;;
16636
16637darwin* | rhapsody*)
16638 dynamic_linker="$host_os dyld"
16639 version_type=darwin
16640 need_lib_prefix=no
16641 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016643 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016644 shlibpath_overrides_runpath=yes
16645 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016646 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016648 if test "$GCC" = yes; then
16649 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"`
16650 else
16651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016652 fi
16653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16654 ;;
16655
16656dgux*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016663 ;;
16664
16665freebsd1*)
16666 dynamic_linker=no
16667 ;;
16668
Reid Spencer2706f8c2004-09-19 23:53:36 +000016669kfreebsd*-gnu)
16670 version_type=linux
16671 need_lib_prefix=no
16672 need_version=no
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=no
16677 hardcode_into_libs=yes
16678 dynamic_linker='GNU ld.so'
16679 ;;
16680
Reid Spencera773bd52006-08-04 18:18:08 +000016681freebsd* | dragonfly*)
16682 # DragonFly does not have aout. When/if they implement a new
16683 # versioning mechanism, adjust this.
16684 if test -x /usr/bin/objformat; then
16685 objformat=`/usr/bin/objformat`
16686 else
16687 case $host_os in
16688 freebsd[123]*) objformat=aout ;;
16689 *) objformat=elf ;;
16690 esac
16691 fi
John Criswell7a73b802003-06-30 21:59:07 +000016692 version_type=freebsd-$objformat
16693 case $version_type in
16694 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016696 need_version=no
16697 need_lib_prefix=no
16698 ;;
16699 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016701 need_version=yes
16702 ;;
16703 esac
16704 shlibpath_var=LD_LIBRARY_PATH
16705 case $host_os in
16706 freebsd2*)
16707 shlibpath_overrides_runpath=yes
16708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016709 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16717 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016718 freebsd*) # from 4.6 on
16719 shlibpath_overrides_runpath=yes
16720 hardcode_into_libs=yes
16721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016722 esac
16723 ;;
16724
16725gnu*)
16726 version_type=linux
16727 need_lib_prefix=no
16728 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016731 shlibpath_var=LD_LIBRARY_PATH
16732 hardcode_into_libs=yes
16733 ;;
16734
16735hpux9* | hpux10* | hpux11*)
16736 # Give a soname corresponding to the major version so that dld.sl refuses to
16737 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016738 version_type=sunos
16739 need_lib_prefix=no
16740 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016741 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016742 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016743 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.so"
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 if test "X$HPUX_IA64_MODE" = X32; then
16751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16752 else
16753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16754 fi
16755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16756 ;;
16757 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016758 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016759 hardcode_into_libs=yes
16760 dynamic_linker="$host_os dld.sl"
16761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16767 ;;
16768 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016770 dynamic_linker="$host_os dld.sl"
16771 shlibpath_var=SHLIB_PATH
16772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 ;;
16776 esac
John Criswell7a73b802003-06-30 21:59:07 +000016777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16778 postinstall_cmds='chmod 555 $lib'
16779 ;;
16780
Reid Spencera773bd52006-08-04 18:18:08 +000016781interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=no
16790 hardcode_into_libs=yes
16791 ;;
16792
John Criswell47fdd832003-07-14 16:52:07 +000016793irix5* | irix6* | nonstopux*)
16794 case $host_os in
16795 nonstopux*) version_type=nonstopux ;;
16796 *)
16797 if test "$lt_cv_prog_gnu_ld" = yes; then
16798 version_type=linux
16799 else
16800 version_type=irix
16801 fi ;;
16802 esac
John Criswell7a73b802003-06-30 21:59:07 +000016803 need_lib_prefix=no
16804 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016805 soname_spec='${libname}${release}${shared_ext}$major'
16806 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 +000016807 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016808 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016809 libsuff= shlibsuff=
16810 ;;
16811 *)
16812 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16814 libsuff= shlibsuff= libmagic=32-bit;;
16815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16816 libsuff=32 shlibsuff=N32 libmagic=N32;;
16817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016819 *) libsuff= shlibsuff= libmagic=never-match;;
16820 esac
16821 ;;
16822 esac
16823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16824 shlibpath_overrides_runpath=no
16825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016827 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016828 ;;
16829
16830# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016831linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016832 dynamic_linker=no
16833 ;;
16834
16835# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016836linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016837 version_type=linux
16838 need_lib_prefix=no
16839 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 # This implies no fast_install, which is unacceptable.
16846 # Some rework will be needed to allow for fast_install
16847 # before this can be enabled.
16848 hardcode_into_libs=yes
16849
Reid Spencer2706f8c2004-09-19 23:53:36 +000016850 # Append ld.so.conf contents to the search path
16851 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016852 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 +000016853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16854 fi
16855
John Criswell7a73b802003-06-30 21:59:07 +000016856 # We used to test for /lib/ld.so.1 and disable shared libraries on
16857 # powerpc, because MkLinux only supported shared libraries with the
16858 # GNU dynamic linker. Since this was broken with cross compilers,
16859 # most powerpc-linux boxes support dynamic linking these days and
16860 # people can always --disable-shared, the test was removed, and we
16861 # assume the GNU/Linux dynamic linker is in use.
16862 dynamic_linker='GNU/Linux ld.so'
16863 ;;
16864
Reid Spencer2706f8c2004-09-19 23:53:36 +000016865knetbsd*-gnu)
16866 version_type=linux
16867 need_lib_prefix=no
16868 need_version=no
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16874 dynamic_linker='GNU ld.so'
16875 ;;
16876
John Criswell7a73b802003-06-30 21:59:07 +000016877netbsd*)
16878 version_type=sunos
16879 need_lib_prefix=no
16880 need_version=no
16881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16884 dynamic_linker='NetBSD (a.out) ld.so'
16885 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016887 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016888 dynamic_linker='NetBSD ld.elf_so'
16889 fi
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes
16892 hardcode_into_libs=yes
16893 ;;
16894
16895newsos6)
16896 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16900 ;;
16901
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016903 version_type=linux
16904 need_lib_prefix=no
16905 need_version=no
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16910 ;;
16911
16912openbsd*)
16913 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016914 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016915 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16917 case $host_os in
16918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16919 *) need_version=no ;;
16920 esac
John Criswell47fdd832003-07-14 16:52:07 +000016921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016924 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 +000016925 case $host_os in
16926 openbsd2.[89] | openbsd2.[89].*)
16927 shlibpath_overrides_runpath=no
16928 ;;
16929 *)
16930 shlibpath_overrides_runpath=yes
16931 ;;
16932 esac
John Criswell7a73b802003-06-30 21:59:07 +000016933 else
16934 shlibpath_overrides_runpath=yes
16935 fi
John Criswell7a73b802003-06-30 21:59:07 +000016936 ;;
16937
16938os2*)
16939 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016940 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016941 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016942 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016943 dynamic_linker='OS/2 ld.exe'
16944 shlibpath_var=LIBPATH
16945 ;;
16946
16947osf3* | osf4* | osf5*)
16948 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016949 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016950 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016951 soname_spec='${libname}${release}${shared_ext}$major'
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016953 shlibpath_var=LD_LIBRARY_PATH
16954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16956 ;;
16957
John Criswell7a73b802003-06-30 21:59:07 +000016958solaris*)
16959 version_type=linux
16960 need_lib_prefix=no
16961 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016964 shlibpath_var=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath=yes
16966 hardcode_into_libs=yes
16967 # ldd complains unless libraries are executable
16968 postinstall_cmds='chmod +x $lib'
16969 ;;
16970
16971sunos4*)
16972 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=yes
16977 if test "$with_gnu_ld" = yes; then
16978 need_lib_prefix=no
16979 fi
16980 need_version=yes
16981 ;;
16982
Reid Spencera773bd52006-08-04 18:18:08 +000016983sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016984 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016987 shlibpath_var=LD_LIBRARY_PATH
16988 case $host_vendor in
16989 sni)
16990 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016991 need_lib_prefix=no
16992 export_dynamic_flag_spec='${wl}-Blargedynsym'
16993 runpath_var=LD_RUN_PATH
16994 ;;
16995 siemens)
16996 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016997 ;;
16998 motorola)
16999 need_lib_prefix=no
17000 need_version=no
17001 shlibpath_overrides_runpath=no
17002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17003 ;;
17004 esac
17005 ;;
17006
John Criswell7a73b802003-06-30 21:59:07 +000017007sysv4*MP*)
17008 if test -d /usr/nec ;then
17009 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000017010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17011 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000017012 shlibpath_var=LD_LIBRARY_PATH
17013 fi
17014 ;;
17015
Reid Spencera773bd52006-08-04 18:18:08 +000017016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17017 version_type=freebsd-elf
17018 need_lib_prefix=no
17019 need_version=no
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 if test "$with_gnu_ld" = yes; then
17025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17026 shlibpath_overrides_runpath=no
17027 else
17028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17029 shlibpath_overrides_runpath=yes
17030 case $host_os in
17031 sco3.2v5*)
17032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17033 ;;
17034 esac
17035 fi
17036 sys_lib_dlsearch_path_spec='/usr/lib'
17037 ;;
17038
John Criswell47fdd832003-07-14 16:52:07 +000017039uts4*)
17040 version_type=linux
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 ;;
17045
John Criswell7a73b802003-06-30 21:59:07 +000017046*)
17047 dynamic_linker=no
17048 ;;
17049esac
Reid Spencera773bd52006-08-04 18:18:08 +000017050{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17051echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017052test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000017053
Reid Spencera773bd52006-08-04 18:18:08 +000017054variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17055if test "$GCC" = yes; then
17056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17057fi
17058
17059{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017061hardcode_action=
17062if test -n "$hardcode_libdir_flag_spec" || \
17063 test -n "$runpath_var" || \
17064 test "X$hardcode_automatic" = "Xyes" ; then
17065
17066 # We can hardcode non-existant directories.
17067 if test "$hardcode_direct" != no &&
17068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17069 # have to relink, otherwise we might link with an installed library
17070 # when we should be linking with a yet-to-be-installed one
17071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17072 test "$hardcode_minus_L" != no; then
17073 # Linking always hardcodes the temporary library directory.
17074 hardcode_action=relink
17075 else
17076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17077 hardcode_action=immediate
17078 fi
17079else
17080 # We cannot hardcode anything, or else we can only hardcode existing
17081 # directories.
17082 hardcode_action=unsupported
17083fi
Reid Spencera773bd52006-08-04 18:18:08 +000017084{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17085echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017086
17087if test "$hardcode_action" = relink; then
17088 # Fast installation is not supported
17089 enable_fast_install=no
17090elif test "$shlibpath_overrides_runpath" = yes ||
17091 test "$enable_shared" = no; then
17092 # Fast installation is not necessary
17093 enable_fast_install=needless
17094fi
17095
17096striplib=
17097old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000017098{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17099echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017100if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000017103 { echo "$as_me:$LINENO: result: yes" >&5
17104echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017105else
17106# FIXME - insert some real tests, host_os isn't really good enough
17107 case $host_os in
17108 darwin*)
17109 if test -n "$STRIP" ; then
17110 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000017111 { echo "$as_me:$LINENO: result: yes" >&5
17112echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017113 else
Reid Spencera773bd52006-08-04 18:18:08 +000017114 { echo "$as_me:$LINENO: result: no" >&5
17115echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017116fi
17117 ;;
17118 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017119 { echo "$as_me:$LINENO: result: no" >&5
17120echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017121 ;;
17122 esac
17123fi
17124
John Criswell7a73b802003-06-30 21:59:07 +000017125if test "x$enable_dlopen" != xyes; then
17126 enable_dlopen=unknown
17127 enable_dlopen_self=unknown
17128 enable_dlopen_self_static=unknown
17129else
17130 lt_cv_dlopen=no
17131 lt_cv_dlopen_libs=
17132
17133 case $host_os in
17134 beos*)
17135 lt_cv_dlopen="load_add_on"
17136 lt_cv_dlopen_libs=
17137 lt_cv_dlopen_self=yes
17138 ;;
17139
John Criswell47fdd832003-07-14 16:52:07 +000017140 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017141 lt_cv_dlopen="LoadLibrary"
17142 lt_cv_dlopen_libs=
17143 ;;
17144
John Criswell47fdd832003-07-14 16:52:07 +000017145 cygwin*)
17146 lt_cv_dlopen="dlopen"
17147 lt_cv_dlopen_libs=
17148 ;;
17149
17150 darwin*)
17151 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017152 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 ac_check_lib_save_LIBS=$LIBS
17158LIBS="-ldl $LIBS"
17159cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017160/* confdefs.h. */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017165
Reid Spencera773bd52006-08-04 18:18:08 +000017166/* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017169#ifdef __cplusplus
17170extern "C"
17171#endif
John Criswell47fdd832003-07-14 16:52:07 +000017172char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017173int
17174main ()
17175{
Reid Spencera773bd52006-08-04 18:18:08 +000017176return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017182if { (ac_try="$ac_link"
17183case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017215 ac_cv_lib_dl_dlopen=yes
17216else
17217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017218sed 's/^/| /' conftest.$ac_ext >&5
17219
Reid Spencera773bd52006-08-04 18:18:08 +000017220 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017221fi
Reid Spencera773bd52006-08-04 18:18:08 +000017222
Bill Wendlingebcceee2009-04-18 11:20:33 +000017223rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017224 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017225LIBS=$ac_check_lib_save_LIBS
17226fi
Reid Spencera773bd52006-08-04 18:18:08 +000017227{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17228echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017229if test $ac_cv_lib_dl_dlopen = yes; then
17230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17231else
17232
17233 lt_cv_dlopen="dyld"
17234 lt_cv_dlopen_libs=
17235 lt_cv_dlopen_self=yes
17236
17237fi
17238
17239 ;;
17240
John Criswell7a73b802003-06-30 21:59:07 +000017241 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017242 { echo "$as_me:$LINENO: checking for shl_load" >&5
17243echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017244if test "${ac_cv_func_shl_load+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246else
17247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017253/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255#define shl_load innocuous_shl_load
17256
John Criswell7a73b802003-06-30 21:59:07 +000017257/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017258 which can conflict with char shl_load (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017261
John Criswell0c38eaf2003-09-10 15:17:25 +000017262#ifdef __STDC__
17263# include <limits.h>
17264#else
17265# include <assert.h>
17266#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267
17268#undef shl_load
17269
Reid Spencera773bd52006-08-04 18:18:08 +000017270/* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017273#ifdef __cplusplus
17274extern "C"
17275#endif
John Criswell7a73b802003-06-30 21:59:07 +000017276char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017280#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017281choke me
John Criswell7a73b802003-06-30 21:59:07 +000017282#endif
17283
John Criswell0c38eaf2003-09-10 15:17:25 +000017284int
17285main ()
17286{
Reid Spencera773bd52006-08-04 18:18:08 +000017287return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017326 ac_cv_func_shl_load=yes
17327else
17328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017329sed 's/^/| /' conftest.$ac_ext >&5
17330
Reid Spencera773bd52006-08-04 18:18:08 +000017331 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333
Bill Wendlingebcceee2009-04-18 11:20:33 +000017334rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017335 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017336fi
Reid Spencera773bd52006-08-04 18:18:08 +000017337{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17338echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017339if test $ac_cv_func_shl_load = yes; then
17340 lt_cv_dlopen="shl_load"
17341else
Reid Spencera773bd52006-08-04 18:18:08 +000017342 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17343echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017344if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346else
17347 ac_check_lib_save_LIBS=$LIBS
17348LIBS="-ldld $LIBS"
17349cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017355
Reid Spencera773bd52006-08-04 18:18:08 +000017356/* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017359#ifdef __cplusplus
17360extern "C"
17361#endif
John Criswell7a73b802003-06-30 21:59:07 +000017362char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017363int
17364main ()
17365{
Reid Spencera773bd52006-08-04 18:18:08 +000017366return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017367 ;
17368 return 0;
17369}
17370_ACEOF
17371rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017372if { (ac_try="$ac_link"
17373case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376esac
17377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017405 ac_cv_lib_dld_shl_load=yes
17406else
17407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017408sed 's/^/| /' conftest.$ac_ext >&5
17409
Reid Spencera773bd52006-08-04 18:18:08 +000017410 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017411fi
Reid Spencera773bd52006-08-04 18:18:08 +000017412
Bill Wendlingebcceee2009-04-18 11:20:33 +000017413rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017414 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017415LIBS=$ac_check_lib_save_LIBS
17416fi
Reid Spencera773bd52006-08-04 18:18:08 +000017417{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17418echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017419if test $ac_cv_lib_dld_shl_load = yes; then
17420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17421else
Reid Spencera773bd52006-08-04 18:18:08 +000017422 { echo "$as_me:$LINENO: checking for dlopen" >&5
17423echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017424if test "${ac_cv_func_dlopen+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435#define dlopen innocuous_dlopen
17436
John Criswell7a73b802003-06-30 21:59:07 +000017437/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017438 which can conflict with char dlopen (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441
John Criswell0c38eaf2003-09-10 15:17:25 +000017442#ifdef __STDC__
17443# include <limits.h>
17444#else
17445# include <assert.h>
17446#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017447
17448#undef dlopen
17449
Reid Spencera773bd52006-08-04 18:18:08 +000017450/* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017453#ifdef __cplusplus
17454extern "C"
17455#endif
John Criswell7a73b802003-06-30 21:59:07 +000017456char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017457/* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017460#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017461choke me
John Criswell7a73b802003-06-30 21:59:07 +000017462#endif
17463
John Criswell0c38eaf2003-09-10 15:17:25 +000017464int
17465main ()
17466{
Reid Spencera773bd52006-08-04 18:18:08 +000017467return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500esac
17501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017506 ac_cv_func_dlopen=yes
17507else
17508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017509sed 's/^/| /' conftest.$ac_ext >&5
17510
Reid Spencera773bd52006-08-04 18:18:08 +000017511 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017512fi
Reid Spencera773bd52006-08-04 18:18:08 +000017513
Bill Wendlingebcceee2009-04-18 11:20:33 +000017514rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017515 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017516fi
Reid Spencera773bd52006-08-04 18:18:08 +000017517{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17518echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017519if test $ac_cv_func_dlopen = yes; then
17520 lt_cv_dlopen="dlopen"
17521else
Reid Spencera773bd52006-08-04 18:18:08 +000017522 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17523echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017524if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526else
17527 ac_check_lib_save_LIBS=$LIBS
17528LIBS="-ldl $LIBS"
17529cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017535
Reid Spencera773bd52006-08-04 18:18:08 +000017536/* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017539#ifdef __cplusplus
17540extern "C"
17541#endif
John Criswell7a73b802003-06-30 21:59:07 +000017542char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017543int
17544main ()
17545{
Reid Spencera773bd52006-08-04 18:18:08 +000017546return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017552if { (ac_try="$ac_link"
17553case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017559 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017585 ac_cv_lib_dl_dlopen=yes
17586else
17587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017588sed 's/^/| /' conftest.$ac_ext >&5
17589
Reid Spencera773bd52006-08-04 18:18:08 +000017590 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017591fi
Reid Spencera773bd52006-08-04 18:18:08 +000017592
Bill Wendlingebcceee2009-04-18 11:20:33 +000017593rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017594 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017595LIBS=$ac_check_lib_save_LIBS
17596fi
Reid Spencera773bd52006-08-04 18:18:08 +000017597{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017599if test $ac_cv_lib_dl_dlopen = yes; then
17600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601else
Reid Spencera773bd52006-08-04 18:18:08 +000017602 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17603echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017604if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607 ac_check_lib_save_LIBS=$LIBS
17608LIBS="-lsvld $LIBS"
17609cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017610/* confdefs.h. */
17611_ACEOF
17612cat confdefs.h >>conftest.$ac_ext
17613cat >>conftest.$ac_ext <<_ACEOF
17614/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017615
Reid Spencera773bd52006-08-04 18:18:08 +000017616/* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017619#ifdef __cplusplus
17620extern "C"
17621#endif
John Criswell7a73b802003-06-30 21:59:07 +000017622char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017623int
17624main ()
17625{
Reid Spencera773bd52006-08-04 18:18:08 +000017626return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017632if { (ac_try="$ac_link"
17633case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017665 ac_cv_lib_svld_dlopen=yes
17666else
17667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017668sed 's/^/| /' conftest.$ac_ext >&5
17669
Reid Spencera773bd52006-08-04 18:18:08 +000017670 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017671fi
Reid Spencera773bd52006-08-04 18:18:08 +000017672
Bill Wendlingebcceee2009-04-18 11:20:33 +000017673rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017674 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017675LIBS=$ac_check_lib_save_LIBS
17676fi
Reid Spencera773bd52006-08-04 18:18:08 +000017677{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17678echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017679if test $ac_cv_lib_svld_dlopen = yes; then
17680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17681else
Reid Spencera773bd52006-08-04 18:18:08 +000017682 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17683echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017684if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17686else
17687 ac_check_lib_save_LIBS=$LIBS
17688LIBS="-ldld $LIBS"
17689cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017695
Reid Spencera773bd52006-08-04 18:18:08 +000017696/* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017699#ifdef __cplusplus
17700extern "C"
17701#endif
John Criswell7a73b802003-06-30 21:59:07 +000017702char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017703int
17704main ()
17705{
Reid Spencera773bd52006-08-04 18:18:08 +000017706return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017707 ;
17708 return 0;
17709}
17710_ACEOF
17711rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017712if { (ac_try="$ac_link"
17713case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017719 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017745 ac_cv_lib_dld_dld_link=yes
17746else
17747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017748sed 's/^/| /' conftest.$ac_ext >&5
17749
Reid Spencera773bd52006-08-04 18:18:08 +000017750 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017751fi
Reid Spencera773bd52006-08-04 18:18:08 +000017752
Bill Wendlingebcceee2009-04-18 11:20:33 +000017753rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017754 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017755LIBS=$ac_check_lib_save_LIBS
17756fi
Reid Spencera773bd52006-08-04 18:18:08 +000017757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17758echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017759if test $ac_cv_lib_dld_dld_link = yes; then
17760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17761fi
17762
17763
17764fi
17765
17766
17767fi
17768
17769
17770fi
17771
17772
17773fi
17774
17775
17776fi
17777
17778 ;;
17779 esac
17780
17781 if test "x$lt_cv_dlopen" != xno; then
17782 enable_dlopen=yes
17783 else
17784 enable_dlopen=no
17785 fi
17786
17787 case $lt_cv_dlopen in
17788 dlopen)
17789 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017791
17792 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017794
17795 save_LIBS="$LIBS"
17796 LIBS="$lt_cv_dlopen_libs $LIBS"
17797
Reid Spencera773bd52006-08-04 18:18:08 +000017798 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17799echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017800if test "${lt_cv_dlopen_self+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802else
17803 if test "$cross_compiling" = yes; then :
17804 lt_cv_dlopen_self=cross
17805else
John Criswell47fdd832003-07-14 16:52:07 +000017806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017807 lt_status=$lt_dlunknown
17808 cat > conftest.$ac_ext <<EOF
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000017809#line 17809 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017810#include "confdefs.h"
17811
17812#if HAVE_DLFCN_H
17813#include <dlfcn.h>
17814#endif
17815
17816#include <stdio.h>
17817
17818#ifdef RTLD_GLOBAL
17819# define LT_DLGLOBAL RTLD_GLOBAL
17820#else
17821# ifdef DL_GLOBAL
17822# define LT_DLGLOBAL DL_GLOBAL
17823# else
17824# define LT_DLGLOBAL 0
17825# endif
17826#endif
17827
17828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17829 find out it does not work in some platform. */
17830#ifndef LT_DLLAZY_OR_NOW
17831# ifdef RTLD_LAZY
17832# define LT_DLLAZY_OR_NOW RTLD_LAZY
17833# else
17834# ifdef DL_LAZY
17835# define LT_DLLAZY_OR_NOW DL_LAZY
17836# else
17837# ifdef RTLD_NOW
17838# define LT_DLLAZY_OR_NOW RTLD_NOW
17839# else
17840# ifdef DL_NOW
17841# define LT_DLLAZY_OR_NOW DL_NOW
17842# else
17843# define LT_DLLAZY_OR_NOW 0
17844# endif
17845# endif
17846# endif
17847# endif
17848#endif
17849
17850#ifdef __cplusplus
17851extern "C" void exit (int);
17852#endif
17853
17854void fnord() { int i=42;}
17855int main ()
17856{
17857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17858 int status = $lt_dlunknown;
17859
17860 if (self)
17861 {
17862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17864 /* dlclose (self); */
17865 }
Reid Spencera773bd52006-08-04 18:18:08 +000017866 else
17867 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017868
17869 exit (status);
17870}
17871EOF
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017877 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017878 lt_status=$?
17879 case x$lt_status in
17880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017883 esac
17884 else :
17885 # compilation failed
17886 lt_cv_dlopen_self=no
17887 fi
17888fi
17889rm -fr conftest*
17890
17891
17892fi
Reid Spencera773bd52006-08-04 18:18:08 +000017893{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17894echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017895
17896 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17898 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17899echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017900if test "${lt_cv_dlopen_self_static+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 if test "$cross_compiling" = yes; then :
17904 lt_cv_dlopen_self_static=cross
17905else
John Criswell47fdd832003-07-14 16:52:07 +000017906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017907 lt_status=$lt_dlunknown
17908 cat > conftest.$ac_ext <<EOF
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000017909#line 17909 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017910#include "confdefs.h"
17911
17912#if HAVE_DLFCN_H
17913#include <dlfcn.h>
17914#endif
17915
17916#include <stdio.h>
17917
17918#ifdef RTLD_GLOBAL
17919# define LT_DLGLOBAL RTLD_GLOBAL
17920#else
17921# ifdef DL_GLOBAL
17922# define LT_DLGLOBAL DL_GLOBAL
17923# else
17924# define LT_DLGLOBAL 0
17925# endif
17926#endif
17927
17928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17929 find out it does not work in some platform. */
17930#ifndef LT_DLLAZY_OR_NOW
17931# ifdef RTLD_LAZY
17932# define LT_DLLAZY_OR_NOW RTLD_LAZY
17933# else
17934# ifdef DL_LAZY
17935# define LT_DLLAZY_OR_NOW DL_LAZY
17936# else
17937# ifdef RTLD_NOW
17938# define LT_DLLAZY_OR_NOW RTLD_NOW
17939# else
17940# ifdef DL_NOW
17941# define LT_DLLAZY_OR_NOW DL_NOW
17942# else
17943# define LT_DLLAZY_OR_NOW 0
17944# endif
17945# endif
17946# endif
17947# endif
17948#endif
17949
17950#ifdef __cplusplus
17951extern "C" void exit (int);
17952#endif
17953
17954void fnord() { int i=42;}
17955int main ()
17956{
17957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17958 int status = $lt_dlunknown;
17959
17960 if (self)
17961 {
17962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17963 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17964 /* dlclose (self); */
17965 }
Reid Spencera773bd52006-08-04 18:18:08 +000017966 else
17967 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017968
17969 exit (status);
17970}
17971EOF
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017977 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017978 lt_status=$?
17979 case x$lt_status in
17980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017982 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017983 esac
17984 else :
17985 # compilation failed
17986 lt_cv_dlopen_self_static=no
17987 fi
17988fi
17989rm -fr conftest*
17990
17991
17992fi
Reid Spencera773bd52006-08-04 18:18:08 +000017993{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17994echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017995 fi
17996
17997 CPPFLAGS="$save_CPPFLAGS"
17998 LDFLAGS="$save_LDFLAGS"
17999 LIBS="$save_LIBS"
18000 ;;
18001 esac
18002
18003 case $lt_cv_dlopen_self in
18004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18005 *) enable_dlopen_self=unknown ;;
18006 esac
18007
18008 case $lt_cv_dlopen_self_static in
18009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18010 *) enable_dlopen_self_static=unknown ;;
18011 esac
18012fi
18013
18014
Reid Spencera773bd52006-08-04 18:18:08 +000018015# Report which library types will actually be built
18016{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18017echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18018{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
18019echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000018020
Reid Spencera773bd52006-08-04 18:18:08 +000018021{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18022echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018023test "$can_build_shared" = "no" && enable_shared=no
18024
18025# On AIX, shared libraries and static libraries use the same namespace, and
18026# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000018027case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000018028aix3*)
18029 test "$enable_shared" = yes && enable_static=no
18030 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018032 postinstall_cmds='$RANLIB $lib'
18033 fi
18034 ;;
18035
Reid Spencer2706f8c2004-09-19 23:53:36 +000018036aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18038 test "$enable_shared" = yes && enable_static=no
18039 fi
John Criswell7a73b802003-06-30 21:59:07 +000018040 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018041esac
Reid Spencera773bd52006-08-04 18:18:08 +000018042{ echo "$as_me:$LINENO: result: $enable_shared" >&5
18043echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000018044
Reid Spencera773bd52006-08-04 18:18:08 +000018045{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18046echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018047# Make sure either enable_shared or enable_static is yes.
18048test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018049{ echo "$as_me:$LINENO: result: $enable_static" >&5
18050echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018051
18052# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000018053# libtool distribution, otherwise you forgot to ship ltmain.sh
18054# with your package, and you will get complaints that there are
18055# no rules to generate ltmain.sh.
18056if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000018057 # See if we are running on zsh, and set the options which allow our commands through
18058 # without removal of \ escapes.
18059 if test -n "${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18061 fi
John Criswell7a73b802003-06-30 21:59:07 +000018062 # Now quote all the things that may contain metacharacters while being
18063 # careful not to overquote the AC_SUBSTed values. We take copies of the
18064 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000018065 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 +000018066 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018067 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18068 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18069 deplibs_check_method reload_flag reload_cmds need_locks \
18070 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18071 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000018072 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000018073 old_postinstall_cmds old_postuninstall_cmds \
18074 compiler \
18075 CC \
18076 LD \
18077 lt_prog_compiler_wl \
18078 lt_prog_compiler_pic \
18079 lt_prog_compiler_static \
18080 lt_prog_compiler_no_builtin_flag \
18081 export_dynamic_flag_spec \
18082 thread_safe_flag_spec \
18083 whole_archive_flag_spec \
18084 enable_shared_with_static_runtimes \
18085 old_archive_cmds \
18086 old_archive_from_new_cmds \
18087 predep_objects \
18088 postdep_objects \
18089 predeps \
18090 postdeps \
18091 compiler_lib_search_path \
18092 archive_cmds \
18093 archive_expsym_cmds \
18094 postinstall_cmds \
18095 postuninstall_cmds \
18096 old_archive_from_expsyms_cmds \
18097 allow_undefined_flag \
18098 no_undefined_flag \
18099 export_symbols_cmds \
18100 hardcode_libdir_flag_spec \
18101 hardcode_libdir_flag_spec_ld \
18102 hardcode_libdir_separator \
18103 hardcode_automatic \
18104 module_cmds \
18105 module_expsym_cmds \
18106 lt_cv_prog_compiler_c_o \
18107 exclude_expsyms \
18108 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000018109
18110 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000018111 old_archive_cmds | \
18112 old_archive_from_new_cmds | \
18113 archive_cmds | \
18114 archive_expsym_cmds | \
18115 module_cmds | \
18116 module_expsym_cmds | \
18117 old_archive_from_expsyms_cmds | \
18118 export_symbols_cmds | \
18119 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018120 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018121 old_postinstall_cmds | old_postuninstall_cmds | \
18122 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018123 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018124 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 +000018125 ;;
18126 *)
18127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18128 ;;
18129 esac
18130 done
18131
John Criswell47fdd832003-07-14 16:52:07 +000018132 case $lt_echo in
18133 *'\$0 --fallback-echo"')
18134 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18135 ;;
18136 esac
18137
18138cfgfile="${ofile}T"
18139 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18140 $rm -f "$cfgfile"
18141 { echo "$as_me:$LINENO: creating $ofile" >&5
18142echo "$as_me: creating $ofile" >&6;}
18143
18144 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018145#! $SHELL
18146
John Criswell47fdd832003-07-14 16:52:07 +000018147# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018148# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18149# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18150#
John Criswell47fdd832003-07-14 16:52:07 +000018151# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18152# Free Software Foundation, Inc.
18153#
18154# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018155# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18156#
18157# This program is free software; you can redistribute it and/or modify
18158# it under the terms of the GNU General Public License as published by
18159# the Free Software Foundation; either version 2 of the License, or
18160# (at your option) any later version.
18161#
18162# This program is distributed in the hope that it will be useful, but
18163# WITHOUT ANY WARRANTY; without even the implied warranty of
18164# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18165# General Public License for more details.
18166#
18167# You should have received a copy of the GNU General Public License
18168# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018169# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018170#
18171# As a special exception to the GNU General Public License, if you
18172# distribute this file as part of a program that contains a
18173# configuration script generated by Autoconf, you may include it under
18174# the same distribution terms that you use for the rest of that program.
18175
John Criswell47fdd832003-07-14 16:52:07 +000018176# A sed program that does not truncate output.
18177SED=$lt_SED
18178
John Criswell7a73b802003-06-30 21:59:07 +000018179# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018180Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018181
18182# The HP-UX ksh and POSIX shell print the target directory to stdout
18183# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018185
John Criswell47fdd832003-07-14 16:52:07 +000018186# The names of the tagged configurations supported by this script.
18187available_tags=
18188
John Criswell7a73b802003-06-30 21:59:07 +000018189# ### BEGIN LIBTOOL CONFIG
18190
18191# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18192
18193# Shell to use when invoking shell scripts.
18194SHELL=$lt_SHELL
18195
18196# Whether or not to build shared libraries.
18197build_libtool_libs=$enable_shared
18198
18199# Whether or not to build static libraries.
18200build_old_libs=$enable_static
18201
18202# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018203build_libtool_need_lc=$archive_cmds_need_lc
18204
18205# Whether or not to disallow shared libs when runtime libs are static
18206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018207
18208# Whether or not to optimize for fast installation.
18209fast_install=$enable_fast_install
18210
18211# The host system.
18212host_alias=$host_alias
18213host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018214host_os=$host_os
18215
18216# The build system.
18217build_alias=$build_alias
18218build=$build
18219build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018220
18221# An echo program that does not interpret backslashes.
18222echo=$lt_echo
18223
18224# The archiver.
18225AR=$lt_AR
18226AR_FLAGS=$lt_AR_FLAGS
18227
John Criswell47fdd832003-07-14 16:52:07 +000018228# A C compiler.
18229LTCC=$lt_LTCC
18230
Reid Spencera773bd52006-08-04 18:18:08 +000018231# LTCC compiler flags.
18232LTCFLAGS=$lt_LTCFLAGS
18233
John Criswell47fdd832003-07-14 16:52:07 +000018234# A language-specific compiler.
18235CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018236
18237# Is the compiler the GNU C compiler?
18238with_gcc=$GCC
18239
John Criswell47fdd832003-07-14 16:52:07 +000018240# An ERE matcher.
18241EGREP=$lt_EGREP
18242
John Criswell7a73b802003-06-30 21:59:07 +000018243# The linker used to build libraries.
18244LD=$lt_LD
18245
18246# Whether we need hard or soft links.
18247LN_S=$lt_LN_S
18248
18249# A BSD-compatible nm program.
18250NM=$lt_NM
18251
18252# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018253STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018254
18255# Used to examine libraries when file_magic_cmd begins "file"
18256MAGIC_CMD=$MAGIC_CMD
18257
18258# Used on cygwin: DLL creation program.
18259DLLTOOL="$DLLTOOL"
18260
18261# Used on cygwin: object dumper.
18262OBJDUMP="$OBJDUMP"
18263
18264# Used on cygwin: assembler.
18265AS="$AS"
18266
18267# The name of the directory that contains temporary libtool files.
18268objdir=$objdir
18269
18270# How to create reloadable object files.
18271reload_flag=$lt_reload_flag
18272reload_cmds=$lt_reload_cmds
18273
18274# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018275wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018276
18277# Object file suffix (normally "o").
18278objext="$ac_objext"
18279
18280# Old archive suffix (normally "a").
18281libext="$libext"
18282
John Criswell47fdd832003-07-14 16:52:07 +000018283# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018284shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018285
John Criswell7a73b802003-06-30 21:59:07 +000018286# Executable file suffix (normally "").
18287exeext="$exeext"
18288
18289# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018290pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018291pic_mode=$pic_mode
18292
John Criswell47fdd832003-07-14 16:52:07 +000018293# What is the maximum length of a command?
18294max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018295
John Criswell47fdd832003-07-14 16:52:07 +000018296# Does compiler simultaneously support -c and -o options?
18297compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018298
Reid Spencera773bd52006-08-04 18:18:08 +000018299# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018300need_locks=$lt_need_locks
18301
18302# Do we need the lib prefix for modules?
18303need_lib_prefix=$need_lib_prefix
18304
18305# Do we need a version for libraries?
18306need_version=$need_version
18307
18308# Whether dlopen is supported.
18309dlopen_support=$enable_dlopen
18310
18311# Whether dlopen of programs is supported.
18312dlopen_self=$enable_dlopen_self
18313
18314# Whether dlopen of statically linked programs is supported.
18315dlopen_self_static=$enable_dlopen_self_static
18316
18317# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018318link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018319
18320# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018322
18323# Compiler flag to allow reflexive dlopens.
18324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18325
18326# Compiler flag to generate shared objects directly from archives.
18327whole_archive_flag_spec=$lt_whole_archive_flag_spec
18328
18329# Compiler flag to generate thread-safe objects.
18330thread_safe_flag_spec=$lt_thread_safe_flag_spec
18331
18332# Library versioning type.
18333version_type=$version_type
18334
18335# Format of library name prefix.
18336libname_spec=$lt_libname_spec
18337
18338# List of archive names. First name is the real one, the rest are links.
18339# The last name is the one that the linker finds with -lNAME.
18340library_names_spec=$lt_library_names_spec
18341
18342# The coded name of the library, if different from the real name.
18343soname_spec=$lt_soname_spec
18344
18345# Commands used to build and install an old-style archive.
18346RANLIB=$lt_RANLIB
18347old_archive_cmds=$lt_old_archive_cmds
18348old_postinstall_cmds=$lt_old_postinstall_cmds
18349old_postuninstall_cmds=$lt_old_postuninstall_cmds
18350
18351# Create an old-style archive from a shared archive.
18352old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18353
18354# Create a temporary old-style archive to link instead of a shared archive.
18355old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18356
18357# Commands used to build and install a shared archive.
18358archive_cmds=$lt_archive_cmds
18359archive_expsym_cmds=$lt_archive_expsym_cmds
18360postinstall_cmds=$lt_postinstall_cmds
18361postuninstall_cmds=$lt_postuninstall_cmds
18362
John Criswell47fdd832003-07-14 16:52:07 +000018363# Commands used to build a loadable module (assumed same as above if empty)
18364module_cmds=$lt_module_cmds
18365module_expsym_cmds=$lt_module_expsym_cmds
18366
John Criswell7a73b802003-06-30 21:59:07 +000018367# Commands to strip libraries.
18368old_striplib=$lt_old_striplib
18369striplib=$lt_striplib
18370
John Criswell47fdd832003-07-14 16:52:07 +000018371# Dependencies to place before the objects being linked to create a
18372# shared library.
18373predep_objects=$lt_predep_objects
18374
18375# Dependencies to place after the objects being linked to create a
18376# shared library.
18377postdep_objects=$lt_postdep_objects
18378
18379# Dependencies to place before the objects being linked to create a
18380# shared library.
18381predeps=$lt_predeps
18382
18383# Dependencies to place after the objects being linked to create a
18384# shared library.
18385postdeps=$lt_postdeps
18386
18387# The library search path used internally by the compiler when linking
18388# a shared library.
18389compiler_lib_search_path=$lt_compiler_lib_search_path
18390
John Criswell7a73b802003-06-30 21:59:07 +000018391# Method to check whether dependent libraries are shared objects.
18392deplibs_check_method=$lt_deplibs_check_method
18393
18394# Command to use when deplibs_check_method == file_magic.
18395file_magic_cmd=$lt_file_magic_cmd
18396
18397# Flag that allows shared libraries with undefined symbols to be built.
18398allow_undefined_flag=$lt_allow_undefined_flag
18399
18400# Flag that forces no undefined symbols.
18401no_undefined_flag=$lt_no_undefined_flag
18402
18403# Commands used to finish a libtool library installation in a directory.
18404finish_cmds=$lt_finish_cmds
18405
18406# Same as above, but a single script fragment to be evaled but not shown.
18407finish_eval=$lt_finish_eval
18408
18409# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018411
18412# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018414
18415# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018417
18418# This is the shared library runtime path variable.
18419runpath_var=$runpath_var
18420
18421# This is the shared library path variable.
18422shlibpath_var=$shlibpath_var
18423
18424# Is shlibpath searched before the hard-coded library search path?
18425shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18426
18427# How to hardcode a shared library path into an executable.
18428hardcode_action=$hardcode_action
18429
18430# Whether we should hardcode library paths into libraries.
18431hardcode_into_libs=$hardcode_into_libs
18432
18433# Flag to hardcode \$libdir into a binary during linking.
18434# This must work even if \$libdir does not exist.
18435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18436
John Criswell47fdd832003-07-14 16:52:07 +000018437# If ld is used when linking, flag to hardcode \$libdir into
18438# a binary during linking. This must work even if \$libdir does
18439# not exist.
18440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18441
John Criswell7a73b802003-06-30 21:59:07 +000018442# Whether we need a single -rpath flag with a separated argument.
18443hardcode_libdir_separator=$lt_hardcode_libdir_separator
18444
John Criswell47fdd832003-07-14 16:52:07 +000018445# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018446# resulting binary.
18447hardcode_direct=$hardcode_direct
18448
18449# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18450# resulting binary.
18451hardcode_minus_L=$hardcode_minus_L
18452
18453# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18454# the resulting binary.
18455hardcode_shlibpath_var=$hardcode_shlibpath_var
18456
John Criswell47fdd832003-07-14 16:52:07 +000018457# Set to yes if building a shared library automatically hardcodes DIR into the library
18458# and all subsequent libraries and executables linked against it.
18459hardcode_automatic=$hardcode_automatic
18460
John Criswell7a73b802003-06-30 21:59:07 +000018461# Variables whose values should be saved in libtool wrapper scripts and
18462# restored at relink time.
18463variables_saved_for_relink="$variables_saved_for_relink"
18464
18465# Whether libtool must link a program against all its dependency libraries.
18466link_all_deplibs=$link_all_deplibs
18467
18468# Compile-time system search path for libraries
18469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18470
18471# Run-time system search path for libraries
18472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18473
18474# Fix the shell variable \$srcfile for the compiler.
18475fix_srcfile_path="$fix_srcfile_path"
18476
18477# Set to yes if exported symbols are required.
18478always_export_symbols=$always_export_symbols
18479
18480# The commands to list exported symbols.
18481export_symbols_cmds=$lt_export_symbols_cmds
18482
18483# The commands to extract the exported symbol list from a shared archive.
18484extract_expsyms_cmds=$lt_extract_expsyms_cmds
18485
18486# Symbols that should not be listed in the preloaded symbols.
18487exclude_expsyms=$lt_exclude_expsyms
18488
18489# Symbols that must always be exported.
18490include_expsyms=$lt_include_expsyms
18491
18492# ### END LIBTOOL CONFIG
18493
18494__EOF__
18495
John Criswell47fdd832003-07-14 16:52:07 +000018496
John Criswell7a73b802003-06-30 21:59:07 +000018497 case $host_os in
18498 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018499 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018500
18501# AIX sometimes has problems with the GCC collect2 program. For some
18502# reason, if we set the COLLECT_NAMES environment variable, the problems
18503# vanish in a puff of smoke.
18504if test "X${COLLECT_NAMES+set}" != Xset; then
18505 COLLECT_NAMES=
18506 export COLLECT_NAMES
18507fi
18508EOF
18509 ;;
18510 esac
18511
John Criswell7a73b802003-06-30 21:59:07 +000018512 # We use sed instead of cat because bash on DJGPP gets confused if
18513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18514 # text mode, it properly converts lines to CR/LF. This bash problem
18515 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018516 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018517
John Criswell47fdd832003-07-14 16:52:07 +000018518 mv -f "$cfgfile" "$ofile" || \
18519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018520 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018521
18522else
18523 # If there is no Makefile yet, we rely on a make rule to execute
18524 # `config.status --recheck' to rerun these tests and create the
18525 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18527 if test -f "$ltmain_in"; then
18528 test -f Makefile && make "$ltmain"
18529 fi
John Criswell7a73b802003-06-30 21:59:07 +000018530fi
John Criswell7a73b802003-06-30 21:59:07 +000018531
18532
John Criswell47fdd832003-07-14 16:52:07 +000018533ac_ext=c
18534ac_cpp='$CPP $CPPFLAGS'
18535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538
18539CC="$lt_save_CC"
18540
18541
Reid Spencera773bd52006-08-04 18:18:08 +000018542# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018543if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018544 withval=$with_tags; tagnames="$withval"
18545fi
18546
John Criswell47fdd832003-07-14 16:52:07 +000018547
18548if test -f "$ltmain" && test -n "$tagnames"; then
18549 if test ! -f "${ofile}"; then
18550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18551echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18552 fi
18553
18554 if test -z "$LTCC"; then
18555 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18556 if test -z "$LTCC"; then
18557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18558echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18559 else
18560 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18561echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18562 fi
18563 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018564 if test -z "$LTCFLAGS"; then
18565 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18566 fi
John Criswell47fdd832003-07-14 16:52:07 +000018567
18568 # Extract list of available tagged configurations in $ofile.
18569 # Note that this assumes the entire list is on one line.
18570 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18571
18572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18573 for tagname in $tagnames; do
18574 IFS="$lt_save_ifs"
18575 # Check whether tagname contains only valid characters
18576 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18577 "") ;;
18578 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18579echo "$as_me: error: invalid tag name: $tagname" >&2;}
18580 { (exit 1); exit 1; }; }
18581 ;;
18582 esac
18583
18584 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18585 then
18586 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18587echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18588 { (exit 1); exit 1; }; }
18589 fi
18590
18591 # Update the list of available tags.
18592 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018593 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018594
18595 case $tagname in
18596 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018597 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18598 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18599 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018600 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018601ac_cpp='$CXXCPP $CPPFLAGS'
18602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18605
18606
18607
18608
18609archive_cmds_need_lc_CXX=no
18610allow_undefined_flag_CXX=
18611always_export_symbols_CXX=no
18612archive_expsym_cmds_CXX=
18613export_dynamic_flag_spec_CXX=
18614hardcode_direct_CXX=no
18615hardcode_libdir_flag_spec_CXX=
18616hardcode_libdir_flag_spec_ld_CXX=
18617hardcode_libdir_separator_CXX=
18618hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018619hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018620hardcode_automatic_CXX=no
18621module_cmds_CXX=
18622module_expsym_cmds_CXX=
18623link_all_deplibs_CXX=unknown
18624old_archive_cmds_CXX=$old_archive_cmds
18625no_undefined_flag_CXX=
18626whole_archive_flag_spec_CXX=
18627enable_shared_with_static_runtimes_CXX=no
18628
18629# Dependencies to place before and after the object being linked:
18630predep_objects_CXX=
18631postdep_objects_CXX=
18632predeps_CXX=
18633postdeps_CXX=
18634compiler_lib_search_path_CXX=
18635
18636# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018637ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018638
18639# Object file extension for compiled C++ test sources.
18640objext=o
18641objext_CXX=$objext
18642
18643# Code to be used in simple compile tests
18644lt_simple_compile_test_code="int some_variable = 0;\n"
18645
18646# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018647lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018648
18649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18650
18651# If no C compiler was specified, use CC.
18652LTCC=${LTCC-"$CC"}
18653
Reid Spencera773bd52006-08-04 18:18:08 +000018654# If no C compiler flags were specified, use CFLAGS.
18655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18656
John Criswell47fdd832003-07-14 16:52:07 +000018657# Allow CC to be a program name with arguments.
18658compiler=$CC
18659
18660
Reid Spencera773bd52006-08-04 18:18:08 +000018661# save warnings/boilerplate of simple test code
18662ac_outfile=conftest.$ac_objext
18663printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665_lt_compiler_boilerplate=`cat conftest.err`
18666$rm conftest*
18667
18668ac_outfile=conftest.$ac_objext
18669printf "$lt_simple_link_test_code" >conftest.$ac_ext
18670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671_lt_linker_boilerplate=`cat conftest.err`
18672$rm conftest*
18673
18674
John Criswell47fdd832003-07-14 16:52:07 +000018675# Allow CC to be a program name with arguments.
18676lt_save_CC=$CC
18677lt_save_LD=$LD
18678lt_save_GCC=$GCC
18679GCC=$GXX
18680lt_save_with_gnu_ld=$with_gnu_ld
18681lt_save_path_LD=$lt_cv_path_LD
18682if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18683 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18684else
Reid Spencera773bd52006-08-04 18:18:08 +000018685 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018686fi
18687if test -n "${lt_cv_path_LDCXX+set}"; then
18688 lt_cv_path_LD=$lt_cv_path_LDCXX
18689else
Reid Spencera773bd52006-08-04 18:18:08 +000018690 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018691fi
18692test -z "${LDCXX+set}" || LD=$LDCXX
18693CC=${CXX-"c++"}
18694compiler=$CC
18695compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018696for cc_temp in $compiler""; do
18697 case $cc_temp in
18698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18700 \-*) ;;
18701 *) break;;
18702 esac
18703done
18704cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18705
John Criswell47fdd832003-07-14 16:52:07 +000018706
18707# We don't want -fno-exception wen compiling C++ code, so set the
18708# no_builtin_flag separately
18709if test "$GXX" = yes; then
18710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18711else
18712 lt_prog_compiler_no_builtin_flag_CXX=
18713fi
18714
18715if test "$GXX" = yes; then
18716 # Set up default GNU C++ configuration
18717
18718
Reid Spencera773bd52006-08-04 18:18:08 +000018719# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018720if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018722else
18723 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018724fi
18725
John Criswell47fdd832003-07-14 16:52:07 +000018726ac_prog=ld
18727if test "$GCC" = yes; then
18728 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018729 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18730echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018731 case $host in
18732 *-*-mingw*)
18733 # gcc leaves a trailing carriage return which upsets mingw
18734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18735 *)
18736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18737 esac
18738 case $ac_prog in
18739 # Accept absolute paths.
18740 [\\/]* | ?:[\\/]*)
18741 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018742 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18746 done
18747 test -z "$LD" && LD="$ac_prog"
18748 ;;
18749 "")
18750 # If it fails, then pretend we aren't using GCC.
18751 ac_prog=ld
18752 ;;
18753 *)
18754 # If it is relative, then search for the first ld in PATH.
18755 with_gnu_ld=unknown
18756 ;;
18757 esac
18758elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018759 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18760echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018761else
Reid Spencera773bd52006-08-04 18:18:08 +000018762 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18763echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018764fi
18765if test "${lt_cv_path_LD+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768 if test -z "$LD"; then
18769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18770 for ac_dir in $PATH; do
18771 IFS="$lt_save_ifs"
18772 test -z "$ac_dir" && ac_dir=.
18773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18774 lt_cv_path_LD="$ac_dir/$ac_prog"
18775 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018776 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018777 # Break only if it was the GNU/non-GNU ld that we prefer.
18778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18779 *GNU* | *'with BFD'*)
18780 test "$with_gnu_ld" != no && break
18781 ;;
18782 *)
18783 test "$with_gnu_ld" != yes && break
18784 ;;
18785 esac
18786 fi
18787 done
18788 IFS="$lt_save_ifs"
18789else
18790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18791fi
18792fi
18793
18794LD="$lt_cv_path_LD"
18795if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018796 { echo "$as_me:$LINENO: result: $LD" >&5
18797echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018798else
Reid Spencera773bd52006-08-04 18:18:08 +000018799 { echo "$as_me:$LINENO: result: no" >&5
18800echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018801fi
18802test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18803echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18804 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018805{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18806echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018807if test "${lt_cv_prog_gnu_ld+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
Reid Spencera773bd52006-08-04 18:18:08 +000018810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018811case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018812*GNU* | *'with BFD'*)
18813 lt_cv_prog_gnu_ld=yes
18814 ;;
18815*)
18816 lt_cv_prog_gnu_ld=no
18817 ;;
18818esac
18819fi
Reid Spencera773bd52006-08-04 18:18:08 +000018820{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18821echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018822with_gnu_ld=$lt_cv_prog_gnu_ld
18823
18824
18825
18826 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18827 # archiving commands below assume that GNU ld is being used.
18828 if test "$with_gnu_ld" = yes; then
18829 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18830 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'
18831
18832 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18834
18835 # If archive_cmds runs LD, not CC, wlarc should be empty
18836 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18837 # investigate it a little bit more. (MM)
18838 wlarc='${wl}'
18839
18840 # ancient GNU ld didn't support --whole-archive et. al.
18841 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18842 grep 'no-whole-archive' > /dev/null; then
18843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18844 else
18845 whole_archive_flag_spec_CXX=
18846 fi
18847 else
18848 with_gnu_ld=no
18849 wlarc=
18850
18851 # A generic and very simple default shared library creation
18852 # command for GNU C++ for the case where it uses the native
18853 # linker, instead of GNU ld. If possible, this setting should
18854 # overridden to take advantage of the native linker features on
18855 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018856 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018857 fi
18858
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18863
18864else
18865 GXX=no
18866 with_gnu_ld=no
18867 wlarc=
18868fi
18869
18870# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018871{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18872echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018873ld_shlibs_CXX=yes
18874case $host_os in
18875 aix3*)
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18878 ;;
18879 aix4* | aix5*)
18880 if test "$host_cpu" = ia64; then
18881 # On IA64, the linker does run time linking by default, so we don't
18882 # have to do anything special.
18883 aix_use_runtimelinking=no
18884 exp_sym_flag='-Bexport'
18885 no_entry_flag=""
18886 else
18887 aix_use_runtimelinking=no
18888
18889 # Test if we are trying to use run time linking or normal
18890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18891 # need to do runtime linking.
18892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18893 for ld_flag in $LDFLAGS; do
18894 case $ld_flag in
18895 *-brtl*)
18896 aix_use_runtimelinking=yes
18897 break
18898 ;;
18899 esac
18900 done
Reid Spencera773bd52006-08-04 18:18:08 +000018901 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018902 esac
18903
18904 exp_sym_flag='-bexport'
18905 no_entry_flag='-bnoentry'
18906 fi
18907
18908 # When large executables or shared objects are built, AIX ld can
18909 # have problems creating the table of contents. If linking a library
18910 # or program results in "error TOC overflow" add -mminimal-toc to
18911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18913
18914 archive_cmds_CXX=''
18915 hardcode_direct_CXX=yes
18916 hardcode_libdir_separator_CXX=':'
18917 link_all_deplibs_CXX=yes
18918
18919 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018920 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018921 # We only want to do this on AIX 4.2 and lower, the check
18922 # below for broken collect2 doesn't work under 4.3+
18923 collect2name=`${CC} -print-prog-name=collect2`
18924 if test -f "$collect2name" && \
18925 strings "$collect2name" | grep resolve_lib_name >/dev/null
18926 then
18927 # We have reworked collect2
18928 hardcode_direct_CXX=yes
18929 else
18930 # We have old collect2
18931 hardcode_direct_CXX=unsupported
18932 # It fails to find uninstalled libraries when the uninstalled
18933 # path is not listed in the libpath. Setting hardcode_minus_L
18934 # to unsupported forces relinking
18935 hardcode_minus_L_CXX=yes
18936 hardcode_libdir_flag_spec_CXX='-L$libdir'
18937 hardcode_libdir_separator_CXX=
18938 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018939 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018940 esac
18941 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018942 if test "$aix_use_runtimelinking" = yes; then
18943 shared_flag="$shared_flag "'${wl}-G'
18944 fi
John Criswell47fdd832003-07-14 16:52:07 +000018945 else
18946 # not using gcc
18947 if test "$host_cpu" = ia64; then
18948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18949 # chokes on -Wl,-G. The following line is correct:
18950 shared_flag='-G'
18951 else
18952 if test "$aix_use_runtimelinking" = yes; then
18953 shared_flag='${wl}-G'
18954 else
18955 shared_flag='${wl}-bM:SRE'
18956 fi
18957 fi
18958 fi
18959
18960 # It seems that -bexpall does not export symbols beginning with
18961 # underscore (_), so it is better to generate a list of symbols to export.
18962 always_export_symbols_CXX=yes
18963 if test "$aix_use_runtimelinking" = yes; then
18964 # Warning - without using the other runtime loading flags (-brtl),
18965 # -berok will link without error, but may produce a broken library.
18966 allow_undefined_flag_CXX='-berok'
18967 # Determine the default libpath from the value encoded in an empty executable.
18968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018974
John Criswell47fdd832003-07-14 16:52:07 +000018975int
18976main ()
18977{
18978
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018984if { (ac_try="$ac_link"
18985case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019017
19018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19019}'`
19020# Check for a 64-bit object if we didn't find anything.
19021if 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; }
19022}'`; fi
19023else
19024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019025sed 's/^/| /' conftest.$ac_ext >&5
19026
Reid Spencera773bd52006-08-04 18:18:08 +000019027
John Criswell47fdd832003-07-14 16:52:07 +000019028fi
Reid Spencera773bd52006-08-04 18:18:08 +000019029
Bill Wendlingebcceee2009-04-18 11:20:33 +000019030rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019031 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19033
19034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19035
Reid Spencera773bd52006-08-04 18:18:08 +000019036 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 +000019037 else
19038 if test "$host_cpu" = ia64; then
19039 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19040 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000019041 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 +000019042 else
19043 # Determine the default libpath from the value encoded in an empty executable.
19044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000019050
John Criswell47fdd832003-07-14 16:52:07 +000019051int
19052main ()
19053{
19054
19055 ;
19056 return 0;
19057}
19058_ACEOF
19059rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000019060if { (ac_try="$ac_link"
19061case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19064esac
19065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019067 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000019072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest$ac_exeext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019093
19094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19095}'`
19096# Check for a 64-bit object if we didn't find anything.
19097if 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; }
19098}'`; fi
19099else
19100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019101sed 's/^/| /' conftest.$ac_ext >&5
19102
Reid Spencera773bd52006-08-04 18:18:08 +000019103
John Criswell47fdd832003-07-14 16:52:07 +000019104fi
Reid Spencera773bd52006-08-04 18:18:08 +000019105
Bill Wendlingebcceee2009-04-18 11:20:33 +000019106rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019107 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19109
19110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19111 # Warning - without using the other run time loading flags,
19112 # -berok will link without error, but may produce a broken library.
19113 no_undefined_flag_CXX=' ${wl}-bernotok'
19114 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019115 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019116 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019117 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019118 # This is similar to how AIX traditionally builds its shared libraries.
19119 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 +000019120 fi
19121 fi
19122 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019123
19124 beos*)
19125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19126 allow_undefined_flag_CXX=unsupported
19127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19128 # support --undefined. This deserves some investigation. FIXME
19129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 else
19131 ld_shlibs_CXX=no
19132 fi
19133 ;;
19134
John Criswell47fdd832003-07-14 16:52:07 +000019135 chorus*)
19136 case $cc_basename in
19137 *)
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19140 ;;
19141 esac
19142 ;;
19143
19144 cygwin* | mingw* | pw32*)
19145 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19146 # as there is no search path for DLLs.
19147 hardcode_libdir_flag_spec_CXX='-L$libdir'
19148 allow_undefined_flag_CXX=unsupported
19149 always_export_symbols_CXX=no
19150 enable_shared_with_static_runtimes_CXX=yes
19151
19152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019153 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 +000019154 # If the export-symbols file already is a .def file (1st line
19155 # is EXPORTS), use it as is; otherwise, prepend...
19156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19157 cp $export_symbols $output_objdir/$soname.def;
19158 else
19159 echo EXPORTS > $output_objdir/$soname.def;
19160 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019161 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019162 $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 +000019163 else
19164 ld_shlibs_CXX=no
19165 fi
19166 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019167 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019168 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019169 rhapsody* | darwin1.[012])
19170 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19171 ;;
19172 *) # Darwin 1.3 on
19173 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19174 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19175 else
19176 case ${MACOSX_DEPLOYMENT_TARGET} in
19177 10.[012])
19178 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19179 ;;
19180 10.*)
19181 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19182 ;;
19183 esac
19184 fi
19185 ;;
19186 esac
19187 archive_cmds_need_lc_CXX=no
19188 hardcode_direct_CXX=no
19189 hardcode_automatic_CXX=yes
19190 hardcode_shlibpath_var_CXX=unsupported
19191 whole_archive_flag_spec_CXX=''
19192 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019193
Reid Spencer2706f8c2004-09-19 23:53:36 +000019194 if test "$GXX" = yes ; then
19195 lt_int_apple_cc_single_mod=no
19196 output_verbose_link_cmd='echo'
19197 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19198 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019199 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019201 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 +000019202 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019203 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 +000019204 fi
19205 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019206 # 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 +000019207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019208 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 +000019209 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019210 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 +000019211 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019212 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 +000019213 else
Reid Spencera773bd52006-08-04 18:18:08 +000019214 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019215 xlc*)
19216 output_verbose_link_cmd='echo'
19217 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'
19218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019219 # 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 +000019220 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}'
19221 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 +000019222 ;;
19223 *)
19224 ld_shlibs_CXX=no
19225 ;;
19226 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019227 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019228 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019229
19230 dgux*)
19231 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019232 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019233 # FIXME: insert proper C++ library support
19234 ld_shlibs_CXX=no
19235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019236 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019237 # Green Hills C++ Compiler
19238 # FIXME: insert proper C++ library support
19239 ld_shlibs_CXX=no
19240 ;;
19241 *)
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 ;;
19245 esac
19246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019247 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019248 # C++ shared libraries reported to be fairly broken before switch to ELF
19249 ld_shlibs_CXX=no
19250 ;;
19251 freebsd-elf*)
19252 archive_cmds_need_lc_CXX=no
19253 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019254 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19256 # conventions
19257 ld_shlibs_CXX=yes
19258 ;;
19259 gnu*)
19260 ;;
19261 hpux9*)
19262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19264 export_dynamic_flag_spec_CXX='${wl}-E'
19265 hardcode_direct_CXX=yes
19266 hardcode_minus_L_CXX=yes # Not in the search PATH,
19267 # but as the default
19268 # location of the library.
19269
19270 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019271 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19274 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019275 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019276 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 +000019277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19280 #
19281 # There doesn't appear to be a way to prevent this compiler from
19282 # explicitly linking system object files so we need to strip them
19283 # from the output so that they don't get included in the library
19284 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019285 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 +000019286 ;;
19287 *)
19288 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019289 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 +000019290 else
19291 # FIXME: insert proper C++ library support
19292 ld_shlibs_CXX=no
19293 fi
19294 ;;
19295 esac
19296 ;;
19297 hpux10*|hpux11*)
19298 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19301
19302 case $host_cpu in
19303 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019304 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019305 ;;
19306 *)
John Criswell47fdd832003-07-14 16:52:07 +000019307 export_dynamic_flag_spec_CXX='${wl}-E'
19308 ;;
19309 esac
19310 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019311 case $host_cpu in
19312 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019313 hardcode_direct_CXX=no
19314 hardcode_shlibpath_var_CXX=no
19315 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019316 *)
19317 hardcode_direct_CXX=yes
19318 hardcode_minus_L_CXX=yes # Not in the search PATH,
19319 # but as the default
19320 # location of the library.
19321 ;;
19322 esac
19323
19324 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019325 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019326 # FIXME: insert proper C++ library support
19327 ld_shlibs_CXX=no
19328 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019329 aCC*)
19330 case $host_cpu in
19331 hppa*64*)
19332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19333 ;;
19334 ia64*)
19335 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 +000019336 ;;
19337 *)
19338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19339 ;;
19340 esac
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19344 #
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19348 # dependencies.
19349 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'
19350 ;;
19351 *)
19352 if test "$GXX" = yes; then
19353 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019354 case $host_cpu in
19355 hppa*64*)
19356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19357 ;;
19358 ia64*)
19359 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 +000019360 ;;
19361 *)
19362 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'
19363 ;;
19364 esac
19365 fi
19366 else
19367 # FIXME: insert proper C++ library support
19368 ld_shlibs_CXX=no
19369 fi
19370 ;;
19371 esac
19372 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019373 interix3*)
19374 hardcode_direct_CXX=no
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377 export_dynamic_flag_spec_CXX='${wl}-E'
19378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19379 # Instead, shared libraries are loaded at an image base (0x10000000 by
19380 # default) and relocated if they conflict, which is a slow very memory
19381 # consuming and fragmenting process. To avoid this, we pick a random,
19382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19384 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'
19385 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'
19386 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019387 irix5* | irix6*)
19388 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019389 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019390 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019391 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 +000019392
19393 # Archives containing C++ object files must be created using
19394 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19395 # necessary to make sure instantiated templates are included
19396 # in the archive.
19397 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19398 ;;
19399 *)
19400 if test "$GXX" = yes; then
19401 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019402 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 +000019403 else
19404 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'
19405 fi
19406 fi
19407 link_all_deplibs_CXX=yes
19408 ;;
19409 esac
19410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19411 hardcode_libdir_separator_CXX=:
19412 ;;
19413 linux*)
19414 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019415 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019416 # Kuck and Associates, Inc. (KAI) C++ Compiler
19417
19418 # KCC will only create a shared library if the output file
19419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19420 # to its proper name (with version) after linking.
19421 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'
19422 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'
19423 # Commands to make compiler produce verbose output that lists
19424 # what "hidden" libraries, object files and flags are used when
19425 # linking a shared library.
19426 #
19427 # There doesn't appear to be a way to prevent this compiler from
19428 # explicitly linking system object files so we need to strip them
19429 # from the output so that they don't get included in the library
19430 # dependencies.
19431 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'
19432
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435
19436 # Archives containing C++ object files must be created using
19437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019440 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019441 # Intel C++
19442 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019443 # version 8.0 and above of icpc choke on multiply defined symbols
19444 # if we add $predep_objects and $postdep_objects, however 7.1 and
19445 # earlier do not add the objects themselves.
19446 case `$CC -V 2>&1` in
19447 *"Version 7."*)
19448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 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'
19450 ;;
19451 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019452 tmp_idyn=
19453 case $host_cpu in
19454 ia64*) tmp_idyn=' -i_dynamic';;
19455 esac
19456 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19457 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 +000019458 ;;
19459 esac
John Criswell47fdd832003-07-14 16:52:07 +000019460 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19463 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19464 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019465 pgCC*)
19466 # Portland Group C++ compiler
19467 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19468 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'
19469
19470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19472 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'
19473 ;;
19474 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019475 # Compaq C++
19476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19477 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'
19478
19479 runpath_var=LD_RUN_PATH
19480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19481 hardcode_libdir_separator_CXX=:
19482
19483 # Commands to make compiler produce verbose output that lists
19484 # what "hidden" libraries, object files and flags are used when
19485 # linking a shared library.
19486 #
19487 # There doesn't appear to be a way to prevent this compiler from
19488 # explicitly linking system object files so we need to strip them
19489 # from the output so that they don't get included in the library
19490 # dependencies.
19491 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'
19492 ;;
19493 esac
19494 ;;
19495 lynxos*)
19496 # FIXME: insert proper C++ library support
19497 ld_shlibs_CXX=no
19498 ;;
19499 m88k*)
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19502 ;;
19503 mvs*)
19504 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019505 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 # FIXME: insert proper C++ library support
19507 ld_shlibs_CXX=no
19508 ;;
19509 *)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19512 ;;
19513 esac
19514 ;;
19515 netbsd*)
19516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19517 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19518 wlarc=
19519 hardcode_libdir_flag_spec_CXX='-R$libdir'
19520 hardcode_direct_CXX=yes
19521 hardcode_shlibpath_var_CXX=no
19522 fi
19523 # Workaround some broken pre-1.5 toolchains
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19525 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019526 openbsd2*)
19527 # C++ shared libraries are fairly broken
19528 ld_shlibs_CXX=no
19529 ;;
19530 openbsd*)
19531 hardcode_direct_CXX=yes
19532 hardcode_shlibpath_var_CXX=no
19533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19537 export_dynamic_flag_spec_CXX='${wl}-E'
19538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19539 fi
19540 output_verbose_link_cmd='echo'
19541 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019542 osf3*)
19543 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019544 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019545 # Kuck and Associates, Inc. (KAI) C++ Compiler
19546
19547 # KCC will only create a shared library if the output file
19548 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19549 # to its proper name (with version) after linking.
19550 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'
19551
19552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19553 hardcode_libdir_separator_CXX=:
19554
19555 # Archives containing C++ object files must be created using
19556 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19557 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19558
19559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019560 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019561 # Rational C++ 2.4.1
19562 # FIXME: insert proper C++ library support
19563 ld_shlibs_CXX=no
19564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019565 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019567 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 +000019568
19569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19570 hardcode_libdir_separator_CXX=:
19571
19572 # Commands to make compiler produce verbose output that lists
19573 # what "hidden" libraries, object files and flags are used when
19574 # linking a shared library.
19575 #
19576 # There doesn't appear to be a way to prevent this compiler from
19577 # explicitly linking system object files so we need to strip them
19578 # from the output so that they don't get included in the library
19579 # dependencies.
19580 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'
19581 ;;
19582 *)
19583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019585 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 +000019586
19587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19588 hardcode_libdir_separator_CXX=:
19589
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19594
19595 else
19596 # FIXME: insert proper C++ library support
19597 ld_shlibs_CXX=no
19598 fi
19599 ;;
19600 esac
19601 ;;
19602 osf4* | osf5*)
19603 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019604 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 # Kuck and Associates, Inc. (KAI) C++ Compiler
19606
19607 # KCC will only create a shared library if the output file
19608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19609 # to its proper name (with version) after linking.
19610 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'
19611
19612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19613 hardcode_libdir_separator_CXX=:
19614
19615 # Archives containing C++ object files must be created using
19616 # the KAI C++ compiler.
19617 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019619 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019620 # Rational C++ 2.4.1
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019624 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019625 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019626 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 +000019627 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19628 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019629 $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 +000019630 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019631
19632 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19633 hardcode_libdir_separator_CXX=:
19634
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19638 #
19639 # There doesn't appear to be a way to prevent this compiler from
19640 # explicitly linking system object files so we need to strip them
19641 # from the output so that they don't get included in the library
19642 # dependencies.
19643 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'
19644 ;;
19645 *)
19646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019648 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 +000019649
19650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX=:
19652
19653 # Commands to make compiler produce verbose output that lists
19654 # what "hidden" libraries, object files and flags are used when
19655 # linking a shared library.
19656 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19657
19658 else
19659 # FIXME: insert proper C++ library support
19660 ld_shlibs_CXX=no
19661 fi
19662 ;;
19663 esac
19664 ;;
19665 psos*)
19666 # FIXME: insert proper C++ library support
19667 ld_shlibs_CXX=no
19668 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019669 sunos4*)
19670 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019671 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019672 # Sun C++ 4.x
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019676 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019677 # Lucid
19678 # FIXME: insert proper C++ library support
19679 ld_shlibs_CXX=no
19680 ;;
19681 *)
19682 # FIXME: insert proper C++ library support
19683 ld_shlibs_CXX=no
19684 ;;
19685 esac
19686 ;;
19687 solaris*)
19688 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019689 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019690 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019691 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019692 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019693 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 +000019694 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 +000019695 $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 +000019696
19697 hardcode_libdir_flag_spec_CXX='-R$libdir'
19698 hardcode_shlibpath_var_CXX=no
19699 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019700 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019701 *)
19702 # The C++ compiler is used as linker so we must use $wl
19703 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019704 # linker. We must also pass each convience library through
19705 # to the system linker between allextract/defaultextract.
19706 # The C++ compiler will combine linker options so we
19707 # cannot just pass the convience library names through
19708 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019709 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019710 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 +000019711 ;;
19712 esac
19713 link_all_deplibs_CXX=yes
19714
Reid Spencera773bd52006-08-04 18:18:08 +000019715 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019716
19717 # Archives containing C++ object files must be created using
19718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19719 # necessary to make sure instantiated templates are included
19720 # in the archive.
19721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019723 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019724 # Green Hills C++ Compiler
19725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19726
19727 # The C++ compiler must be used to create the archive.
19728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19729 ;;
19730 *)
19731 # GNU C++ compiler with Solaris linker
19732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19734 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019735 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 +000019736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19738
John Criswell47fdd832003-07-14 16:52:07 +000019739 # Commands to make compiler produce verbose output that lists
19740 # what "hidden" libraries, object files and flags are used when
19741 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019742 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019743 else
19744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19745 # platform.
19746 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 +000019747 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19748 $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 +000019749
19750 # Commands to make compiler produce verbose output that lists
19751 # what "hidden" libraries, object files and flags are used when
19752 # linking a shared library.
19753 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19754 fi
19755
19756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19757 fi
19758 ;;
19759 esac
19760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19762 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019763 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019764 hardcode_shlibpath_var_CXX=no
19765 runpath_var='LD_RUN_PATH'
19766
19767 case $cc_basename in
19768 CC*)
19769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19771 ;;
19772 *)
19773 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19775 ;;
19776 esac
19777 ;;
19778 sysv5* | sco3.2v5* | sco5v6*)
19779 # Note: We can NOT use -z defs as we might desire, because we do not
19780 # link with -lc, and that would cause any symbols used from libc to
19781 # always be unresolved, which means just about no library would
19782 # ever link correctly. If we're not using GNU ld we use -z text
19783 # though, which does catch some bad symbols but isn't as heavy-handed
19784 # as -z defs.
19785 # For security reasons, it is highly recommended that you always
19786 # use absolute paths for naming shared libraries, and exclude the
19787 # DT_RUNPATH tag from executables and libraries. But doing so
19788 # requires that you compile everything twice, which is a pain.
19789 # So that behaviour is only enabled if SCOABSPATH is set to a
19790 # non-empty value in the environment. Most likely only useful for
19791 # creating official distributions of packages.
19792 # This is a hack until libtool officially supports absolute path
19793 # names for shared libraries.
19794 no_undefined_flag_CXX='${wl}-z,text'
19795 allow_undefined_flag_CXX='${wl}-z,nodefs'
19796 archive_cmds_need_lc_CXX=no
19797 hardcode_shlibpath_var_CXX=no
19798 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19799 hardcode_libdir_separator_CXX=':'
19800 link_all_deplibs_CXX=yes
19801 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19802 runpath_var='LD_RUN_PATH'
19803
19804 case $cc_basename in
19805 CC*)
19806 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19808 ;;
19809 *)
19810 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19812 ;;
19813 esac
John Criswell47fdd832003-07-14 16:52:07 +000019814 ;;
19815 tandem*)
19816 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019817 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019818 # NonStop-UX NCC 3.20
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19821 ;;
19822 *)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19825 ;;
19826 esac
19827 ;;
19828 vxworks*)
19829 # FIXME: insert proper C++ library support
19830 ld_shlibs_CXX=no
19831 ;;
19832 *)
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19835 ;;
19836esac
Reid Spencera773bd52006-08-04 18:18:08 +000019837{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019839test "$ld_shlibs_CXX" = no && can_build_shared=no
19840
19841GCC_CXX="$GXX"
19842LD_CXX="$LD"
19843
John Criswell47fdd832003-07-14 16:52:07 +000019844
19845cat > conftest.$ac_ext <<EOF
19846class Foo
19847{
19848public:
19849 Foo (void) { a = 0; }
19850private:
19851 int a;
19852};
19853EOF
19854
19855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856 (eval $ac_compile) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; then
19860 # Parse the compiler output and extract the necessary
19861 # objects, libraries and library flags.
19862
19863 # Sentinel used to keep track of whether or not we are before
19864 # the conftest object file.
19865 pre_test_object_deps_done=no
19866
19867 # The `*' in the case matches for architectures that use `case' in
19868 # $output_verbose_cmd can trigger glob expansion during the loop
19869 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019870 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019871
19872 for p in `eval $output_verbose_link_cmd`; do
19873 case $p in
19874
19875 -L* | -R* | -l*)
19876 # Some compilers place space between "-{L,R}" and the path.
19877 # Remove the space.
19878 if test $p = "-L" \
19879 || test $p = "-R"; then
19880 prev=$p
19881 continue
19882 else
19883 prev=
19884 fi
19885
19886 if test "$pre_test_object_deps_done" = no; then
19887 case $p in
19888 -L* | -R*)
19889 # Internal compiler library paths should come after those
19890 # provided the user. The postdeps already come after the
19891 # user supplied libs so there is no need to process them.
19892 if test -z "$compiler_lib_search_path_CXX"; then
19893 compiler_lib_search_path_CXX="${prev}${p}"
19894 else
19895 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19896 fi
19897 ;;
19898 # The "-l" case would never come before the object being
19899 # linked, so don't bother handling this case.
19900 esac
19901 else
19902 if test -z "$postdeps_CXX"; then
19903 postdeps_CXX="${prev}${p}"
19904 else
19905 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19906 fi
19907 fi
19908 ;;
19909
19910 *.$objext)
19911 # This assumes that the test object file only shows up
19912 # once in the compiler output.
19913 if test "$p" = "conftest.$objext"; then
19914 pre_test_object_deps_done=yes
19915 continue
19916 fi
19917
19918 if test "$pre_test_object_deps_done" = no; then
19919 if test -z "$predep_objects_CXX"; then
19920 predep_objects_CXX="$p"
19921 else
19922 predep_objects_CXX="$predep_objects_CXX $p"
19923 fi
19924 else
19925 if test -z "$postdep_objects_CXX"; then
19926 postdep_objects_CXX="$p"
19927 else
19928 postdep_objects_CXX="$postdep_objects_CXX $p"
19929 fi
19930 fi
19931 ;;
19932
19933 *) ;; # Ignore the rest.
19934
19935 esac
19936 done
19937
19938 # Clean up.
19939 rm -f a.out a.exe
19940else
19941 echo "libtool.m4: error: problem compiling CXX test program"
19942fi
19943
19944$rm -f confest.$objext
19945
Reid Spencera773bd52006-08-04 18:18:08 +000019946# PORTME: override above test on systems where it is broken
19947case $host_os in
19948interix3*)
19949 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19950 # hack all around it, let's just trust "g++" to DTRT.
19951 predep_objects_CXX=
19952 postdep_objects_CXX=
19953 postdeps_CXX=
19954 ;;
19955
19956solaris*)
19957 case $cc_basename in
19958 CC*)
19959 # Adding this requires a known-good setup of shared libraries for
19960 # Sun compiler versions before 5.6, else PIC objects from an old
19961 # archive will be linked into the output, leading to subtle bugs.
19962 postdeps_CXX='-lCstd -lCrun'
19963 ;;
19964 esac
19965 ;;
19966esac
19967
19968
John Criswell47fdd832003-07-14 16:52:07 +000019969case " $postdeps_CXX " in
19970*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19971esac
19972
19973lt_prog_compiler_wl_CXX=
19974lt_prog_compiler_pic_CXX=
19975lt_prog_compiler_static_CXX=
19976
Reid Spencera773bd52006-08-04 18:18:08 +000019977{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19978echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019979
19980 # C++ specific cases for pic, static, wl, etc.
19981 if test "$GXX" = yes; then
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='-static'
19984
19985 case $host_os in
19986 aix*)
19987 # All AIX code is PIC.
19988 if test "$host_cpu" = ia64; then
19989 # AIX 5 now supports IA64 processor
19990 lt_prog_compiler_static_CXX='-Bstatic'
19991 fi
19992 ;;
19993 amigaos*)
19994 # FIXME: we need at least 68020 code to build shared libraries, but
19995 # adding the `-m68020' flag to GCC prevents building anything better,
19996 # like `-m68040'.
19997 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19998 ;;
19999 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20000 # PIC is the default for these OSes.
20001 ;;
20002 mingw* | os2* | pw32*)
20003 # This hack is so that the source file can tell whether it is being
20004 # built for inclusion in a dll (and should export symbols for example).
20005 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20006 ;;
20007 darwin* | rhapsody*)
20008 # PIC is the default on this platform
20009 # Common symbols not allowed in MH_DYLIB files
20010 lt_prog_compiler_pic_CXX='-fno-common'
20011 ;;
20012 *djgpp*)
20013 # DJGPP does not support shared libraries at all
20014 lt_prog_compiler_pic_CXX=
20015 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020016 interix3*)
20017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20018 # Instead, we relocate shared libraries at runtime.
20019 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020020 sysv4*MP*)
20021 if test -d /usr/nec; then
20022 lt_prog_compiler_pic_CXX=-Kconform_pic
20023 fi
20024 ;;
20025 hpux*)
20026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20027 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020028 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020029 hppa*64*|ia64*)
20030 ;;
20031 *)
20032 lt_prog_compiler_pic_CXX='-fPIC'
20033 ;;
20034 esac
20035 ;;
20036 *)
20037 lt_prog_compiler_pic_CXX='-fPIC'
20038 ;;
20039 esac
20040 else
20041 case $host_os in
20042 aix4* | aix5*)
20043 # All AIX code is PIC.
20044 if test "$host_cpu" = ia64; then
20045 # AIX 5 now supports IA64 processor
20046 lt_prog_compiler_static_CXX='-Bstatic'
20047 else
20048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20049 fi
20050 ;;
20051 chorus*)
20052 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020053 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000020054 # Green Hills C++ Compiler
20055 # _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"
20056 ;;
20057 esac
20058 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020059 darwin*)
20060 # PIC is the default on this platform
20061 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020062 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020063 xlc*)
20064 lt_prog_compiler_pic_CXX='-qnocommon'
20065 lt_prog_compiler_wl_CXX='-Wl,'
20066 ;;
20067 esac
20068 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020069 dgux*)
20070 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020071 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000020072 lt_prog_compiler_pic_CXX='-KPIC'
20073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020074 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020075 # Green Hills C++ Compiler
20076 lt_prog_compiler_pic_CXX='-pic'
20077 ;;
20078 *)
20079 ;;
20080 esac
20081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020082 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000020083 # FreeBSD uses GNU C++
20084 ;;
20085 hpux9* | hpux10* | hpux11*)
20086 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020087 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020088 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020089 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000020090 if test "$host_cpu" != ia64; then
20091 lt_prog_compiler_pic_CXX='+Z'
20092 fi
20093 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020094 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020095 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020096 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20097 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020098 hppa*64*|ia64*)
20099 # +Z the default
20100 ;;
20101 *)
20102 lt_prog_compiler_pic_CXX='+Z'
20103 ;;
20104 esac
20105 ;;
20106 *)
20107 ;;
20108 esac
20109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020110 interix*)
20111 # This is c89, which is MS Visual C++ (no shared libs)
20112 # Anyone wants to do a port?
20113 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020114 irix5* | irix6* | nonstopux*)
20115 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020116 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020117 lt_prog_compiler_wl_CXX='-Wl,'
20118 lt_prog_compiler_static_CXX='-non_shared'
20119 # CC pic flag -KPIC is the default.
20120 ;;
20121 *)
20122 ;;
20123 esac
20124 ;;
20125 linux*)
20126 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020127 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020128 # KAI C++ Compiler
20129 lt_prog_compiler_wl_CXX='--backend -Wl,'
20130 lt_prog_compiler_pic_CXX='-fPIC'
20131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020132 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020133 # Intel C++
20134 lt_prog_compiler_wl_CXX='-Wl,'
20135 lt_prog_compiler_pic_CXX='-KPIC'
20136 lt_prog_compiler_static_CXX='-static'
20137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020138 pgCC*)
20139 # Portland Group C++ compiler.
20140 lt_prog_compiler_wl_CXX='-Wl,'
20141 lt_prog_compiler_pic_CXX='-fpic'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 ;;
20144 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020145 # Compaq C++
20146 # Make sure the PIC flag is empty. It appears that all Alpha
20147 # Linux and Compaq Tru64 Unix objects are PIC.
20148 lt_prog_compiler_pic_CXX=
20149 lt_prog_compiler_static_CXX='-non_shared'
20150 ;;
20151 *)
20152 ;;
20153 esac
20154 ;;
20155 lynxos*)
20156 ;;
20157 m88k*)
20158 ;;
20159 mvs*)
20160 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020161 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020162 lt_prog_compiler_pic_CXX='-W c,exportall'
20163 ;;
20164 *)
20165 ;;
20166 esac
20167 ;;
20168 netbsd*)
20169 ;;
20170 osf3* | osf4* | osf5*)
20171 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020172 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020173 lt_prog_compiler_wl_CXX='--backend -Wl,'
20174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020175 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020176 # Rational C++ 2.4.1
20177 lt_prog_compiler_pic_CXX='-pic'
20178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020179 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020180 # Digital/Compaq C++
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 # Make sure the PIC flag is empty. It appears that all Alpha
20183 # Linux and Compaq Tru64 Unix objects are PIC.
20184 lt_prog_compiler_pic_CXX=
20185 lt_prog_compiler_static_CXX='-non_shared'
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
20191 psos*)
20192 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020193 solaris*)
20194 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020195 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020196 # Sun C++ 4.2, 5.x and Centerline C++
20197 lt_prog_compiler_pic_CXX='-KPIC'
20198 lt_prog_compiler_static_CXX='-Bstatic'
20199 lt_prog_compiler_wl_CXX='-Qoption ld '
20200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020201 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020202 # Green Hills C++ Compiler
20203 lt_prog_compiler_pic_CXX='-PIC'
20204 ;;
20205 *)
20206 ;;
20207 esac
20208 ;;
20209 sunos4*)
20210 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020211 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020212 # Sun C++ 4.x
20213 lt_prog_compiler_pic_CXX='-pic'
20214 lt_prog_compiler_static_CXX='-Bstatic'
20215 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020216 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020217 # Lucid
20218 lt_prog_compiler_pic_CXX='-pic'
20219 ;;
20220 *)
20221 ;;
20222 esac
20223 ;;
20224 tandem*)
20225 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020226 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020227 # NonStop-UX NCC 3.20
20228 lt_prog_compiler_pic_CXX='-KPIC'
20229 ;;
20230 *)
20231 ;;
20232 esac
20233 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20235 case $cc_basename in
20236 CC*)
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_pic_CXX='-KPIC'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20240 ;;
20241 esac
John Criswell47fdd832003-07-14 16:52:07 +000020242 ;;
20243 vxworks*)
20244 ;;
20245 *)
20246 lt_prog_compiler_can_build_shared_CXX=no
20247 ;;
20248 esac
20249 fi
20250
Reid Spencera773bd52006-08-04 18:18:08 +000020251{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20252echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020253
20254#
20255# Check to make sure the PIC flag actually works.
20256#
20257if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020258
Reid Spencera773bd52006-08-04 18:18:08 +000020259{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20260echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020261if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 lt_prog_compiler_pic_works_CXX=no
20265 ac_outfile=conftest.$ac_objext
20266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20267 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 # The option is referenced via a variable to avoid confusing sed.
20273 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20276 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020277 (eval echo "\"\$as_me:20277: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020278 (eval "$lt_compile" 2>conftest.err)
20279 ac_status=$?
20280 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020281 echo "$as_me:20281: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020282 if (exit $ac_status) && test -s "$ac_outfile"; then
20283 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020284 # So say no if there are warnings other than the usual output.
20285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020288 lt_prog_compiler_pic_works_CXX=yes
20289 fi
20290 fi
20291 $rm conftest*
20292
20293fi
Reid Spencera773bd52006-08-04 18:18:08 +000020294{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20295echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020296
20297if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20298 case $lt_prog_compiler_pic_CXX in
20299 "" | " "*) ;;
20300 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20301 esac
20302else
20303 lt_prog_compiler_pic_CXX=
20304 lt_prog_compiler_can_build_shared_CXX=no
20305fi
20306
20307fi
Reid Spencera773bd52006-08-04 18:18:08 +000020308case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020309 # For platforms which do not support PIC, -DPIC is meaningless:
20310 *djgpp*)
20311 lt_prog_compiler_pic_CXX=
20312 ;;
20313 *)
20314 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20315 ;;
20316esac
20317
Reid Spencera773bd52006-08-04 18:18:08 +000020318#
20319# Check to make sure the static flag actually works.
20320#
20321wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20322{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20324if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326else
20327 lt_prog_compiler_static_works_CXX=no
20328 save_LDFLAGS="$LDFLAGS"
20329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20330 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20332 # The linker can only warn and ignore the option if not recognized
20333 # So say no if there are warnings
20334 if test -s conftest.err; then
20335 # Append any errors to the config.log.
20336 cat conftest.err 1>&5
20337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20339 if diff conftest.exp conftest.er2 >/dev/null; then
20340 lt_prog_compiler_static_works_CXX=yes
20341 fi
20342 else
20343 lt_prog_compiler_static_works_CXX=yes
20344 fi
20345 fi
20346 $rm conftest*
20347 LDFLAGS="$save_LDFLAGS"
20348
20349fi
20350{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20351echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20352
20353if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20354 :
20355else
20356 lt_prog_compiler_static_CXX=
20357fi
20358
20359
20360{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20361echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020362if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364else
20365 lt_cv_prog_compiler_c_o_CXX=no
20366 $rm -r conftest 2>/dev/null
20367 mkdir conftest
20368 cd conftest
20369 mkdir out
20370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20371
John Criswell47fdd832003-07-14 16:52:07 +000020372 lt_compiler_flag="-o out/conftest2.$ac_objext"
20373 # Insert the option either (1) after the last *FLAGS variable, or
20374 # (2) before a word containing "conftest.", or (3) at the end.
20375 # Note that $ac_compile itself does not contain backslashes and begins
20376 # with a dollar sign (not a hyphen), so the echo should work correctly.
20377 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20380 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020381 (eval echo "\"\$as_me:20381: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020382 (eval "$lt_compile" 2>out/conftest.err)
20383 ac_status=$?
20384 cat out/conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020385 echo "$as_me:20385: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20387 then
20388 # The compiler can only warn and ignore the option if not recognized
20389 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020393 lt_cv_prog_compiler_c_o_CXX=yes
20394 fi
20395 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020396 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020397 $rm conftest*
20398 # SGI C++ compiler will create directory out/ii_files/ for
20399 # template instantiation
20400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20401 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020402 cd ..
20403 rmdir conftest
20404 $rm conftest*
20405
20406fi
Reid Spencera773bd52006-08-04 18:18:08 +000020407{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20408echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020409
20410
20411hard_links="nottested"
20412if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20413 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20415echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020416 hard_links=yes
20417 $rm conftest*
20418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20419 touch conftest.a
20420 ln conftest.a conftest.b 2>&5 || hard_links=no
20421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020422 { echo "$as_me:$LINENO: result: $hard_links" >&5
20423echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020424 if test "$hard_links" = no; then
20425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20426echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20427 need_locks=warn
20428 fi
20429else
20430 need_locks=no
20431fi
20432
Reid Spencera773bd52006-08-04 18:18:08 +000020433{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20434echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020435
20436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20437 case $host_os in
20438 aix4* | aix5*)
20439 # If we're using GNU nm, then we don't want the "-C" option.
20440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20442 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'
20443 else
20444 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'
20445 fi
20446 ;;
20447 pw32*)
20448 export_symbols_cmds_CXX="$ltdll_cmds"
20449 ;;
20450 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020451 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 +000020452 ;;
20453 *)
20454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20455 ;;
20456 esac
20457
Reid Spencera773bd52006-08-04 18:18:08 +000020458{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20459echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020460test "$ld_shlibs_CXX" = no && can_build_shared=no
20461
John Criswell47fdd832003-07-14 16:52:07 +000020462#
20463# Do we need to explicitly link libc?
20464#
20465case "x$archive_cmds_need_lc_CXX" in
20466x|xyes)
20467 # Assume -lc should be added
20468 archive_cmds_need_lc_CXX=yes
20469
20470 if test "$enable_shared" = yes && test "$GCC" = yes; then
20471 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020472 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020473 # FIXME: we may have to deal with multi-command sequences.
20474 ;;
20475 '$CC '*)
20476 # Test whether the compiler implicitly links with -lc since on some
20477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20478 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020479 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20480echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020481 $rm conftest*
20482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20483
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } 2>conftest.err; then
20489 soname=conftest
20490 lib=conftest
20491 libobjs=conftest.$ac_objext
20492 deplibs=
20493 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020494 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020495 compiler_flags=-v
20496 linker_flags=-v
20497 verstring=
20498 output_objdir=.
20499 libname=conftest
20500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20501 allow_undefined_flag_CXX=
20502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20503 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }
20507 then
20508 archive_cmds_need_lc_CXX=no
20509 else
20510 archive_cmds_need_lc_CXX=yes
20511 fi
20512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20513 else
20514 cat conftest.err 1>&5
20515 fi
20516 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020517 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20518echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020519 ;;
20520 esac
20521 fi
20522 ;;
20523esac
20524
Reid Spencera773bd52006-08-04 18:18:08 +000020525{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20526echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020527library_names_spec=
20528libname_spec='lib$name'
20529soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020530shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020531postinstall_cmds=
20532postuninstall_cmds=
20533finish_cmds=
20534finish_eval=
20535shlibpath_var=
20536shlibpath_overrides_runpath=unknown
20537version_type=none
20538dynamic_linker="$host_os ld.so"
20539sys_lib_dlsearch_path_spec="/lib /usr/lib"
20540if test "$GCC" = yes; then
20541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20543 # if the path contains ";" then we assume it to be the separator
20544 # otherwise default to the standard path separator (i.e. ":") - it is
20545 # assumed that no part of a normal pathname contains ";" but that should
20546 # okay in the real world where ";" in dirpaths is itself problematic.
20547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20548 else
20549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20550 fi
20551else
20552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20553fi
20554need_lib_prefix=unknown
20555hardcode_into_libs=no
20556
20557# when you set need_version to no, make sure it does not cause -set_version
20558# flags to be left without arguments
20559need_version=unknown
20560
20561case $host_os in
20562aix3*)
20563 version_type=linux
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20565 shlibpath_var=LIBPATH
20566
20567 # AIX 3 has no versioning support, so we append a major version to the name.
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 ;;
20570
20571aix4* | aix5*)
20572 version_type=linux
20573 need_lib_prefix=no
20574 need_version=no
20575 hardcode_into_libs=yes
20576 if test "$host_cpu" = ia64; then
20577 # AIX 5 supports IA64
20578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 else
20581 # With GCC up to 2.95.x, collect2 would create an import file
20582 # for dependence libraries. The import file would start with
20583 # the line `#! .'. This would cause the generated library to
20584 # depend on `.', always an invalid library. This was fixed in
20585 # development snapshots of GCC prior to 3.0.
20586 case $host_os in
20587 aix4 | aix4.[01] | aix4.[01].*)
20588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20589 echo ' yes '
20590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20591 :
20592 else
20593 can_build_shared=no
20594 fi
20595 ;;
20596 esac
20597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20598 # soname into executable. Probably we can add versioning support to
20599 # collect2, so additional links can be useful in future.
20600 if test "$aix_use_runtimelinking" = yes; then
20601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20602 # instead of lib<name>.a to let people know that these are not
20603 # typical AIX shared libraries.
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 else
20606 # We preserve .a as extension for shared libraries through AIX4.2
20607 # and later when we are not doing run time linking.
20608 library_names_spec='${libname}${release}.a $libname.a'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 fi
20611 shlibpath_var=LIBPATH
20612 fi
20613 ;;
20614
20615amigaos*)
20616 library_names_spec='$libname.ixlibrary $libname.a'
20617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020618 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 +000020619 ;;
20620
20621beos*)
20622 library_names_spec='${libname}${shared_ext}'
20623 dynamic_linker="$host_os ld.so"
20624 shlibpath_var=LIBRARY_PATH
20625 ;;
20626
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020628 version_type=linux
20629 need_version=no
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20636 # the default ld.so.conf also contains /usr/contrib/lib and
20637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20638 # libtool to hard-code these into programs
20639 ;;
20640
20641cygwin* | mingw* | pw32*)
20642 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020644 need_version=no
20645 need_lib_prefix=no
20646
20647 case $GCC,$host_os in
20648 yes,cygwin* | yes,mingw* | yes,pw32*)
20649 library_names_spec='$libname.dll.a'
20650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020651 postinstall_cmds='base_file=`basename \${file}`~
20652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20653 dldir=$destdir/`dirname \$dlpath`~
20654 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020655 $install_prog $dir/$dlname \$dldir/$dlname~
20656 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20658 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020659 $rm \$dlpath'
20660 shlibpath_overrides_runpath=yes
20661
20662 case $host_os in
20663 cygwin*)
20664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20665 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 +000020666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020667 ;;
20668 mingw*)
20669 # MinGW DLLs use traditional 'lib' prefix
20670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20673 # It is most probably a Windows format PATH printed by
20674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20675 # path with ; separators, and with drive letters. We can handle the
20676 # drive letters (cygwin fileutils understands them), so leave them,
20677 # especially as we might pass files found there to a mingw objdump,
20678 # which wouldn't understand a cygwinified path. Ahh.
20679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20680 else
20681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20682 fi
20683 ;;
20684 pw32*)
20685 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020686 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 +000020687 ;;
20688 esac
20689 ;;
20690
20691 *)
20692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20693 ;;
20694 esac
20695 dynamic_linker='Win32 ld.exe'
20696 # FIXME: first we should search . and the directory the executable is in
20697 shlibpath_var=PATH
20698 ;;
20699
20700darwin* | rhapsody*)
20701 dynamic_linker="$host_os dyld"
20702 version_type=darwin
20703 need_lib_prefix=no
20704 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020706 soname_spec='${libname}${release}${major}$shared_ext'
20707 shlibpath_overrides_runpath=yes
20708 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020709 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020711 if test "$GCC" = yes; then
20712 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"`
20713 else
20714 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020715 fi
20716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20717 ;;
20718
20719dgux*)
20720 version_type=linux
20721 need_lib_prefix=no
20722 need_version=no
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 ;;
20727
20728freebsd1*)
20729 dynamic_linker=no
20730 ;;
20731
Reid Spencer2706f8c2004-09-19 23:53:36 +000020732kfreebsd*-gnu)
20733 version_type=linux
20734 need_lib_prefix=no
20735 need_version=no
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 shlibpath_overrides_runpath=no
20740 hardcode_into_libs=yes
20741 dynamic_linker='GNU ld.so'
20742 ;;
20743
Reid Spencera773bd52006-08-04 18:18:08 +000020744freebsd* | dragonfly*)
20745 # DragonFly does not have aout. When/if they implement a new
20746 # versioning mechanism, adjust this.
20747 if test -x /usr/bin/objformat; then
20748 objformat=`/usr/bin/objformat`
20749 else
20750 case $host_os in
20751 freebsd[123]*) objformat=aout ;;
20752 *) objformat=elf ;;
20753 esac
20754 fi
John Criswell47fdd832003-07-14 16:52:07 +000020755 version_type=freebsd-$objformat
20756 case $version_type in
20757 freebsd-elf*)
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20759 need_version=no
20760 need_lib_prefix=no
20761 ;;
20762 freebsd-*)
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20764 need_version=yes
20765 ;;
20766 esac
20767 shlibpath_var=LD_LIBRARY_PATH
20768 case $host_os in
20769 freebsd2*)
20770 shlibpath_overrides_runpath=yes
20771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020772 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020773 shlibpath_overrides_runpath=yes
20774 hardcode_into_libs=yes
20775 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020778 shlibpath_overrides_runpath=no
20779 hardcode_into_libs=yes
20780 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020781 freebsd*) # from 4.6 on
20782 shlibpath_overrides_runpath=yes
20783 hardcode_into_libs=yes
20784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020785 esac
20786 ;;
20787
20788gnu*)
20789 version_type=linux
20790 need_lib_prefix=no
20791 need_version=no
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 hardcode_into_libs=yes
20796 ;;
20797
20798hpux9* | hpux10* | hpux11*)
20799 # Give a soname corresponding to the major version so that dld.sl refuses to
20800 # link against other versions.
20801 version_type=sunos
20802 need_lib_prefix=no
20803 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020804 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020805 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020806 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020807 hardcode_into_libs=yes
20808 dynamic_linker="$host_os dld.so"
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 if test "X$HPUX_IA64_MODE" = X32; then
20814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20815 else
20816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20817 fi
20818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20819 ;;
20820 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020821 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020822 hardcode_into_libs=yes
20823 dynamic_linker="$host_os dld.sl"
20824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827 soname_spec='${libname}${release}${shared_ext}$major'
20828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20830 ;;
20831 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020832 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020833 dynamic_linker="$host_os dld.sl"
20834 shlibpath_var=SHLIB_PATH
20835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 ;;
20839 esac
20840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20841 postinstall_cmds='chmod 555 $lib'
20842 ;;
20843
Reid Spencera773bd52006-08-04 18:18:08 +000020844interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=no
20853 hardcode_into_libs=yes
20854 ;;
20855
John Criswell47fdd832003-07-14 16:52:07 +000020856irix5* | irix6* | nonstopux*)
20857 case $host_os in
20858 nonstopux*) version_type=nonstopux ;;
20859 *)
20860 if test "$lt_cv_prog_gnu_ld" = yes; then
20861 version_type=linux
20862 else
20863 version_type=irix
20864 fi ;;
20865 esac
20866 need_lib_prefix=no
20867 need_version=no
20868 soname_spec='${libname}${release}${shared_ext}$major'
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20870 case $host_os in
20871 irix5* | nonstopux*)
20872 libsuff= shlibsuff=
20873 ;;
20874 *)
20875 case $LD in # libtool.m4 will add one of these switches to LD
20876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20877 libsuff= shlibsuff= libmagic=32-bit;;
20878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20879 libsuff=32 shlibsuff=N32 libmagic=N32;;
20880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20882 *) libsuff= shlibsuff= libmagic=never-match;;
20883 esac
20884 ;;
20885 esac
20886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20887 shlibpath_overrides_runpath=no
20888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20890 hardcode_into_libs=yes
20891 ;;
20892
20893# No shared lib support for Linux oldld, aout, or coff.
20894linux*oldld* | linux*aout* | linux*coff*)
20895 dynamic_linker=no
20896 ;;
20897
20898# This must be Linux ELF.
20899linux*)
20900 version_type=linux
20901 need_lib_prefix=no
20902 need_version=no
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=no
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs=yes
20912
Reid Spencer2706f8c2004-09-19 23:53:36 +000020913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020915 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 +000020916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20917 fi
20918
John Criswell47fdd832003-07-14 16:52:07 +000020919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20926 ;;
20927
Reid Spencer2706f8c2004-09-19 23:53:36 +000020928knetbsd*-gnu)
20929 version_type=linux
20930 need_lib_prefix=no
20931 need_version=no
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=no
20936 hardcode_into_libs=yes
20937 dynamic_linker='GNU ld.so'
20938 ;;
20939
John Criswell47fdd832003-07-14 16:52:07 +000020940netbsd*)
20941 version_type=sunos
20942 need_lib_prefix=no
20943 need_version=no
20944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947 dynamic_linker='NetBSD (a.out) ld.so'
20948 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020950 soname_spec='${libname}${release}${shared_ext}$major'
20951 dynamic_linker='NetBSD ld.elf_so'
20952 fi
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes
20955 hardcode_into_libs=yes
20956 ;;
20957
20958newsos6)
20959 version_type=linux
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20963 ;;
20964
Reid Spencer2706f8c2004-09-19 23:53:36 +000020965nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020966 version_type=linux
20967 need_lib_prefix=no
20968 need_version=no
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20973 ;;
20974
20975openbsd*)
20976 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020977 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020978 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20980 case $host_os in
20981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20982 *) need_version=no ;;
20983 esac
John Criswell47fdd832003-07-14 16:52:07 +000020984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20988 case $host_os in
20989 openbsd2.[89] | openbsd2.[89].*)
20990 shlibpath_overrides_runpath=no
20991 ;;
20992 *)
20993 shlibpath_overrides_runpath=yes
20994 ;;
20995 esac
20996 else
20997 shlibpath_overrides_runpath=yes
20998 fi
20999 ;;
21000
21001os2*)
21002 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021003 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021004 need_lib_prefix=no
21005 library_names_spec='$libname${shared_ext} $libname.a'
21006 dynamic_linker='OS/2 ld.exe'
21007 shlibpath_var=LIBPATH
21008 ;;
21009
21010osf3* | osf4* | osf5*)
21011 version_type=osf
21012 need_lib_prefix=no
21013 need_version=no
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21019 ;;
21020
John Criswell47fdd832003-07-14 16:52:07 +000021021solaris*)
21022 version_type=linux
21023 need_lib_prefix=no
21024 need_version=no
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 hardcode_into_libs=yes
21030 # ldd complains unless libraries are executable
21031 postinstall_cmds='chmod +x $lib'
21032 ;;
21033
21034sunos4*)
21035 version_type=sunos
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath=yes
21040 if test "$with_gnu_ld" = yes; then
21041 need_lib_prefix=no
21042 fi
21043 need_version=yes
21044 ;;
21045
Reid Spencera773bd52006-08-04 18:18:08 +000021046sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021047 version_type=linux
21048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049 soname_spec='${libname}${release}${shared_ext}$major'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 case $host_vendor in
21052 sni)
21053 shlibpath_overrides_runpath=no
21054 need_lib_prefix=no
21055 export_dynamic_flag_spec='${wl}-Blargedynsym'
21056 runpath_var=LD_RUN_PATH
21057 ;;
21058 siemens)
21059 need_lib_prefix=no
21060 ;;
21061 motorola)
21062 need_lib_prefix=no
21063 need_version=no
21064 shlibpath_overrides_runpath=no
21065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21066 ;;
21067 esac
21068 ;;
21069
21070sysv4*MP*)
21071 if test -d /usr/nec ;then
21072 version_type=linux
21073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074 soname_spec='$libname${shared_ext}.$major'
21075 shlibpath_var=LD_LIBRARY_PATH
21076 fi
21077 ;;
21078
Reid Spencera773bd52006-08-04 18:18:08 +000021079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21080 version_type=freebsd-elf
21081 need_lib_prefix=no
21082 need_version=no
21083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 hardcode_into_libs=yes
21087 if test "$with_gnu_ld" = yes; then
21088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21089 shlibpath_overrides_runpath=no
21090 else
21091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21092 shlibpath_overrides_runpath=yes
21093 case $host_os in
21094 sco3.2v5*)
21095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21096 ;;
21097 esac
21098 fi
21099 sys_lib_dlsearch_path_spec='/usr/lib'
21100 ;;
21101
John Criswell47fdd832003-07-14 16:52:07 +000021102uts4*)
21103 version_type=linux
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 shlibpath_var=LD_LIBRARY_PATH
21107 ;;
21108
21109*)
21110 dynamic_linker=no
21111 ;;
21112esac
Reid Spencera773bd52006-08-04 18:18:08 +000021113{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21114echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021115test "$dynamic_linker" = no && can_build_shared=no
21116
Reid Spencera773bd52006-08-04 18:18:08 +000021117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21118if test "$GCC" = yes; then
21119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21120fi
21121
21122{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21123echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021124hardcode_action_CXX=
21125if test -n "$hardcode_libdir_flag_spec_CXX" || \
21126 test -n "$runpath_var_CXX" || \
21127 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21128
21129 # We can hardcode non-existant directories.
21130 if test "$hardcode_direct_CXX" != no &&
21131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21132 # have to relink, otherwise we might link with an installed library
21133 # when we should be linking with a yet-to-be-installed one
21134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21135 test "$hardcode_minus_L_CXX" != no; then
21136 # Linking always hardcodes the temporary library directory.
21137 hardcode_action_CXX=relink
21138 else
21139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21140 hardcode_action_CXX=immediate
21141 fi
21142else
21143 # We cannot hardcode anything, or else we can only hardcode existing
21144 # directories.
21145 hardcode_action_CXX=unsupported
21146fi
Reid Spencera773bd52006-08-04 18:18:08 +000021147{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21148echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021149
21150if test "$hardcode_action_CXX" = relink; then
21151 # Fast installation is not supported
21152 enable_fast_install=no
21153elif test "$shlibpath_overrides_runpath" = yes ||
21154 test "$enable_shared" = no; then
21155 # Fast installation is not necessary
21156 enable_fast_install=needless
21157fi
21158
John Criswell47fdd832003-07-14 16:52:07 +000021159
21160# The else clause should only fire when bootstrapping the
21161# libtool distribution, otherwise you forgot to ship ltmain.sh
21162# with your package, and you will get complaints that there are
21163# no rules to generate ltmain.sh.
21164if test -f "$ltmain"; then
21165 # See if we are running on zsh, and set the options which allow our commands through
21166 # without removal of \ escapes.
21167 if test -n "${ZSH_VERSION+set}" ; then
21168 setopt NO_GLOB_SUBST
21169 fi
21170 # Now quote all the things that may contain metacharacters while being
21171 # careful not to overquote the AC_SUBSTed values. We take copies of the
21172 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021173 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 +000021174 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21177 deplibs_check_method reload_flag reload_cmds need_locks \
21178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21179 lt_cv_sys_global_symbol_to_c_name_address \
21180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21181 old_postinstall_cmds old_postuninstall_cmds \
21182 compiler_CXX \
21183 CC_CXX \
21184 LD_CXX \
21185 lt_prog_compiler_wl_CXX \
21186 lt_prog_compiler_pic_CXX \
21187 lt_prog_compiler_static_CXX \
21188 lt_prog_compiler_no_builtin_flag_CXX \
21189 export_dynamic_flag_spec_CXX \
21190 thread_safe_flag_spec_CXX \
21191 whole_archive_flag_spec_CXX \
21192 enable_shared_with_static_runtimes_CXX \
21193 old_archive_cmds_CXX \
21194 old_archive_from_new_cmds_CXX \
21195 predep_objects_CXX \
21196 postdep_objects_CXX \
21197 predeps_CXX \
21198 postdeps_CXX \
21199 compiler_lib_search_path_CXX \
21200 archive_cmds_CXX \
21201 archive_expsym_cmds_CXX \
21202 postinstall_cmds_CXX \
21203 postuninstall_cmds_CXX \
21204 old_archive_from_expsyms_cmds_CXX \
21205 allow_undefined_flag_CXX \
21206 no_undefined_flag_CXX \
21207 export_symbols_cmds_CXX \
21208 hardcode_libdir_flag_spec_CXX \
21209 hardcode_libdir_flag_spec_ld_CXX \
21210 hardcode_libdir_separator_CXX \
21211 hardcode_automatic_CXX \
21212 module_cmds_CXX \
21213 module_expsym_cmds_CXX \
21214 lt_cv_prog_compiler_c_o_CXX \
21215 exclude_expsyms_CXX \
21216 include_expsyms_CXX; do
21217
21218 case $var in
21219 old_archive_cmds_CXX | \
21220 old_archive_from_new_cmds_CXX | \
21221 archive_cmds_CXX | \
21222 archive_expsym_cmds_CXX | \
21223 module_cmds_CXX | \
21224 module_expsym_cmds_CXX | \
21225 old_archive_from_expsyms_cmds_CXX | \
21226 export_symbols_cmds_CXX | \
21227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21228 postinstall_cmds | postuninstall_cmds | \
21229 old_postinstall_cmds | old_postuninstall_cmds | \
21230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21231 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021232 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 +000021233 ;;
21234 *)
21235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21236 ;;
21237 esac
21238 done
21239
21240 case $lt_echo in
21241 *'\$0 --fallback-echo"')
21242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21243 ;;
21244 esac
21245
21246cfgfile="$ofile"
21247
21248 cat <<__EOF__ >> "$cfgfile"
21249# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21250
21251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21252
21253# Shell to use when invoking shell scripts.
21254SHELL=$lt_SHELL
21255
21256# Whether or not to build shared libraries.
21257build_libtool_libs=$enable_shared
21258
21259# Whether or not to build static libraries.
21260build_old_libs=$enable_static
21261
21262# Whether or not to add -lc for building shared libraries.
21263build_libtool_need_lc=$archive_cmds_need_lc_CXX
21264
21265# Whether or not to disallow shared libs when runtime libs are static
21266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21267
21268# Whether or not to optimize for fast installation.
21269fast_install=$enable_fast_install
21270
21271# The host system.
21272host_alias=$host_alias
21273host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021274host_os=$host_os
21275
21276# The build system.
21277build_alias=$build_alias
21278build=$build
21279build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021280
21281# An echo program that does not interpret backslashes.
21282echo=$lt_echo
21283
21284# The archiver.
21285AR=$lt_AR
21286AR_FLAGS=$lt_AR_FLAGS
21287
21288# A C compiler.
21289LTCC=$lt_LTCC
21290
Reid Spencera773bd52006-08-04 18:18:08 +000021291# LTCC compiler flags.
21292LTCFLAGS=$lt_LTCFLAGS
21293
John Criswell47fdd832003-07-14 16:52:07 +000021294# A language-specific compiler.
21295CC=$lt_compiler_CXX
21296
21297# Is the compiler the GNU C compiler?
21298with_gcc=$GCC_CXX
21299
21300# An ERE matcher.
21301EGREP=$lt_EGREP
21302
21303# The linker used to build libraries.
21304LD=$lt_LD_CXX
21305
21306# Whether we need hard or soft links.
21307LN_S=$lt_LN_S
21308
21309# A BSD-compatible nm program.
21310NM=$lt_NM
21311
21312# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021313STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021314
21315# Used to examine libraries when file_magic_cmd begins "file"
21316MAGIC_CMD=$MAGIC_CMD
21317
21318# Used on cygwin: DLL creation program.
21319DLLTOOL="$DLLTOOL"
21320
21321# Used on cygwin: object dumper.
21322OBJDUMP="$OBJDUMP"
21323
21324# Used on cygwin: assembler.
21325AS="$AS"
21326
21327# The name of the directory that contains temporary libtool files.
21328objdir=$objdir
21329
21330# How to create reloadable object files.
21331reload_flag=$lt_reload_flag
21332reload_cmds=$lt_reload_cmds
21333
21334# How to pass a linker flag through the compiler.
21335wl=$lt_lt_prog_compiler_wl_CXX
21336
21337# Object file suffix (normally "o").
21338objext="$ac_objext"
21339
21340# Old archive suffix (normally "a").
21341libext="$libext"
21342
21343# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021344shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021345
21346# Executable file suffix (normally "").
21347exeext="$exeext"
21348
21349# Additional compiler flags for building library objects.
21350pic_flag=$lt_lt_prog_compiler_pic_CXX
21351pic_mode=$pic_mode
21352
21353# What is the maximum length of a command?
21354max_cmd_len=$lt_cv_sys_max_cmd_len
21355
21356# Does compiler simultaneously support -c and -o options?
21357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021360need_locks=$lt_need_locks
21361
21362# Do we need the lib prefix for modules?
21363need_lib_prefix=$need_lib_prefix
21364
21365# Do we need a version for libraries?
21366need_version=$need_version
21367
21368# Whether dlopen is supported.
21369dlopen_support=$enable_dlopen
21370
21371# Whether dlopen of programs is supported.
21372dlopen_self=$enable_dlopen_self
21373
21374# Whether dlopen of statically linked programs is supported.
21375dlopen_self_static=$enable_dlopen_self_static
21376
21377# Compiler flag to prevent dynamic linking.
21378link_static_flag=$lt_lt_prog_compiler_static_CXX
21379
21380# Compiler flag to turn off builtin functions.
21381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21382
21383# Compiler flag to allow reflexive dlopens.
21384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21385
21386# Compiler flag to generate shared objects directly from archives.
21387whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21388
21389# Compiler flag to generate thread-safe objects.
21390thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21391
21392# Library versioning type.
21393version_type=$version_type
21394
21395# Format of library name prefix.
21396libname_spec=$lt_libname_spec
21397
21398# List of archive names. First name is the real one, the rest are links.
21399# The last name is the one that the linker finds with -lNAME.
21400library_names_spec=$lt_library_names_spec
21401
21402# The coded name of the library, if different from the real name.
21403soname_spec=$lt_soname_spec
21404
21405# Commands used to build and install an old-style archive.
21406RANLIB=$lt_RANLIB
21407old_archive_cmds=$lt_old_archive_cmds_CXX
21408old_postinstall_cmds=$lt_old_postinstall_cmds
21409old_postuninstall_cmds=$lt_old_postuninstall_cmds
21410
21411# Create an old-style archive from a shared archive.
21412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21413
21414# Create a temporary old-style archive to link instead of a shared archive.
21415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21416
21417# Commands used to build and install a shared archive.
21418archive_cmds=$lt_archive_cmds_CXX
21419archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21420postinstall_cmds=$lt_postinstall_cmds
21421postuninstall_cmds=$lt_postuninstall_cmds
21422
21423# Commands used to build a loadable module (assumed same as above if empty)
21424module_cmds=$lt_module_cmds_CXX
21425module_expsym_cmds=$lt_module_expsym_cmds_CXX
21426
21427# Commands to strip libraries.
21428old_striplib=$lt_old_striplib
21429striplib=$lt_striplib
21430
21431# Dependencies to place before the objects being linked to create a
21432# shared library.
21433predep_objects=$lt_predep_objects_CXX
21434
21435# Dependencies to place after the objects being linked to create a
21436# shared library.
21437postdep_objects=$lt_postdep_objects_CXX
21438
21439# Dependencies to place before the objects being linked to create a
21440# shared library.
21441predeps=$lt_predeps_CXX
21442
21443# Dependencies to place after the objects being linked to create a
21444# shared library.
21445postdeps=$lt_postdeps_CXX
21446
21447# The library search path used internally by the compiler when linking
21448# a shared library.
21449compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21450
21451# Method to check whether dependent libraries are shared objects.
21452deplibs_check_method=$lt_deplibs_check_method
21453
21454# Command to use when deplibs_check_method == file_magic.
21455file_magic_cmd=$lt_file_magic_cmd
21456
21457# Flag that allows shared libraries with undefined symbols to be built.
21458allow_undefined_flag=$lt_allow_undefined_flag_CXX
21459
21460# Flag that forces no undefined symbols.
21461no_undefined_flag=$lt_no_undefined_flag_CXX
21462
21463# Commands used to finish a libtool library installation in a directory.
21464finish_cmds=$lt_finish_cmds
21465
21466# Same as above, but a single script fragment to be evaled but not shown.
21467finish_eval=$lt_finish_eval
21468
21469# Take the output of nm and produce a listing of raw symbols and C names.
21470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21471
21472# Transform the output of nm in a proper C declaration
21473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21474
21475# Transform the output of nm in a C name address pair
21476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21477
21478# This is the shared library runtime path variable.
21479runpath_var=$runpath_var
21480
21481# This is the shared library path variable.
21482shlibpath_var=$shlibpath_var
21483
21484# Is shlibpath searched before the hard-coded library search path?
21485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21486
21487# How to hardcode a shared library path into an executable.
21488hardcode_action=$hardcode_action_CXX
21489
21490# Whether we should hardcode library paths into libraries.
21491hardcode_into_libs=$hardcode_into_libs
21492
21493# Flag to hardcode \$libdir into a binary during linking.
21494# This must work even if \$libdir does not exist.
21495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21496
21497# If ld is used when linking, flag to hardcode \$libdir into
21498# a binary during linking. This must work even if \$libdir does
21499# not exist.
21500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21501
21502# Whether we need a single -rpath flag with a separated argument.
21503hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21504
21505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21506# resulting binary.
21507hardcode_direct=$hardcode_direct_CXX
21508
21509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21510# resulting binary.
21511hardcode_minus_L=$hardcode_minus_L_CXX
21512
21513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21514# the resulting binary.
21515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21516
21517# Set to yes if building a shared library automatically hardcodes DIR into the library
21518# and all subsequent libraries and executables linked against it.
21519hardcode_automatic=$hardcode_automatic_CXX
21520
21521# Variables whose values should be saved in libtool wrapper scripts and
21522# restored at relink time.
21523variables_saved_for_relink="$variables_saved_for_relink"
21524
21525# Whether libtool must link a program against all its dependency libraries.
21526link_all_deplibs=$link_all_deplibs_CXX
21527
21528# Compile-time system search path for libraries
21529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21530
21531# Run-time system search path for libraries
21532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21533
21534# Fix the shell variable \$srcfile for the compiler.
21535fix_srcfile_path="$fix_srcfile_path_CXX"
21536
21537# Set to yes if exported symbols are required.
21538always_export_symbols=$always_export_symbols_CXX
21539
21540# The commands to list exported symbols.
21541export_symbols_cmds=$lt_export_symbols_cmds_CXX
21542
21543# The commands to extract the exported symbol list from a shared archive.
21544extract_expsyms_cmds=$lt_extract_expsyms_cmds
21545
21546# Symbols that should not be listed in the preloaded symbols.
21547exclude_expsyms=$lt_exclude_expsyms_CXX
21548
21549# Symbols that must always be exported.
21550include_expsyms=$lt_include_expsyms_CXX
21551
21552# ### END LIBTOOL TAG CONFIG: $tagname
21553
21554__EOF__
21555
21556
21557else
21558 # If there is no Makefile yet, we rely on a make rule to execute
21559 # `config.status --recheck' to rerun these tests and create the
21560 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21562 if test -f "$ltmain_in"; then
21563 test -f Makefile && make "$ltmain"
21564 fi
John Criswell47fdd832003-07-14 16:52:07 +000021565fi
21566
21567
21568ac_ext=c
21569ac_cpp='$CPP $CPPFLAGS'
21570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574CC=$lt_save_CC
21575LDCXX=$LD
21576LD=$lt_save_LD
21577GCC=$lt_save_GCC
21578with_gnu_ldcxx=$with_gnu_ld
21579with_gnu_ld=$lt_save_with_gnu_ld
21580lt_cv_path_LDCXX=$lt_cv_path_LD
21581lt_cv_path_LD=$lt_save_path_LD
21582lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21583lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21584
21585 else
21586 tagname=""
21587 fi
21588 ;;
21589
21590 F77)
21591 if test -n "$F77" && test "X$F77" != "Xno"; then
21592
21593ac_ext=f
21594ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21595ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21596ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21597
21598
21599archive_cmds_need_lc_F77=no
21600allow_undefined_flag_F77=
21601always_export_symbols_F77=no
21602archive_expsym_cmds_F77=
21603export_dynamic_flag_spec_F77=
21604hardcode_direct_F77=no
21605hardcode_libdir_flag_spec_F77=
21606hardcode_libdir_flag_spec_ld_F77=
21607hardcode_libdir_separator_F77=
21608hardcode_minus_L_F77=no
21609hardcode_automatic_F77=no
21610module_cmds_F77=
21611module_expsym_cmds_F77=
21612link_all_deplibs_F77=unknown
21613old_archive_cmds_F77=$old_archive_cmds
21614no_undefined_flag_F77=
21615whole_archive_flag_spec_F77=
21616enable_shared_with_static_runtimes_F77=no
21617
21618# Source file extension for f77 test sources.
21619ac_ext=f
21620
21621# Object file extension for compiled f77 test sources.
21622objext=o
21623objext_F77=$objext
21624
21625# Code to be used in simple compile tests
21626lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21627
21628# Code to be used in simple link tests
21629lt_simple_link_test_code=" program t\n end\n"
21630
21631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21632
21633# If no C compiler was specified, use CC.
21634LTCC=${LTCC-"$CC"}
21635
Reid Spencera773bd52006-08-04 18:18:08 +000021636# If no C compiler flags were specified, use CFLAGS.
21637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21638
John Criswell47fdd832003-07-14 16:52:07 +000021639# Allow CC to be a program name with arguments.
21640compiler=$CC
21641
21642
Reid Spencera773bd52006-08-04 18:18:08 +000021643# save warnings/boilerplate of simple test code
21644ac_outfile=conftest.$ac_objext
21645printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647_lt_compiler_boilerplate=`cat conftest.err`
21648$rm conftest*
21649
21650ac_outfile=conftest.$ac_objext
21651printf "$lt_simple_link_test_code" >conftest.$ac_ext
21652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21653_lt_linker_boilerplate=`cat conftest.err`
21654$rm conftest*
21655
21656
John Criswell47fdd832003-07-14 16:52:07 +000021657# Allow CC to be a program name with arguments.
21658lt_save_CC="$CC"
21659CC=${F77-"f77"}
21660compiler=$CC
21661compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021662for cc_temp in $compiler""; do
21663 case $cc_temp in
21664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21666 \-*) ;;
21667 *) break;;
21668 esac
21669done
21670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021671
John Criswell47fdd832003-07-14 16:52:07 +000021672
Reid Spencera773bd52006-08-04 18:18:08 +000021673{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21674echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21675{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21676echo "${ECHO_T}$can_build_shared" >&6; }
21677
21678{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21679echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021680test "$can_build_shared" = "no" && enable_shared=no
21681
21682# On AIX, shared libraries and static libraries use the same namespace, and
21683# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021684case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021685aix3*)
21686 test "$enable_shared" = yes && enable_static=no
21687 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021689 postinstall_cmds='$RANLIB $lib'
21690 fi
21691 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021692aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21694 test "$enable_shared" = yes && enable_static=no
21695 fi
John Criswell47fdd832003-07-14 16:52:07 +000021696 ;;
21697esac
Reid Spencera773bd52006-08-04 18:18:08 +000021698{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21699echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021700
Reid Spencera773bd52006-08-04 18:18:08 +000021701{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21702echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021703# Make sure either enable_shared or enable_static is yes.
21704test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021705{ echo "$as_me:$LINENO: result: $enable_static" >&5
21706echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021707
21708GCC_F77="$G77"
21709LD_F77="$LD"
21710
21711lt_prog_compiler_wl_F77=
21712lt_prog_compiler_pic_F77=
21713lt_prog_compiler_static_F77=
21714
Reid Spencera773bd52006-08-04 18:18:08 +000021715{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21716echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021717
21718 if test "$GCC" = yes; then
21719 lt_prog_compiler_wl_F77='-Wl,'
21720 lt_prog_compiler_static_F77='-static'
21721
21722 case $host_os in
21723 aix*)
21724 # All AIX code is PIC.
21725 if test "$host_cpu" = ia64; then
21726 # AIX 5 now supports IA64 processor
21727 lt_prog_compiler_static_F77='-Bstatic'
21728 fi
21729 ;;
21730
21731 amigaos*)
21732 # FIXME: we need at least 68020 code to build shared libraries, but
21733 # adding the `-m68020' flag to GCC prevents building anything better,
21734 # like `-m68040'.
21735 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21736 ;;
21737
21738 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21739 # PIC is the default for these OSes.
21740 ;;
21741
21742 mingw* | pw32* | os2*)
21743 # This hack is so that the source file can tell whether it is being
21744 # built for inclusion in a dll (and should export symbols for example).
21745 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21746 ;;
21747
21748 darwin* | rhapsody*)
21749 # PIC is the default on this platform
21750 # Common symbols not allowed in MH_DYLIB files
21751 lt_prog_compiler_pic_F77='-fno-common'
21752 ;;
21753
Reid Spencera773bd52006-08-04 18:18:08 +000021754 interix3*)
21755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21756 # Instead, we relocate shared libraries at runtime.
21757 ;;
21758
John Criswell47fdd832003-07-14 16:52:07 +000021759 msdosdjgpp*)
21760 # Just because we use GCC doesn't mean we suddenly get shared libraries
21761 # on systems that don't support them.
21762 lt_prog_compiler_can_build_shared_F77=no
21763 enable_shared=no
21764 ;;
21765
21766 sysv4*MP*)
21767 if test -d /usr/nec; then
21768 lt_prog_compiler_pic_F77=-Kconform_pic
21769 fi
21770 ;;
21771
21772 hpux*)
21773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21774 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021775 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021776 hppa*64*|ia64*)
21777 # +Z the default
21778 ;;
21779 *)
21780 lt_prog_compiler_pic_F77='-fPIC'
21781 ;;
21782 esac
21783 ;;
21784
21785 *)
21786 lt_prog_compiler_pic_F77='-fPIC'
21787 ;;
21788 esac
21789 else
21790 # PORTME Check for flag to pass linker flags through the system compiler.
21791 case $host_os in
21792 aix*)
21793 lt_prog_compiler_wl_F77='-Wl,'
21794 if test "$host_cpu" = ia64; then
21795 # AIX 5 now supports IA64 processor
21796 lt_prog_compiler_static_F77='-Bstatic'
21797 else
21798 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21799 fi
21800 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021801 darwin*)
21802 # PIC is the default on this platform
21803 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021804 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021805 xlc*)
21806 lt_prog_compiler_pic_F77='-qnocommon'
21807 lt_prog_compiler_wl_F77='-Wl,'
21808 ;;
21809 esac
21810 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021811
21812 mingw* | pw32* | os2*)
21813 # This hack is so that the source file can tell whether it is being
21814 # built for inclusion in a dll (and should export symbols for example).
21815 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21816 ;;
21817
21818 hpux9* | hpux10* | hpux11*)
21819 lt_prog_compiler_wl_F77='-Wl,'
21820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21821 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021822 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021823 hppa*64*|ia64*)
21824 # +Z the default
21825 ;;
21826 *)
21827 lt_prog_compiler_pic_F77='+Z'
21828 ;;
21829 esac
21830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21831 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21832 ;;
21833
21834 irix5* | irix6* | nonstopux*)
21835 lt_prog_compiler_wl_F77='-Wl,'
21836 # PIC (with -KPIC) is the default.
21837 lt_prog_compiler_static_F77='-non_shared'
21838 ;;
21839
21840 newsos6)
21841 lt_prog_compiler_pic_F77='-KPIC'
21842 lt_prog_compiler_static_F77='-Bstatic'
21843 ;;
21844
21845 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021846 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021848 lt_prog_compiler_wl_F77='-Wl,'
21849 lt_prog_compiler_pic_F77='-KPIC'
21850 lt_prog_compiler_static_F77='-static'
21851 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021852 pgcc* | pgf77* | pgf90* | pgf95*)
21853 # Portland Group compilers (*not* the Pentium gcc compiler,
21854 # which looks to be a dead project)
21855 lt_prog_compiler_wl_F77='-Wl,'
21856 lt_prog_compiler_pic_F77='-fpic'
21857 lt_prog_compiler_static_F77='-Bstatic'
21858 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021860 lt_prog_compiler_wl_F77='-Wl,'
21861 # All Alpha code is PIC.
21862 lt_prog_compiler_static_F77='-non_shared'
21863 ;;
21864 esac
21865 ;;
21866
21867 osf3* | osf4* | osf5*)
21868 lt_prog_compiler_wl_F77='-Wl,'
21869 # All OSF/1 code is PIC.
21870 lt_prog_compiler_static_F77='-non_shared'
21871 ;;
21872
John Criswell47fdd832003-07-14 16:52:07 +000021873 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021874 lt_prog_compiler_pic_F77='-KPIC'
21875 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021876 case $cc_basename in
21877 f77* | f90* | f95*)
21878 lt_prog_compiler_wl_F77='-Qoption ld ';;
21879 *)
21880 lt_prog_compiler_wl_F77='-Wl,';;
21881 esac
John Criswell47fdd832003-07-14 16:52:07 +000021882 ;;
21883
21884 sunos4*)
21885 lt_prog_compiler_wl_F77='-Qoption ld '
21886 lt_prog_compiler_pic_F77='-PIC'
21887 lt_prog_compiler_static_F77='-Bstatic'
21888 ;;
21889
Reid Spencera773bd52006-08-04 18:18:08 +000021890 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021891 lt_prog_compiler_wl_F77='-Wl,'
21892 lt_prog_compiler_pic_F77='-KPIC'
21893 lt_prog_compiler_static_F77='-Bstatic'
21894 ;;
21895
21896 sysv4*MP*)
21897 if test -d /usr/nec ;then
21898 lt_prog_compiler_pic_F77='-Kconform_pic'
21899 lt_prog_compiler_static_F77='-Bstatic'
21900 fi
21901 ;;
21902
Reid Spencera773bd52006-08-04 18:18:08 +000021903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21904 lt_prog_compiler_wl_F77='-Wl,'
21905 lt_prog_compiler_pic_F77='-KPIC'
21906 lt_prog_compiler_static_F77='-Bstatic'
21907 ;;
21908
21909 unicos*)
21910 lt_prog_compiler_wl_F77='-Wl,'
21911 lt_prog_compiler_can_build_shared_F77=no
21912 ;;
21913
John Criswell47fdd832003-07-14 16:52:07 +000021914 uts4*)
21915 lt_prog_compiler_pic_F77='-pic'
21916 lt_prog_compiler_static_F77='-Bstatic'
21917 ;;
21918
21919 *)
21920 lt_prog_compiler_can_build_shared_F77=no
21921 ;;
21922 esac
21923 fi
21924
Reid Spencera773bd52006-08-04 18:18:08 +000021925{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21926echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021927
21928#
21929# Check to make sure the PIC flag actually works.
21930#
21931if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021932
Reid Spencera773bd52006-08-04 18:18:08 +000021933{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21934echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021935if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938 lt_prog_compiler_pic_works_F77=no
21939 ac_outfile=conftest.$ac_objext
21940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21941 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21942 # Insert the option either (1) after the last *FLAGS variable, or
21943 # (2) before a word containing "conftest.", or (3) at the end.
21944 # Note that $ac_compile itself does not contain backslashes and begins
21945 # with a dollar sign (not a hyphen), so the echo should work correctly.
21946 # The option is referenced via a variable to avoid confusing sed.
21947 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21950 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021951 (eval echo "\"\$as_me:21951: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021952 (eval "$lt_compile" 2>conftest.err)
21953 ac_status=$?
21954 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021955 echo "$as_me:21955: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021956 if (exit $ac_status) && test -s "$ac_outfile"; then
21957 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021958 # So say no if there are warnings other than the usual output.
21959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021962 lt_prog_compiler_pic_works_F77=yes
21963 fi
21964 fi
21965 $rm conftest*
21966
21967fi
Reid Spencera773bd52006-08-04 18:18:08 +000021968{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21969echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021970
21971if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21972 case $lt_prog_compiler_pic_F77 in
21973 "" | " "*) ;;
21974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21975 esac
21976else
21977 lt_prog_compiler_pic_F77=
21978 lt_prog_compiler_can_build_shared_F77=no
21979fi
21980
21981fi
Reid Spencera773bd52006-08-04 18:18:08 +000021982case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021983 # For platforms which do not support PIC, -DPIC is meaningless:
21984 *djgpp*)
21985 lt_prog_compiler_pic_F77=
21986 ;;
21987 *)
21988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21989 ;;
21990esac
21991
Reid Spencera773bd52006-08-04 18:18:08 +000021992#
21993# Check to make sure the static flag actually works.
21994#
21995wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21996{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21997echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21998if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000else
22001 lt_prog_compiler_static_works_F77=no
22002 save_LDFLAGS="$LDFLAGS"
22003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22004 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22006 # The linker can only warn and ignore the option if not recognized
22007 # So say no if there are warnings
22008 if test -s conftest.err; then
22009 # Append any errors to the config.log.
22010 cat conftest.err 1>&5
22011 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22013 if diff conftest.exp conftest.er2 >/dev/null; then
22014 lt_prog_compiler_static_works_F77=yes
22015 fi
22016 else
22017 lt_prog_compiler_static_works_F77=yes
22018 fi
22019 fi
22020 $rm conftest*
22021 LDFLAGS="$save_LDFLAGS"
22022
22023fi
22024{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22025echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22026
22027if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22028 :
22029else
22030 lt_prog_compiler_static_F77=
22031fi
22032
22033
22034{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22035echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022036if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039 lt_cv_prog_compiler_c_o_F77=no
22040 $rm -r conftest 2>/dev/null
22041 mkdir conftest
22042 cd conftest
22043 mkdir out
22044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22045
John Criswell47fdd832003-07-14 16:52:07 +000022046 lt_compiler_flag="-o out/conftest2.$ac_objext"
22047 # Insert the option either (1) after the last *FLAGS variable, or
22048 # (2) before a word containing "conftest.", or (3) at the end.
22049 # Note that $ac_compile itself does not contain backslashes and begins
22050 # with a dollar sign (not a hyphen), so the echo should work correctly.
22051 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000022052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000022053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22054 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022055 (eval echo "\"\$as_me:22055: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000022056 (eval "$lt_compile" 2>out/conftest.err)
22057 ac_status=$?
22058 cat out/conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022059 echo "$as_me:22059: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000022060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22061 then
22062 # The compiler can only warn and ignore the option if not recognized
22063 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000022064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000022067 lt_cv_prog_compiler_c_o_F77=yes
22068 fi
22069 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022070 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022071 $rm conftest*
22072 # SGI C++ compiler will create directory out/ii_files/ for
22073 # template instantiation
22074 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22075 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022076 cd ..
22077 rmdir conftest
22078 $rm conftest*
22079
22080fi
Reid Spencera773bd52006-08-04 18:18:08 +000022081{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22082echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022083
22084
22085hard_links="nottested"
22086if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22087 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022088 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22089echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022090 hard_links=yes
22091 $rm conftest*
22092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22093 touch conftest.a
22094 ln conftest.a conftest.b 2>&5 || hard_links=no
22095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022096 { echo "$as_me:$LINENO: result: $hard_links" >&5
22097echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022098 if test "$hard_links" = no; then
22099 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22100echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22101 need_locks=warn
22102 fi
22103else
22104 need_locks=no
22105fi
22106
Reid Spencera773bd52006-08-04 18:18:08 +000022107{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22108echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022109
22110 runpath_var=
22111 allow_undefined_flag_F77=
22112 enable_shared_with_static_runtimes_F77=no
22113 archive_cmds_F77=
22114 archive_expsym_cmds_F77=
22115 old_archive_From_new_cmds_F77=
22116 old_archive_from_expsyms_cmds_F77=
22117 export_dynamic_flag_spec_F77=
22118 whole_archive_flag_spec_F77=
22119 thread_safe_flag_spec_F77=
22120 hardcode_libdir_flag_spec_F77=
22121 hardcode_libdir_flag_spec_ld_F77=
22122 hardcode_libdir_separator_F77=
22123 hardcode_direct_F77=no
22124 hardcode_minus_L_F77=no
22125 hardcode_shlibpath_var_F77=unsupported
22126 link_all_deplibs_F77=unknown
22127 hardcode_automatic_F77=no
22128 module_cmds_F77=
22129 module_expsym_cmds_F77=
22130 always_export_symbols_F77=no
22131 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22132 # include_expsyms should be a list of space-separated symbols to be *always*
22133 # included in the symbol list
22134 include_expsyms_F77=
22135 # exclude_expsyms can be an extended regexp of symbols to exclude
22136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22138 # as well as any symbol that contains `d'.
22139 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22141 # platforms (ab)use it in PIC code, but their linkers get confused if
22142 # the symbol is explicitly referenced. Since portable code cannot
22143 # rely on this symbol name, it's probably fine to never include it in
22144 # preloaded symbol tables.
22145 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022146 # Just being paranoid about ensuring that cc_basename is set.
22147 for cc_temp in $compiler""; do
22148 case $cc_temp in
22149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22151 \-*) ;;
22152 *) break;;
22153 esac
22154done
22155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022156
22157 case $host_os in
22158 cygwin* | mingw* | pw32*)
22159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22160 # When not using gcc, we currently assume that we are using
22161 # Microsoft Visual C++.
22162 if test "$GCC" != yes; then
22163 with_gnu_ld=no
22164 fi
22165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022166 interix*)
22167 # we just hope/assume this is gcc and not c89 (= MSVC++)
22168 with_gnu_ld=yes
22169 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022170 openbsd*)
22171 with_gnu_ld=no
22172 ;;
22173 esac
22174
22175 ld_shlibs_F77=yes
22176 if test "$with_gnu_ld" = yes; then
22177 # If archive_cmds runs LD, not CC, wlarc should be empty
22178 wlarc='${wl}'
22179
Reid Spencera773bd52006-08-04 18:18:08 +000022180 # Set some defaults for GNU ld with shared library support. These
22181 # are reset later if shared libraries are not supported. Putting them
22182 # here allows them to be overridden if necessary.
22183 runpath_var=LD_RUN_PATH
22184 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22185 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22186 # ancient GNU ld didn't support --whole-archive et. al.
22187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22188 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22189 else
22190 whole_archive_flag_spec_F77=
22191 fi
22192 supports_anon_versioning=no
22193 case `$LD -v 2>/dev/null` in
22194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22197 *\ 2.11.*) ;; # other 2.11 versions
22198 *) supports_anon_versioning=yes ;;
22199 esac
22200
John Criswell47fdd832003-07-14 16:52:07 +000022201 # See if GNU ld supports shared libraries.
22202 case $host_os in
22203 aix3* | aix4* | aix5*)
22204 # On AIX/PPC, the GNU linker is very broken
22205 if test "$host_cpu" != ia64; then
22206 ld_shlibs_F77=no
22207 cat <<EOF 1>&2
22208
22209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22210*** to be unable to reliably create shared libraries on AIX.
22211*** Therefore, libtool is disabling shared libraries support. If you
22212*** really care for shared libraries, you may want to modify your PATH
22213*** so that a non-GNU linker is found, and then restart.
22214
22215EOF
22216 fi
22217 ;;
22218
22219 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022220 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 +000022221 hardcode_libdir_flag_spec_F77='-L$libdir'
22222 hardcode_minus_L_F77=yes
22223
22224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22225 # that the semantics of dynamic libraries on AmigaOS, at least up
22226 # to version 4, is to share data among multiple programs linked
22227 # with the same dynamic library. Since this doesn't match the
22228 # behavior of shared libraries on other platforms, we can't use
22229 # them.
22230 ld_shlibs_F77=no
22231 ;;
22232
22233 beos*)
22234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22235 allow_undefined_flag_F77=unsupported
22236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22237 # support --undefined. This deserves some investigation. FIXME
22238 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239 else
22240 ld_shlibs_F77=no
22241 fi
22242 ;;
22243
22244 cygwin* | mingw* | pw32*)
22245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22246 # as there is no search path for DLLs.
22247 hardcode_libdir_flag_spec_F77='-L$libdir'
22248 allow_undefined_flag_F77=unsupported
22249 always_export_symbols_F77=no
22250 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022251 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 +000022252
22253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022254 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 +000022255 # If the export-symbols file already is a .def file (1st line
22256 # is EXPORTS), use it as is; otherwise, prepend...
22257 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22258 cp $export_symbols $output_objdir/$soname.def;
22259 else
22260 echo EXPORTS > $output_objdir/$soname.def;
22261 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022262 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022263 $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 +000022264 else
Reid Spencera773bd52006-08-04 18:18:08 +000022265 ld_shlibs_F77=no
22266 fi
22267 ;;
22268
22269 interix3*)
22270 hardcode_direct_F77=no
22271 hardcode_shlibpath_var_F77=no
22272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273 export_dynamic_flag_spec_F77='${wl}-E'
22274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22275 # Instead, shared libraries are loaded at an image base (0x10000000 by
22276 # default) and relocated if they conflict, which is a slow very memory
22277 # consuming and fragmenting process. To avoid this, we pick a random,
22278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22280 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'
22281 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'
22282 ;;
22283
22284 linux*)
22285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22286 tmp_addflag=
22287 case $cc_basename,$host_cpu in
22288 pgcc*) # Portland Group C compiler
22289 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'
22290 tmp_addflag=' $pic_flag'
22291 ;;
22292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22293 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'
22294 tmp_addflag=' $pic_flag -Mnomain' ;;
22295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22296 tmp_addflag=' -i_dynamic' ;;
22297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22298 tmp_addflag=' -i_dynamic -nofor_main' ;;
22299 ifc* | ifort*) # Intel Fortran compiler
22300 tmp_addflag=' -nofor_main' ;;
22301 esac
22302 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22303
22304 if test $supports_anon_versioning = yes; then
22305 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22307 $echo "local: *; };" >> $output_objdir/$libname.ver~
22308 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22309 fi
22310 else
22311 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022312 fi
22313 ;;
22314
22315 netbsd*)
22316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22317 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22318 wlarc=
22319 else
22320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22322 fi
22323 ;;
22324
Reid Spencera773bd52006-08-04 18:18:08 +000022325 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022326 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22327 ld_shlibs_F77=no
22328 cat <<EOF 1>&2
22329
22330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22331*** create shared libraries on Solaris systems. Therefore, libtool
22332*** is disabling shared libraries support. We urge you to upgrade GNU
22333*** binutils to release 2.9.1 or newer. Another option is to modify
22334*** your PATH or compiler configuration so that the native linker is
22335*** used, and then restart.
22336
22337EOF
22338 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22339 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22340 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22341 else
22342 ld_shlibs_F77=no
22343 fi
22344 ;;
22345
Reid Spencera773bd52006-08-04 18:18:08 +000022346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22347 case `$LD -v 2>&1` in
22348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22349 ld_shlibs_F77=no
22350 cat <<_LT_EOF 1>&2
22351
22352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22353*** reliably create shared libraries on SCO systems. Therefore, libtool
22354*** is disabling shared libraries support. We urge you to upgrade GNU
22355*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22356*** your PATH or compiler configuration so that the native linker is
22357*** used, and then restart.
22358
22359_LT_EOF
22360 ;;
22361 *)
22362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22363 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22366 else
22367 ld_shlibs_F77=no
22368 fi
22369 ;;
22370 esac
22371 ;;
22372
John Criswell47fdd832003-07-14 16:52:07 +000022373 sunos4*)
22374 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22375 wlarc=
22376 hardcode_direct_F77=yes
22377 hardcode_shlibpath_var_F77=no
22378 ;;
22379
22380 *)
22381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22384 else
22385 ld_shlibs_F77=no
22386 fi
22387 ;;
22388 esac
22389
Reid Spencera773bd52006-08-04 18:18:08 +000022390 if test "$ld_shlibs_F77" = no; then
22391 runpath_var=
22392 hardcode_libdir_flag_spec_F77=
22393 export_dynamic_flag_spec_F77=
22394 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022395 fi
22396 else
22397 # PORTME fill in a description of your system's linker (not GNU ld)
22398 case $host_os in
22399 aix3*)
22400 allow_undefined_flag_F77=unsupported
22401 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022402 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 +000022403 # Note: this linker hardcodes the directories in LIBPATH if there
22404 # are no directories specified by -L.
22405 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022407 # Neither direct hardcoding nor static linking is supported with a
22408 # broken collect2.
22409 hardcode_direct_F77=unsupported
22410 fi
22411 ;;
22412
22413 aix4* | aix5*)
22414 if test "$host_cpu" = ia64; then
22415 # On IA64, the linker does run time linking by default, so we don't
22416 # have to do anything special.
22417 aix_use_runtimelinking=no
22418 exp_sym_flag='-Bexport'
22419 no_entry_flag=""
22420 else
22421 # If we're using GNU nm, then we don't want the "-C" option.
22422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22423 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22424 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'
22425 else
22426 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'
22427 fi
22428 aix_use_runtimelinking=no
22429
22430 # Test if we are trying to use run time linking or normal
22431 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22432 # need to do runtime linking.
22433 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22434 for ld_flag in $LDFLAGS; do
22435 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22436 aix_use_runtimelinking=yes
22437 break
22438 fi
22439 done
Reid Spencera773bd52006-08-04 18:18:08 +000022440 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022441 esac
22442
22443 exp_sym_flag='-bexport'
22444 no_entry_flag='-bnoentry'
22445 fi
22446
22447 # When large executables or shared objects are built, AIX ld can
22448 # have problems creating the table of contents. If linking a library
22449 # or program results in "error TOC overflow" add -mminimal-toc to
22450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22452
22453 archive_cmds_F77=''
22454 hardcode_direct_F77=yes
22455 hardcode_libdir_separator_F77=':'
22456 link_all_deplibs_F77=yes
22457
22458 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022459 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022460 # We only want to do this on AIX 4.2 and lower, the check
22461 # below for broken collect2 doesn't work under 4.3+
22462 collect2name=`${CC} -print-prog-name=collect2`
22463 if test -f "$collect2name" && \
22464 strings "$collect2name" | grep resolve_lib_name >/dev/null
22465 then
22466 # We have reworked collect2
22467 hardcode_direct_F77=yes
22468 else
22469 # We have old collect2
22470 hardcode_direct_F77=unsupported
22471 # It fails to find uninstalled libraries when the uninstalled
22472 # path is not listed in the libpath. Setting hardcode_minus_L
22473 # to unsupported forces relinking
22474 hardcode_minus_L_F77=yes
22475 hardcode_libdir_flag_spec_F77='-L$libdir'
22476 hardcode_libdir_separator_F77=
22477 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022479 esac
22480 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022481 if test "$aix_use_runtimelinking" = yes; then
22482 shared_flag="$shared_flag "'${wl}-G'
22483 fi
John Criswell47fdd832003-07-14 16:52:07 +000022484 else
22485 # not using gcc
22486 if test "$host_cpu" = ia64; then
22487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22488 # chokes on -Wl,-G. The following line is correct:
22489 shared_flag='-G'
22490 else
Reid Spencera773bd52006-08-04 18:18:08 +000022491 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022492 shared_flag='${wl}-G'
22493 else
22494 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022495 fi
John Criswell47fdd832003-07-14 16:52:07 +000022496 fi
22497 fi
22498
22499 # It seems that -bexpall does not export symbols beginning with
22500 # underscore (_), so it is better to generate a list of symbols to export.
22501 always_export_symbols_F77=yes
22502 if test "$aix_use_runtimelinking" = yes; then
22503 # Warning - without using the other runtime loading flags (-brtl),
22504 # -berok will link without error, but may produce a broken library.
22505 allow_undefined_flag_F77='-berok'
22506 # Determine the default libpath from the value encoded in an empty executable.
22507 cat >conftest.$ac_ext <<_ACEOF
22508 program main
22509
22510 end
22511_ACEOF
22512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022513if { (ac_try="$ac_link"
22514case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517esac
22518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530esac
22531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest$ac_exeext'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22540esac
22541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022546
22547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22548}'`
22549# Check for a 64-bit object if we didn't find anything.
22550if 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; }
22551}'`; fi
22552else
22553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022554sed 's/^/| /' conftest.$ac_ext >&5
22555
Reid Spencera773bd52006-08-04 18:18:08 +000022556
John Criswell47fdd832003-07-14 16:52:07 +000022557fi
Reid Spencera773bd52006-08-04 18:18:08 +000022558
Bill Wendlingebcceee2009-04-18 11:20:33 +000022559rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022560 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22562
22563 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022564 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 +000022565 else
22566 if test "$host_cpu" = ia64; then
22567 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22568 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022569 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 +000022570 else
22571 # Determine the default libpath from the value encoded in an empty executable.
22572 cat >conftest.$ac_ext <<_ACEOF
22573 program main
22574
22575 end
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022578if { (ac_try="$ac_link"
22579case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022590 (exit $ac_status); } &&
22591 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22592 { (case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595esac
22596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_try") 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest$ac_exeext'
22602 { (case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605esac
22606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_try") 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022611
22612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22613}'`
22614# Check for a 64-bit object if we didn't find anything.
22615if 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; }
22616}'`; fi
22617else
22618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022619sed 's/^/| /' conftest.$ac_ext >&5
22620
Reid Spencera773bd52006-08-04 18:18:08 +000022621
John Criswell47fdd832003-07-14 16:52:07 +000022622fi
Reid Spencera773bd52006-08-04 18:18:08 +000022623
Bill Wendlingebcceee2009-04-18 11:20:33 +000022624rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022625 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22627
22628 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22629 # Warning - without using the other run time loading flags,
22630 # -berok will link without error, but may produce a broken library.
22631 no_undefined_flag_F77=' ${wl}-bernotok'
22632 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022633 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022634 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022635 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022636 # This is similar to how AIX traditionally builds its shared libraries.
22637 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 +000022638 fi
22639 fi
22640 ;;
22641
22642 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022643 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 +000022644 hardcode_libdir_flag_spec_F77='-L$libdir'
22645 hardcode_minus_L_F77=yes
22646 # see comment about different semantics on the GNU ld section
22647 ld_shlibs_F77=no
22648 ;;
22649
Reid Spencer2706f8c2004-09-19 23:53:36 +000022650 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022651 export_dynamic_flag_spec_F77=-rdynamic
22652 ;;
22653
22654 cygwin* | mingw* | pw32*)
22655 # When not using gcc, we currently assume that we are using
22656 # Microsoft Visual C++.
22657 # hardcode_libdir_flag_spec is actually meaningless, as there is
22658 # no search path for DLLs.
22659 hardcode_libdir_flag_spec_F77=' '
22660 allow_undefined_flag_F77=unsupported
22661 # Tell ltmain to make .lib files, not .a files.
22662 libext=lib
22663 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022665 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022666 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 +000022667 # The linker will automatically build a .lib file if we build a DLL.
22668 old_archive_From_new_cmds_F77='true'
22669 # FIXME: Should let the user specify the lib program.
22670 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022671 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022672 enable_shared_with_static_runtimes_F77=yes
22673 ;;
22674
22675 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022676 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677 rhapsody* | darwin1.[012])
22678 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22679 ;;
22680 *) # Darwin 1.3 on
22681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22682 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22683 else
22684 case ${MACOSX_DEPLOYMENT_TARGET} in
22685 10.[012])
22686 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22687 ;;
22688 10.*)
22689 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22690 ;;
22691 esac
22692 fi
22693 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022694 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022695 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022696 hardcode_direct_F77=no
22697 hardcode_automatic_F77=yes
22698 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022699 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022700 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022701 if test "$GCC" = yes ; then
22702 output_verbose_link_cmd='echo'
22703 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22704 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022705 # 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 +000022706 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}'
22707 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 +000022708 else
Reid Spencera773bd52006-08-04 18:18:08 +000022709 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022710 xlc*)
22711 output_verbose_link_cmd='echo'
22712 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22713 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022714 # 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 +000022715 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}'
22716 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 +000022717 ;;
22718 *)
22719 ld_shlibs_F77=no
22720 ;;
22721 esac
John Criswell47fdd832003-07-14 16:52:07 +000022722 fi
22723 ;;
22724
22725 dgux*)
22726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 hardcode_libdir_flag_spec_F77='-L$libdir'
22728 hardcode_shlibpath_var_F77=no
22729 ;;
22730
22731 freebsd1*)
22732 ld_shlibs_F77=no
22733 ;;
22734
22735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22736 # support. Future versions do this automatically, but an explicit c++rt0.o
22737 # does not break anything, and helps significantly (at the cost of a little
22738 # extra space).
22739 freebsd2.2*)
22740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22741 hardcode_libdir_flag_spec_F77='-R$libdir'
22742 hardcode_direct_F77=yes
22743 hardcode_shlibpath_var_F77=no
22744 ;;
22745
22746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22747 freebsd2*)
22748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22749 hardcode_direct_F77=yes
22750 hardcode_minus_L_F77=yes
22751 hardcode_shlibpath_var_F77=no
22752 ;;
22753
22754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022755 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022756 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22757 hardcode_libdir_flag_spec_F77='-R$libdir'
22758 hardcode_direct_F77=yes
22759 hardcode_shlibpath_var_F77=no
22760 ;;
22761
22762 hpux9*)
22763 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022764 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 +000022765 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022766 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 +000022767 fi
22768 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22769 hardcode_libdir_separator_F77=:
22770 hardcode_direct_F77=yes
22771
22772 # hardcode_minus_L: Not really in the search PATH,
22773 # but as the default location of the library.
22774 hardcode_minus_L_F77=yes
22775 export_dynamic_flag_spec_F77='${wl}-E'
22776 ;;
22777
Reid Spencera773bd52006-08-04 18:18:08 +000022778 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022780 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22781 else
22782 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22783 fi
22784 if test "$with_gnu_ld" = no; then
22785 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22786 hardcode_libdir_separator_F77=:
22787
22788 hardcode_direct_F77=yes
22789 export_dynamic_flag_spec_F77='${wl}-E'
22790
22791 # hardcode_minus_L: Not really in the search PATH,
22792 # but as the default location of the library.
22793 hardcode_minus_L_F77=yes
22794 fi
22795 ;;
22796
22797 hpux11*)
22798 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22799 case $host_cpu in
22800 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022801 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022803 ia64*)
22804 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022806 *)
22807 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22808 ;;
22809 esac
22810 else
Reid Spencera773bd52006-08-04 18:18:08 +000022811 case $host_cpu in
22812 hppa*64*)
22813 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22814 ;;
22815 ia64*)
22816 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022817 ;;
22818 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022819 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 +000022820 ;;
22821 esac
22822 fi
22823 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22825 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022826
Reid Spencera773bd52006-08-04 18:18:08 +000022827 case $host_cpu in
22828 hppa*64*|ia64*)
22829 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22830 hardcode_direct_F77=no
22831 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022832 ;;
22833 *)
John Criswell47fdd832003-07-14 16:52:07 +000022834 hardcode_direct_F77=yes
22835 export_dynamic_flag_spec_F77='${wl}-E'
22836
22837 # hardcode_minus_L: Not really in the search PATH,
22838 # but as the default location of the library.
22839 hardcode_minus_L_F77=yes
22840 ;;
22841 esac
22842 fi
22843 ;;
22844
22845 irix5* | irix6* | nonstopux*)
22846 if test "$GCC" = yes; then
22847 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'
22848 else
22849 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'
22850 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22851 fi
22852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22853 hardcode_libdir_separator_F77=:
22854 link_all_deplibs_F77=yes
22855 ;;
22856
22857 netbsd*)
22858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22859 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22860 else
22861 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22862 fi
22863 hardcode_libdir_flag_spec_F77='-R$libdir'
22864 hardcode_direct_F77=yes
22865 hardcode_shlibpath_var_F77=no
22866 ;;
22867
22868 newsos6)
22869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22870 hardcode_direct_F77=yes
22871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22872 hardcode_libdir_separator_F77=:
22873 hardcode_shlibpath_var_F77=no
22874 ;;
22875
22876 openbsd*)
22877 hardcode_direct_F77=yes
22878 hardcode_shlibpath_var_F77=no
22879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22880 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022881 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 +000022882 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22883 export_dynamic_flag_spec_F77='${wl}-E'
22884 else
22885 case $host_os in
22886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22888 hardcode_libdir_flag_spec_F77='-R$libdir'
22889 ;;
22890 *)
22891 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22893 ;;
22894 esac
22895 fi
22896 ;;
22897
22898 os2*)
22899 hardcode_libdir_flag_spec_F77='-L$libdir'
22900 hardcode_minus_L_F77=yes
22901 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022902 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 +000022903 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22904 ;;
22905
22906 osf3*)
22907 if test "$GCC" = yes; then
22908 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22909 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'
22910 else
22911 allow_undefined_flag_F77=' -expect_unresolved \*'
22912 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'
22913 fi
22914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915 hardcode_libdir_separator_F77=:
22916 ;;
22917
22918 osf4* | osf5*) # as osf3* with the addition of -msym flag
22919 if test "$GCC" = yes; then
22920 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22921 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'
22922 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22923 else
22924 allow_undefined_flag_F77=' -expect_unresolved \*'
22925 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 +000022926 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 +000022927 $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 +000022928
John Criswell47fdd832003-07-14 16:52:07 +000022929 # Both c and cxx compiler support -rpath directly
22930 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22931 fi
22932 hardcode_libdir_separator_F77=:
22933 ;;
22934
John Criswell47fdd832003-07-14 16:52:07 +000022935 solaris*)
22936 no_undefined_flag_F77=' -z text'
22937 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022938 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022939 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022940 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22941 $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 +000022942 else
Reid Spencera773bd52006-08-04 18:18:08 +000022943 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022944 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022945 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22946 $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 +000022947 fi
22948 hardcode_libdir_flag_spec_F77='-R$libdir'
22949 hardcode_shlibpath_var_F77=no
22950 case $host_os in
22951 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022952 *)
22953 # The compiler driver will combine linker options so we
22954 # cannot just pass the convience library names through
22955 # without $wl, iff we do not link with $LD.
22956 # Luckily, gcc supports the same syntax we need for Sun Studio.
22957 # Supported since Solaris 2.6 (maybe 2.5.1?)
22958 case $wlarc in
22959 '')
22960 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22961 *)
22962 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' ;;
22963 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022964 esac
22965 link_all_deplibs_F77=yes
22966 ;;
22967
22968 sunos4*)
22969 if test "x$host_vendor" = xsequent; then
22970 # Use $CC to link under sequent, because it throws in some extra .o
22971 # files that make .init and .fini sections work.
22972 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22973 else
22974 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22975 fi
22976 hardcode_libdir_flag_spec_F77='-L$libdir'
22977 hardcode_direct_F77=yes
22978 hardcode_minus_L_F77=yes
22979 hardcode_shlibpath_var_F77=no
22980 ;;
22981
22982 sysv4)
22983 case $host_vendor in
22984 sni)
22985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22986 hardcode_direct_F77=yes # is this really true???
22987 ;;
22988 siemens)
22989 ## LD is ld it makes a PLAMLIB
22990 ## CC just makes a GrossModule.
22991 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22992 reload_cmds_F77='$CC -r -o $output$reload_objs'
22993 hardcode_direct_F77=no
22994 ;;
22995 motorola)
22996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22997 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22998 ;;
22999 esac
23000 runpath_var='LD_RUN_PATH'
23001 hardcode_shlibpath_var_F77=no
23002 ;;
23003
23004 sysv4.3*)
23005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23006 hardcode_shlibpath_var_F77=no
23007 export_dynamic_flag_spec_F77='-Bexport'
23008 ;;
23009
23010 sysv4*MP*)
23011 if test -d /usr/nec; then
23012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23013 hardcode_shlibpath_var_F77=no
23014 runpath_var=LD_RUN_PATH
23015 hardcode_runpath_var=yes
23016 ld_shlibs_F77=yes
23017 fi
23018 ;;
23019
Reid Spencera773bd52006-08-04 18:18:08 +000023020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23021 no_undefined_flag_F77='${wl}-z,text'
23022 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000023023 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000023024 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000023025
John Criswell47fdd832003-07-14 16:52:07 +000023026 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000023027 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23028 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 +000023029 else
Reid Spencera773bd52006-08-04 18:18:08 +000023030 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23031 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 +000023032 fi
John Criswell47fdd832003-07-14 16:52:07 +000023033 ;;
23034
Reid Spencera773bd52006-08-04 18:18:08 +000023035 sysv5* | sco3.2v5* | sco5v6*)
23036 # Note: We can NOT use -z defs as we might desire, because we do not
23037 # link with -lc, and that would cause any symbols used from libc to
23038 # always be unresolved, which means just about no library would
23039 # ever link correctly. If we're not using GNU ld we use -z text
23040 # though, which does catch some bad symbols but isn't as heavy-handed
23041 # as -z defs.
23042 no_undefined_flag_F77='${wl}-z,text'
23043 allow_undefined_flag_F77='${wl}-z,nodefs'
23044 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000023045 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000023046 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23047 hardcode_libdir_separator_F77=':'
23048 link_all_deplibs_F77=yes
23049 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000023050 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000023051
23052 if test "$GCC" = yes; then
23053 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23054 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23055 else
23056 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23057 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23058 fi
John Criswell47fdd832003-07-14 16:52:07 +000023059 ;;
23060
23061 uts4*)
23062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23063 hardcode_libdir_flag_spec_F77='-L$libdir'
23064 hardcode_shlibpath_var_F77=no
23065 ;;
23066
23067 *)
23068 ld_shlibs_F77=no
23069 ;;
23070 esac
23071 fi
23072
Reid Spencera773bd52006-08-04 18:18:08 +000023073{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23074echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023075test "$ld_shlibs_F77" = no && can_build_shared=no
23076
John Criswell47fdd832003-07-14 16:52:07 +000023077#
23078# Do we need to explicitly link libc?
23079#
23080case "x$archive_cmds_need_lc_F77" in
23081x|xyes)
23082 # Assume -lc should be added
23083 archive_cmds_need_lc_F77=yes
23084
23085 if test "$enable_shared" = yes && test "$GCC" = yes; then
23086 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023087 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023088 # FIXME: we may have to deal with multi-command sequences.
23089 ;;
23090 '$CC '*)
23091 # Test whether the compiler implicitly links with -lc since on some
23092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23093 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23095echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023096 $rm conftest*
23097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23098
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100 (eval $ac_compile) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } 2>conftest.err; then
23104 soname=conftest
23105 lib=conftest
23106 libobjs=conftest.$ac_objext
23107 deplibs=
23108 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000023109 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000023110 compiler_flags=-v
23111 linker_flags=-v
23112 verstring=
23113 output_objdir=.
23114 libname=conftest
23115 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23116 allow_undefined_flag_F77=
23117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23118 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }
23122 then
23123 archive_cmds_need_lc_F77=no
23124 else
23125 archive_cmds_need_lc_F77=yes
23126 fi
23127 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23128 else
23129 cat conftest.err 1>&5
23130 fi
23131 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23133echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023134 ;;
23135 esac
23136 fi
23137 ;;
23138esac
23139
Reid Spencera773bd52006-08-04 18:18:08 +000023140{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23141echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023142library_names_spec=
23143libname_spec='lib$name'
23144soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023146postinstall_cmds=
23147postuninstall_cmds=
23148finish_cmds=
23149finish_eval=
23150shlibpath_var=
23151shlibpath_overrides_runpath=unknown
23152version_type=none
23153dynamic_linker="$host_os ld.so"
23154sys_lib_dlsearch_path_spec="/lib /usr/lib"
23155if test "$GCC" = yes; then
23156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23157 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23158 # if the path contains ";" then we assume it to be the separator
23159 # otherwise default to the standard path separator (i.e. ":") - it is
23160 # assumed that no part of a normal pathname contains ";" but that should
23161 # okay in the real world where ";" in dirpaths is itself problematic.
23162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23163 else
23164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23165 fi
23166else
23167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23168fi
23169need_lib_prefix=unknown
23170hardcode_into_libs=no
23171
23172# when you set need_version to no, make sure it does not cause -set_version
23173# flags to be left without arguments
23174need_version=unknown
23175
23176case $host_os in
23177aix3*)
23178 version_type=linux
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23180 shlibpath_var=LIBPATH
23181
23182 # AIX 3 has no versioning support, so we append a major version to the name.
23183 soname_spec='${libname}${release}${shared_ext}$major'
23184 ;;
23185
23186aix4* | aix5*)
23187 version_type=linux
23188 need_lib_prefix=no
23189 need_version=no
23190 hardcode_into_libs=yes
23191 if test "$host_cpu" = ia64; then
23192 # AIX 5 supports IA64
23193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23194 shlibpath_var=LD_LIBRARY_PATH
23195 else
23196 # With GCC up to 2.95.x, collect2 would create an import file
23197 # for dependence libraries. The import file would start with
23198 # the line `#! .'. This would cause the generated library to
23199 # depend on `.', always an invalid library. This was fixed in
23200 # development snapshots of GCC prior to 3.0.
23201 case $host_os in
23202 aix4 | aix4.[01] | aix4.[01].*)
23203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23204 echo ' yes '
23205 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23206 :
23207 else
23208 can_build_shared=no
23209 fi
23210 ;;
23211 esac
23212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23213 # soname into executable. Probably we can add versioning support to
23214 # collect2, so additional links can be useful in future.
23215 if test "$aix_use_runtimelinking" = yes; then
23216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23217 # instead of lib<name>.a to let people know that these are not
23218 # typical AIX shared libraries.
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23220 else
23221 # We preserve .a as extension for shared libraries through AIX4.2
23222 # and later when we are not doing run time linking.
23223 library_names_spec='${libname}${release}.a $libname.a'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23225 fi
23226 shlibpath_var=LIBPATH
23227 fi
23228 ;;
23229
23230amigaos*)
23231 library_names_spec='$libname.ixlibrary $libname.a'
23232 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023233 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 +000023234 ;;
23235
23236beos*)
23237 library_names_spec='${libname}${shared_ext}'
23238 dynamic_linker="$host_os ld.so"
23239 shlibpath_var=LIBRARY_PATH
23240 ;;
23241
Reid Spencer2706f8c2004-09-19 23:53:36 +000023242bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023243 version_type=linux
23244 need_version=no
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23251 # the default ld.so.conf also contains /usr/contrib/lib and
23252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23253 # libtool to hard-code these into programs
23254 ;;
23255
23256cygwin* | mingw* | pw32*)
23257 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023259 need_version=no
23260 need_lib_prefix=no
23261
23262 case $GCC,$host_os in
23263 yes,cygwin* | yes,mingw* | yes,pw32*)
23264 library_names_spec='$libname.dll.a'
23265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023266 postinstall_cmds='base_file=`basename \${file}`~
23267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23268 dldir=$destdir/`dirname \$dlpath`~
23269 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023270 $install_prog $dir/$dlname \$dldir/$dlname~
23271 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23273 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023274 $rm \$dlpath'
23275 shlibpath_overrides_runpath=yes
23276
23277 case $host_os in
23278 cygwin*)
23279 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23280 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 +000023281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023282 ;;
23283 mingw*)
23284 # MinGW DLLs use traditional 'lib' prefix
23285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23287 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23288 # It is most probably a Windows format PATH printed by
23289 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23290 # path with ; separators, and with drive letters. We can handle the
23291 # drive letters (cygwin fileutils understands them), so leave them,
23292 # especially as we might pass files found there to a mingw objdump,
23293 # which wouldn't understand a cygwinified path. Ahh.
23294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23295 else
23296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23297 fi
23298 ;;
23299 pw32*)
23300 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023301 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 +000023302 ;;
23303 esac
23304 ;;
23305
23306 *)
23307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23308 ;;
23309 esac
23310 dynamic_linker='Win32 ld.exe'
23311 # FIXME: first we should search . and the directory the executable is in
23312 shlibpath_var=PATH
23313 ;;
23314
23315darwin* | rhapsody*)
23316 dynamic_linker="$host_os dyld"
23317 version_type=darwin
23318 need_lib_prefix=no
23319 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023320 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023321 soname_spec='${libname}${release}${major}$shared_ext'
23322 shlibpath_overrides_runpath=yes
23323 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023324 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023325 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023326 if test "$GCC" = yes; then
23327 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"`
23328 else
23329 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023330 fi
23331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23332 ;;
23333
23334dgux*)
23335 version_type=linux
23336 need_lib_prefix=no
23337 need_version=no
23338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23339 soname_spec='${libname}${release}${shared_ext}$major'
23340 shlibpath_var=LD_LIBRARY_PATH
23341 ;;
23342
23343freebsd1*)
23344 dynamic_linker=no
23345 ;;
23346
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347kfreebsd*-gnu)
23348 version_type=linux
23349 need_lib_prefix=no
23350 need_version=no
23351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec='${libname}${release}${shared_ext}$major'
23353 shlibpath_var=LD_LIBRARY_PATH
23354 shlibpath_overrides_runpath=no
23355 hardcode_into_libs=yes
23356 dynamic_linker='GNU ld.so'
23357 ;;
23358
Reid Spencera773bd52006-08-04 18:18:08 +000023359freebsd* | dragonfly*)
23360 # DragonFly does not have aout. When/if they implement a new
23361 # versioning mechanism, adjust this.
23362 if test -x /usr/bin/objformat; then
23363 objformat=`/usr/bin/objformat`
23364 else
23365 case $host_os in
23366 freebsd[123]*) objformat=aout ;;
23367 *) objformat=elf ;;
23368 esac
23369 fi
John Criswell47fdd832003-07-14 16:52:07 +000023370 version_type=freebsd-$objformat
23371 case $version_type in
23372 freebsd-elf*)
23373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23374 need_version=no
23375 need_lib_prefix=no
23376 ;;
23377 freebsd-*)
23378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23379 need_version=yes
23380 ;;
23381 esac
23382 shlibpath_var=LD_LIBRARY_PATH
23383 case $host_os in
23384 freebsd2*)
23385 shlibpath_overrides_runpath=yes
23386 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023387 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023388 shlibpath_overrides_runpath=yes
23389 hardcode_into_libs=yes
23390 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023393 shlibpath_overrides_runpath=no
23394 hardcode_into_libs=yes
23395 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023396 freebsd*) # from 4.6 on
23397 shlibpath_overrides_runpath=yes
23398 hardcode_into_libs=yes
23399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023400 esac
23401 ;;
23402
23403gnu*)
23404 version_type=linux
23405 need_lib_prefix=no
23406 need_version=no
23407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23408 soname_spec='${libname}${release}${shared_ext}$major'
23409 shlibpath_var=LD_LIBRARY_PATH
23410 hardcode_into_libs=yes
23411 ;;
23412
23413hpux9* | hpux10* | hpux11*)
23414 # Give a soname corresponding to the major version so that dld.sl refuses to
23415 # link against other versions.
23416 version_type=sunos
23417 need_lib_prefix=no
23418 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023419 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023420 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023421 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023422 hardcode_into_libs=yes
23423 dynamic_linker="$host_os dld.so"
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 if test "X$HPUX_IA64_MODE" = X32; then
23429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23430 else
23431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23432 fi
23433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23434 ;;
23435 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023436 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023437 hardcode_into_libs=yes
23438 dynamic_linker="$host_os dld.sl"
23439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23442 soname_spec='${libname}${release}${shared_ext}$major'
23443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23445 ;;
23446 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023448 dynamic_linker="$host_os dld.sl"
23449 shlibpath_var=SHLIB_PATH
23450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452 soname_spec='${libname}${release}${shared_ext}$major'
23453 ;;
23454 esac
23455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23456 postinstall_cmds='chmod 555 $lib'
23457 ;;
23458
Reid Spencera773bd52006-08-04 18:18:08 +000023459interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 shlibpath_overrides_runpath=no
23468 hardcode_into_libs=yes
23469 ;;
23470
John Criswell47fdd832003-07-14 16:52:07 +000023471irix5* | irix6* | nonstopux*)
23472 case $host_os in
23473 nonstopux*) version_type=nonstopux ;;
23474 *)
23475 if test "$lt_cv_prog_gnu_ld" = yes; then
23476 version_type=linux
23477 else
23478 version_type=irix
23479 fi ;;
23480 esac
23481 need_lib_prefix=no
23482 need_version=no
23483 soname_spec='${libname}${release}${shared_ext}$major'
23484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23485 case $host_os in
23486 irix5* | nonstopux*)
23487 libsuff= shlibsuff=
23488 ;;
23489 *)
23490 case $LD in # libtool.m4 will add one of these switches to LD
23491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23492 libsuff= shlibsuff= libmagic=32-bit;;
23493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23494 libsuff=32 shlibsuff=N32 libmagic=N32;;
23495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23497 *) libsuff= shlibsuff= libmagic=never-match;;
23498 esac
23499 ;;
23500 esac
23501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23502 shlibpath_overrides_runpath=no
23503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23505 hardcode_into_libs=yes
23506 ;;
23507
23508# No shared lib support for Linux oldld, aout, or coff.
23509linux*oldld* | linux*aout* | linux*coff*)
23510 dynamic_linker=no
23511 ;;
23512
23513# This must be Linux ELF.
23514linux*)
23515 version_type=linux
23516 need_lib_prefix=no
23517 need_version=no
23518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519 soname_spec='${libname}${release}${shared_ext}$major'
23520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath=no
23523 # This implies no fast_install, which is unacceptable.
23524 # Some rework will be needed to allow for fast_install
23525 # before this can be enabled.
23526 hardcode_into_libs=yes
23527
Reid Spencer2706f8c2004-09-19 23:53:36 +000023528 # Append ld.so.conf contents to the search path
23529 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023530 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 +000023531 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23532 fi
23533
John Criswell47fdd832003-07-14 16:52:07 +000023534 # We used to test for /lib/ld.so.1 and disable shared libraries on
23535 # powerpc, because MkLinux only supported shared libraries with the
23536 # GNU dynamic linker. Since this was broken with cross compilers,
23537 # most powerpc-linux boxes support dynamic linking these days and
23538 # people can always --disable-shared, the test was removed, and we
23539 # assume the GNU/Linux dynamic linker is in use.
23540 dynamic_linker='GNU/Linux ld.so'
23541 ;;
23542
Reid Spencer2706f8c2004-09-19 23:53:36 +000023543knetbsd*-gnu)
23544 version_type=linux
23545 need_lib_prefix=no
23546 need_version=no
23547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23548 soname_spec='${libname}${release}${shared_ext}$major'
23549 shlibpath_var=LD_LIBRARY_PATH
23550 shlibpath_overrides_runpath=no
23551 hardcode_into_libs=yes
23552 dynamic_linker='GNU ld.so'
23553 ;;
23554
John Criswell47fdd832003-07-14 16:52:07 +000023555netbsd*)
23556 version_type=sunos
23557 need_lib_prefix=no
23558 need_version=no
23559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23562 dynamic_linker='NetBSD (a.out) ld.so'
23563 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023565 soname_spec='${libname}${release}${shared_ext}$major'
23566 dynamic_linker='NetBSD ld.elf_so'
23567 fi
23568 shlibpath_var=LD_LIBRARY_PATH
23569 shlibpath_overrides_runpath=yes
23570 hardcode_into_libs=yes
23571 ;;
23572
23573newsos6)
23574 version_type=linux
23575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576 shlibpath_var=LD_LIBRARY_PATH
23577 shlibpath_overrides_runpath=yes
23578 ;;
23579
Reid Spencer2706f8c2004-09-19 23:53:36 +000023580nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023581 version_type=linux
23582 need_lib_prefix=no
23583 need_version=no
23584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23585 soname_spec='${libname}${release}${shared_ext}$major'
23586 shlibpath_var=LD_LIBRARY_PATH
23587 shlibpath_overrides_runpath=yes
23588 ;;
23589
23590openbsd*)
23591 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023592 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023593 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23595 case $host_os in
23596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23597 *) need_version=no ;;
23598 esac
John Criswell47fdd832003-07-14 16:52:07 +000023599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23601 shlibpath_var=LD_LIBRARY_PATH
23602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23603 case $host_os in
23604 openbsd2.[89] | openbsd2.[89].*)
23605 shlibpath_overrides_runpath=no
23606 ;;
23607 *)
23608 shlibpath_overrides_runpath=yes
23609 ;;
23610 esac
23611 else
23612 shlibpath_overrides_runpath=yes
23613 fi
23614 ;;
23615
23616os2*)
23617 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023618 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023619 need_lib_prefix=no
23620 library_names_spec='$libname${shared_ext} $libname.a'
23621 dynamic_linker='OS/2 ld.exe'
23622 shlibpath_var=LIBPATH
23623 ;;
23624
23625osf3* | osf4* | osf5*)
23626 version_type=osf
23627 need_lib_prefix=no
23628 need_version=no
23629 soname_spec='${libname}${release}${shared_ext}$major'
23630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23631 shlibpath_var=LD_LIBRARY_PATH
23632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23634 ;;
23635
John Criswell47fdd832003-07-14 16:52:07 +000023636solaris*)
23637 version_type=linux
23638 need_lib_prefix=no
23639 need_version=no
23640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23641 soname_spec='${libname}${release}${shared_ext}$major'
23642 shlibpath_var=LD_LIBRARY_PATH
23643 shlibpath_overrides_runpath=yes
23644 hardcode_into_libs=yes
23645 # ldd complains unless libraries are executable
23646 postinstall_cmds='chmod +x $lib'
23647 ;;
23648
23649sunos4*)
23650 version_type=sunos
23651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23653 shlibpath_var=LD_LIBRARY_PATH
23654 shlibpath_overrides_runpath=yes
23655 if test "$with_gnu_ld" = yes; then
23656 need_lib_prefix=no
23657 fi
23658 need_version=yes
23659 ;;
23660
Reid Spencera773bd52006-08-04 18:18:08 +000023661sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023662 version_type=linux
23663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23664 soname_spec='${libname}${release}${shared_ext}$major'
23665 shlibpath_var=LD_LIBRARY_PATH
23666 case $host_vendor in
23667 sni)
23668 shlibpath_overrides_runpath=no
23669 need_lib_prefix=no
23670 export_dynamic_flag_spec='${wl}-Blargedynsym'
23671 runpath_var=LD_RUN_PATH
23672 ;;
23673 siemens)
23674 need_lib_prefix=no
23675 ;;
23676 motorola)
23677 need_lib_prefix=no
23678 need_version=no
23679 shlibpath_overrides_runpath=no
23680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23681 ;;
23682 esac
23683 ;;
23684
23685sysv4*MP*)
23686 if test -d /usr/nec ;then
23687 version_type=linux
23688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23689 soname_spec='$libname${shared_ext}.$major'
23690 shlibpath_var=LD_LIBRARY_PATH
23691 fi
23692 ;;
23693
Reid Spencera773bd52006-08-04 18:18:08 +000023694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23695 version_type=freebsd-elf
23696 need_lib_prefix=no
23697 need_version=no
23698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23699 soname_spec='${libname}${release}${shared_ext}$major'
23700 shlibpath_var=LD_LIBRARY_PATH
23701 hardcode_into_libs=yes
23702 if test "$with_gnu_ld" = yes; then
23703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23704 shlibpath_overrides_runpath=no
23705 else
23706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23707 shlibpath_overrides_runpath=yes
23708 case $host_os in
23709 sco3.2v5*)
23710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23711 ;;
23712 esac
23713 fi
23714 sys_lib_dlsearch_path_spec='/usr/lib'
23715 ;;
23716
John Criswell47fdd832003-07-14 16:52:07 +000023717uts4*)
23718 version_type=linux
23719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23720 soname_spec='${libname}${release}${shared_ext}$major'
23721 shlibpath_var=LD_LIBRARY_PATH
23722 ;;
23723
23724*)
23725 dynamic_linker=no
23726 ;;
23727esac
Reid Spencera773bd52006-08-04 18:18:08 +000023728{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23729echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023730test "$dynamic_linker" = no && can_build_shared=no
23731
Reid Spencera773bd52006-08-04 18:18:08 +000023732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23733if test "$GCC" = yes; then
23734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23735fi
23736
23737{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23738echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023739hardcode_action_F77=
23740if test -n "$hardcode_libdir_flag_spec_F77" || \
23741 test -n "$runpath_var_F77" || \
23742 test "X$hardcode_automatic_F77" = "Xyes" ; then
23743
23744 # We can hardcode non-existant directories.
23745 if test "$hardcode_direct_F77" != no &&
23746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23747 # have to relink, otherwise we might link with an installed library
23748 # when we should be linking with a yet-to-be-installed one
23749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23750 test "$hardcode_minus_L_F77" != no; then
23751 # Linking always hardcodes the temporary library directory.
23752 hardcode_action_F77=relink
23753 else
23754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23755 hardcode_action_F77=immediate
23756 fi
23757else
23758 # We cannot hardcode anything, or else we can only hardcode existing
23759 # directories.
23760 hardcode_action_F77=unsupported
23761fi
Reid Spencera773bd52006-08-04 18:18:08 +000023762{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23763echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023764
23765if test "$hardcode_action_F77" = relink; then
23766 # Fast installation is not supported
23767 enable_fast_install=no
23768elif test "$shlibpath_overrides_runpath" = yes ||
23769 test "$enable_shared" = no; then
23770 # Fast installation is not necessary
23771 enable_fast_install=needless
23772fi
23773
John Criswell47fdd832003-07-14 16:52:07 +000023774
23775# The else clause should only fire when bootstrapping the
23776# libtool distribution, otherwise you forgot to ship ltmain.sh
23777# with your package, and you will get complaints that there are
23778# no rules to generate ltmain.sh.
23779if test -f "$ltmain"; then
23780 # See if we are running on zsh, and set the options which allow our commands through
23781 # without removal of \ escapes.
23782 if test -n "${ZSH_VERSION+set}" ; then
23783 setopt NO_GLOB_SUBST
23784 fi
23785 # Now quote all the things that may contain metacharacters while being
23786 # careful not to overquote the AC_SUBSTed values. We take copies of the
23787 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023788 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 +000023789 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23792 deplibs_check_method reload_flag reload_cmds need_locks \
23793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23794 lt_cv_sys_global_symbol_to_c_name_address \
23795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23796 old_postinstall_cmds old_postuninstall_cmds \
23797 compiler_F77 \
23798 CC_F77 \
23799 LD_F77 \
23800 lt_prog_compiler_wl_F77 \
23801 lt_prog_compiler_pic_F77 \
23802 lt_prog_compiler_static_F77 \
23803 lt_prog_compiler_no_builtin_flag_F77 \
23804 export_dynamic_flag_spec_F77 \
23805 thread_safe_flag_spec_F77 \
23806 whole_archive_flag_spec_F77 \
23807 enable_shared_with_static_runtimes_F77 \
23808 old_archive_cmds_F77 \
23809 old_archive_from_new_cmds_F77 \
23810 predep_objects_F77 \
23811 postdep_objects_F77 \
23812 predeps_F77 \
23813 postdeps_F77 \
23814 compiler_lib_search_path_F77 \
23815 archive_cmds_F77 \
23816 archive_expsym_cmds_F77 \
23817 postinstall_cmds_F77 \
23818 postuninstall_cmds_F77 \
23819 old_archive_from_expsyms_cmds_F77 \
23820 allow_undefined_flag_F77 \
23821 no_undefined_flag_F77 \
23822 export_symbols_cmds_F77 \
23823 hardcode_libdir_flag_spec_F77 \
23824 hardcode_libdir_flag_spec_ld_F77 \
23825 hardcode_libdir_separator_F77 \
23826 hardcode_automatic_F77 \
23827 module_cmds_F77 \
23828 module_expsym_cmds_F77 \
23829 lt_cv_prog_compiler_c_o_F77 \
23830 exclude_expsyms_F77 \
23831 include_expsyms_F77; do
23832
23833 case $var in
23834 old_archive_cmds_F77 | \
23835 old_archive_from_new_cmds_F77 | \
23836 archive_cmds_F77 | \
23837 archive_expsym_cmds_F77 | \
23838 module_cmds_F77 | \
23839 module_expsym_cmds_F77 | \
23840 old_archive_from_expsyms_cmds_F77 | \
23841 export_symbols_cmds_F77 | \
23842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23843 postinstall_cmds | postuninstall_cmds | \
23844 old_postinstall_cmds | old_postuninstall_cmds | \
23845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23846 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023847 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 +000023848 ;;
23849 *)
23850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23851 ;;
23852 esac
23853 done
23854
23855 case $lt_echo in
23856 *'\$0 --fallback-echo"')
23857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23858 ;;
23859 esac
23860
23861cfgfile="$ofile"
23862
23863 cat <<__EOF__ >> "$cfgfile"
23864# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23865
23866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23867
23868# Shell to use when invoking shell scripts.
23869SHELL=$lt_SHELL
23870
23871# Whether or not to build shared libraries.
23872build_libtool_libs=$enable_shared
23873
23874# Whether or not to build static libraries.
23875build_old_libs=$enable_static
23876
23877# Whether or not to add -lc for building shared libraries.
23878build_libtool_need_lc=$archive_cmds_need_lc_F77
23879
23880# Whether or not to disallow shared libs when runtime libs are static
23881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23882
23883# Whether or not to optimize for fast installation.
23884fast_install=$enable_fast_install
23885
23886# The host system.
23887host_alias=$host_alias
23888host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023889host_os=$host_os
23890
23891# The build system.
23892build_alias=$build_alias
23893build=$build
23894build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023895
23896# An echo program that does not interpret backslashes.
23897echo=$lt_echo
23898
23899# The archiver.
23900AR=$lt_AR
23901AR_FLAGS=$lt_AR_FLAGS
23902
23903# A C compiler.
23904LTCC=$lt_LTCC
23905
Reid Spencera773bd52006-08-04 18:18:08 +000023906# LTCC compiler flags.
23907LTCFLAGS=$lt_LTCFLAGS
23908
John Criswell47fdd832003-07-14 16:52:07 +000023909# A language-specific compiler.
23910CC=$lt_compiler_F77
23911
23912# Is the compiler the GNU C compiler?
23913with_gcc=$GCC_F77
23914
23915# An ERE matcher.
23916EGREP=$lt_EGREP
23917
23918# The linker used to build libraries.
23919LD=$lt_LD_F77
23920
23921# Whether we need hard or soft links.
23922LN_S=$lt_LN_S
23923
23924# A BSD-compatible nm program.
23925NM=$lt_NM
23926
23927# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023928STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023929
23930# Used to examine libraries when file_magic_cmd begins "file"
23931MAGIC_CMD=$MAGIC_CMD
23932
23933# Used on cygwin: DLL creation program.
23934DLLTOOL="$DLLTOOL"
23935
23936# Used on cygwin: object dumper.
23937OBJDUMP="$OBJDUMP"
23938
23939# Used on cygwin: assembler.
23940AS="$AS"
23941
23942# The name of the directory that contains temporary libtool files.
23943objdir=$objdir
23944
23945# How to create reloadable object files.
23946reload_flag=$lt_reload_flag
23947reload_cmds=$lt_reload_cmds
23948
23949# How to pass a linker flag through the compiler.
23950wl=$lt_lt_prog_compiler_wl_F77
23951
23952# Object file suffix (normally "o").
23953objext="$ac_objext"
23954
23955# Old archive suffix (normally "a").
23956libext="$libext"
23957
23958# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023959shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023960
23961# Executable file suffix (normally "").
23962exeext="$exeext"
23963
23964# Additional compiler flags for building library objects.
23965pic_flag=$lt_lt_prog_compiler_pic_F77
23966pic_mode=$pic_mode
23967
23968# What is the maximum length of a command?
23969max_cmd_len=$lt_cv_sys_max_cmd_len
23970
23971# Does compiler simultaneously support -c and -o options?
23972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23973
Reid Spencera773bd52006-08-04 18:18:08 +000023974# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023975need_locks=$lt_need_locks
23976
23977# Do we need the lib prefix for modules?
23978need_lib_prefix=$need_lib_prefix
23979
23980# Do we need a version for libraries?
23981need_version=$need_version
23982
23983# Whether dlopen is supported.
23984dlopen_support=$enable_dlopen
23985
23986# Whether dlopen of programs is supported.
23987dlopen_self=$enable_dlopen_self
23988
23989# Whether dlopen of statically linked programs is supported.
23990dlopen_self_static=$enable_dlopen_self_static
23991
23992# Compiler flag to prevent dynamic linking.
23993link_static_flag=$lt_lt_prog_compiler_static_F77
23994
23995# Compiler flag to turn off builtin functions.
23996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23997
23998# Compiler flag to allow reflexive dlopens.
23999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24000
24001# Compiler flag to generate shared objects directly from archives.
24002whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24003
24004# Compiler flag to generate thread-safe objects.
24005thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24006
24007# Library versioning type.
24008version_type=$version_type
24009
24010# Format of library name prefix.
24011libname_spec=$lt_libname_spec
24012
24013# List of archive names. First name is the real one, the rest are links.
24014# The last name is the one that the linker finds with -lNAME.
24015library_names_spec=$lt_library_names_spec
24016
24017# The coded name of the library, if different from the real name.
24018soname_spec=$lt_soname_spec
24019
24020# Commands used to build and install an old-style archive.
24021RANLIB=$lt_RANLIB
24022old_archive_cmds=$lt_old_archive_cmds_F77
24023old_postinstall_cmds=$lt_old_postinstall_cmds
24024old_postuninstall_cmds=$lt_old_postuninstall_cmds
24025
24026# Create an old-style archive from a shared archive.
24027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24028
24029# Create a temporary old-style archive to link instead of a shared archive.
24030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24031
24032# Commands used to build and install a shared archive.
24033archive_cmds=$lt_archive_cmds_F77
24034archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24035postinstall_cmds=$lt_postinstall_cmds
24036postuninstall_cmds=$lt_postuninstall_cmds
24037
24038# Commands used to build a loadable module (assumed same as above if empty)
24039module_cmds=$lt_module_cmds_F77
24040module_expsym_cmds=$lt_module_expsym_cmds_F77
24041
24042# Commands to strip libraries.
24043old_striplib=$lt_old_striplib
24044striplib=$lt_striplib
24045
24046# Dependencies to place before the objects being linked to create a
24047# shared library.
24048predep_objects=$lt_predep_objects_F77
24049
24050# Dependencies to place after the objects being linked to create a
24051# shared library.
24052postdep_objects=$lt_postdep_objects_F77
24053
24054# Dependencies to place before the objects being linked to create a
24055# shared library.
24056predeps=$lt_predeps_F77
24057
24058# Dependencies to place after the objects being linked to create a
24059# shared library.
24060postdeps=$lt_postdeps_F77
24061
24062# The library search path used internally by the compiler when linking
24063# a shared library.
24064compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24065
24066# Method to check whether dependent libraries are shared objects.
24067deplibs_check_method=$lt_deplibs_check_method
24068
24069# Command to use when deplibs_check_method == file_magic.
24070file_magic_cmd=$lt_file_magic_cmd
24071
24072# Flag that allows shared libraries with undefined symbols to be built.
24073allow_undefined_flag=$lt_allow_undefined_flag_F77
24074
24075# Flag that forces no undefined symbols.
24076no_undefined_flag=$lt_no_undefined_flag_F77
24077
24078# Commands used to finish a libtool library installation in a directory.
24079finish_cmds=$lt_finish_cmds
24080
24081# Same as above, but a single script fragment to be evaled but not shown.
24082finish_eval=$lt_finish_eval
24083
24084# Take the output of nm and produce a listing of raw symbols and C names.
24085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24086
24087# Transform the output of nm in a proper C declaration
24088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24089
24090# Transform the output of nm in a C name address pair
24091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24092
24093# This is the shared library runtime path variable.
24094runpath_var=$runpath_var
24095
24096# This is the shared library path variable.
24097shlibpath_var=$shlibpath_var
24098
24099# Is shlibpath searched before the hard-coded library search path?
24100shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24101
24102# How to hardcode a shared library path into an executable.
24103hardcode_action=$hardcode_action_F77
24104
24105# Whether we should hardcode library paths into libraries.
24106hardcode_into_libs=$hardcode_into_libs
24107
24108# Flag to hardcode \$libdir into a binary during linking.
24109# This must work even if \$libdir does not exist.
24110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24111
24112# If ld is used when linking, flag to hardcode \$libdir into
24113# a binary during linking. This must work even if \$libdir does
24114# not exist.
24115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24116
24117# Whether we need a single -rpath flag with a separated argument.
24118hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24119
24120# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24121# resulting binary.
24122hardcode_direct=$hardcode_direct_F77
24123
24124# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24125# resulting binary.
24126hardcode_minus_L=$hardcode_minus_L_F77
24127
24128# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24129# the resulting binary.
24130hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24131
24132# Set to yes if building a shared library automatically hardcodes DIR into the library
24133# and all subsequent libraries and executables linked against it.
24134hardcode_automatic=$hardcode_automatic_F77
24135
24136# Variables whose values should be saved in libtool wrapper scripts and
24137# restored at relink time.
24138variables_saved_for_relink="$variables_saved_for_relink"
24139
24140# Whether libtool must link a program against all its dependency libraries.
24141link_all_deplibs=$link_all_deplibs_F77
24142
24143# Compile-time system search path for libraries
24144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24145
24146# Run-time system search path for libraries
24147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24148
24149# Fix the shell variable \$srcfile for the compiler.
24150fix_srcfile_path="$fix_srcfile_path_F77"
24151
24152# Set to yes if exported symbols are required.
24153always_export_symbols=$always_export_symbols_F77
24154
24155# The commands to list exported symbols.
24156export_symbols_cmds=$lt_export_symbols_cmds_F77
24157
24158# The commands to extract the exported symbol list from a shared archive.
24159extract_expsyms_cmds=$lt_extract_expsyms_cmds
24160
24161# Symbols that should not be listed in the preloaded symbols.
24162exclude_expsyms=$lt_exclude_expsyms_F77
24163
24164# Symbols that must always be exported.
24165include_expsyms=$lt_include_expsyms_F77
24166
24167# ### END LIBTOOL TAG CONFIG: $tagname
24168
24169__EOF__
24170
24171
24172else
24173 # If there is no Makefile yet, we rely on a make rule to execute
24174 # `config.status --recheck' to rerun these tests and create the
24175 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24177 if test -f "$ltmain_in"; then
24178 test -f Makefile && make "$ltmain"
24179 fi
John Criswell47fdd832003-07-14 16:52:07 +000024180fi
24181
24182
24183ac_ext=c
24184ac_cpp='$CPP $CPPFLAGS'
24185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24187ac_compiler_gnu=$ac_cv_c_compiler_gnu
24188
24189CC="$lt_save_CC"
24190
24191 else
24192 tagname=""
24193 fi
24194 ;;
24195
24196 GCJ)
24197 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024198 ac_ext=c
24199ac_cpp='$CPP $CPPFLAGS'
24200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024203
24204
24205# Source file extension for Java test sources.
24206ac_ext=java
24207
24208# Object file extension for compiled Java test sources.
24209objext=o
24210objext_GCJ=$objext
24211
24212# Code to be used in simple compile tests
24213lt_simple_compile_test_code="class foo {}\n"
24214
24215# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024216lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024217
24218# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24219
24220# If no C compiler was specified, use CC.
24221LTCC=${LTCC-"$CC"}
24222
Reid Spencera773bd52006-08-04 18:18:08 +000024223# If no C compiler flags were specified, use CFLAGS.
24224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24225
John Criswell47fdd832003-07-14 16:52:07 +000024226# Allow CC to be a program name with arguments.
24227compiler=$CC
24228
24229
Reid Spencera773bd52006-08-04 18:18:08 +000024230# save warnings/boilerplate of simple test code
24231ac_outfile=conftest.$ac_objext
24232printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234_lt_compiler_boilerplate=`cat conftest.err`
24235$rm conftest*
24236
24237ac_outfile=conftest.$ac_objext
24238printf "$lt_simple_link_test_code" >conftest.$ac_ext
24239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24240_lt_linker_boilerplate=`cat conftest.err`
24241$rm conftest*
24242
24243
John Criswell47fdd832003-07-14 16:52:07 +000024244# Allow CC to be a program name with arguments.
24245lt_save_CC="$CC"
24246CC=${GCJ-"gcj"}
24247compiler=$CC
24248compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024249for cc_temp in $compiler""; do
24250 case $cc_temp in
24251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24253 \-*) ;;
24254 *) break;;
24255 esac
24256done
24257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24258
John Criswell47fdd832003-07-14 16:52:07 +000024259
24260# GCJ did not exist at the time GCC didn't implicitly link libc in.
24261archive_cmds_need_lc_GCJ=no
24262
Reid Spencera773bd52006-08-04 18:18:08 +000024263old_archive_cmds_GCJ=$old_archive_cmds
24264
John Criswell47fdd832003-07-14 16:52:07 +000024265
24266lt_prog_compiler_no_builtin_flag_GCJ=
24267
24268if test "$GCC" = yes; then
24269 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24270
Reid Spencer2706f8c2004-09-19 23:53:36 +000024271
Reid Spencera773bd52006-08-04 18:18:08 +000024272{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24273echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024274if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277 lt_cv_prog_compiler_rtti_exceptions=no
24278 ac_outfile=conftest.$ac_objext
24279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24280 lt_compiler_flag="-fno-rtti -fno-exceptions"
24281 # Insert the option either (1) after the last *FLAGS variable, or
24282 # (2) before a word containing "conftest.", or (3) at the end.
24283 # Note that $ac_compile itself does not contain backslashes and begins
24284 # with a dollar sign (not a hyphen), so the echo should work correctly.
24285 # The option is referenced via a variable to avoid confusing sed.
24286 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24289 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024290 (eval echo "\"\$as_me:24290: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024291 (eval "$lt_compile" 2>conftest.err)
24292 ac_status=$?
24293 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024294 echo "$as_me:24294: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024295 if (exit $ac_status) && test -s "$ac_outfile"; then
24296 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024297 # So say no if there are warnings other than the usual output.
24298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024301 lt_cv_prog_compiler_rtti_exceptions=yes
24302 fi
24303 fi
24304 $rm conftest*
24305
24306fi
Reid Spencera773bd52006-08-04 18:18:08 +000024307{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24308echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024309
24310if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24311 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24312else
24313 :
24314fi
24315
24316fi
24317
24318lt_prog_compiler_wl_GCJ=
24319lt_prog_compiler_pic_GCJ=
24320lt_prog_compiler_static_GCJ=
24321
Reid Spencera773bd52006-08-04 18:18:08 +000024322{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24323echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024324
24325 if test "$GCC" = yes; then
24326 lt_prog_compiler_wl_GCJ='-Wl,'
24327 lt_prog_compiler_static_GCJ='-static'
24328
24329 case $host_os in
24330 aix*)
24331 # All AIX code is PIC.
24332 if test "$host_cpu" = ia64; then
24333 # AIX 5 now supports IA64 processor
24334 lt_prog_compiler_static_GCJ='-Bstatic'
24335 fi
24336 ;;
24337
24338 amigaos*)
24339 # FIXME: we need at least 68020 code to build shared libraries, but
24340 # adding the `-m68020' flag to GCC prevents building anything better,
24341 # like `-m68040'.
24342 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24343 ;;
24344
24345 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24346 # PIC is the default for these OSes.
24347 ;;
24348
24349 mingw* | pw32* | os2*)
24350 # This hack is so that the source file can tell whether it is being
24351 # built for inclusion in a dll (and should export symbols for example).
24352 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24353 ;;
24354
24355 darwin* | rhapsody*)
24356 # PIC is the default on this platform
24357 # Common symbols not allowed in MH_DYLIB files
24358 lt_prog_compiler_pic_GCJ='-fno-common'
24359 ;;
24360
Reid Spencera773bd52006-08-04 18:18:08 +000024361 interix3*)
24362 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24363 # Instead, we relocate shared libraries at runtime.
24364 ;;
24365
John Criswell47fdd832003-07-14 16:52:07 +000024366 msdosdjgpp*)
24367 # Just because we use GCC doesn't mean we suddenly get shared libraries
24368 # on systems that don't support them.
24369 lt_prog_compiler_can_build_shared_GCJ=no
24370 enable_shared=no
24371 ;;
24372
24373 sysv4*MP*)
24374 if test -d /usr/nec; then
24375 lt_prog_compiler_pic_GCJ=-Kconform_pic
24376 fi
24377 ;;
24378
24379 hpux*)
24380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24381 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024382 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024383 hppa*64*|ia64*)
24384 # +Z the default
24385 ;;
24386 *)
24387 lt_prog_compiler_pic_GCJ='-fPIC'
24388 ;;
24389 esac
24390 ;;
24391
24392 *)
24393 lt_prog_compiler_pic_GCJ='-fPIC'
24394 ;;
24395 esac
24396 else
24397 # PORTME Check for flag to pass linker flags through the system compiler.
24398 case $host_os in
24399 aix*)
24400 lt_prog_compiler_wl_GCJ='-Wl,'
24401 if test "$host_cpu" = ia64; then
24402 # AIX 5 now supports IA64 processor
24403 lt_prog_compiler_static_GCJ='-Bstatic'
24404 else
24405 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24406 fi
24407 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024408 darwin*)
24409 # PIC is the default on this platform
24410 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024411 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024412 xlc*)
24413 lt_prog_compiler_pic_GCJ='-qnocommon'
24414 lt_prog_compiler_wl_GCJ='-Wl,'
24415 ;;
24416 esac
24417 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024418
24419 mingw* | pw32* | os2*)
24420 # This hack is so that the source file can tell whether it is being
24421 # built for inclusion in a dll (and should export symbols for example).
24422 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24423 ;;
24424
24425 hpux9* | hpux10* | hpux11*)
24426 lt_prog_compiler_wl_GCJ='-Wl,'
24427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24428 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024429 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024430 hppa*64*|ia64*)
24431 # +Z the default
24432 ;;
24433 *)
24434 lt_prog_compiler_pic_GCJ='+Z'
24435 ;;
24436 esac
24437 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24438 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24439 ;;
24440
24441 irix5* | irix6* | nonstopux*)
24442 lt_prog_compiler_wl_GCJ='-Wl,'
24443 # PIC (with -KPIC) is the default.
24444 lt_prog_compiler_static_GCJ='-non_shared'
24445 ;;
24446
24447 newsos6)
24448 lt_prog_compiler_pic_GCJ='-KPIC'
24449 lt_prog_compiler_static_GCJ='-Bstatic'
24450 ;;
24451
24452 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024453 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024454 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024455 lt_prog_compiler_wl_GCJ='-Wl,'
24456 lt_prog_compiler_pic_GCJ='-KPIC'
24457 lt_prog_compiler_static_GCJ='-static'
24458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024459 pgcc* | pgf77* | pgf90* | pgf95*)
24460 # Portland Group compilers (*not* the Pentium gcc compiler,
24461 # which looks to be a dead project)
24462 lt_prog_compiler_wl_GCJ='-Wl,'
24463 lt_prog_compiler_pic_GCJ='-fpic'
24464 lt_prog_compiler_static_GCJ='-Bstatic'
24465 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024466 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024467 lt_prog_compiler_wl_GCJ='-Wl,'
24468 # All Alpha code is PIC.
24469 lt_prog_compiler_static_GCJ='-non_shared'
24470 ;;
24471 esac
24472 ;;
24473
24474 osf3* | osf4* | osf5*)
24475 lt_prog_compiler_wl_GCJ='-Wl,'
24476 # All OSF/1 code is PIC.
24477 lt_prog_compiler_static_GCJ='-non_shared'
24478 ;;
24479
John Criswell47fdd832003-07-14 16:52:07 +000024480 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024481 lt_prog_compiler_pic_GCJ='-KPIC'
24482 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024483 case $cc_basename in
24484 f77* | f90* | f95*)
24485 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24486 *)
24487 lt_prog_compiler_wl_GCJ='-Wl,';;
24488 esac
John Criswell47fdd832003-07-14 16:52:07 +000024489 ;;
24490
24491 sunos4*)
24492 lt_prog_compiler_wl_GCJ='-Qoption ld '
24493 lt_prog_compiler_pic_GCJ='-PIC'
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24495 ;;
24496
Reid Spencera773bd52006-08-04 18:18:08 +000024497 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024498 lt_prog_compiler_wl_GCJ='-Wl,'
24499 lt_prog_compiler_pic_GCJ='-KPIC'
24500 lt_prog_compiler_static_GCJ='-Bstatic'
24501 ;;
24502
24503 sysv4*MP*)
24504 if test -d /usr/nec ;then
24505 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24506 lt_prog_compiler_static_GCJ='-Bstatic'
24507 fi
24508 ;;
24509
Reid Spencera773bd52006-08-04 18:18:08 +000024510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24511 lt_prog_compiler_wl_GCJ='-Wl,'
24512 lt_prog_compiler_pic_GCJ='-KPIC'
24513 lt_prog_compiler_static_GCJ='-Bstatic'
24514 ;;
24515
24516 unicos*)
24517 lt_prog_compiler_wl_GCJ='-Wl,'
24518 lt_prog_compiler_can_build_shared_GCJ=no
24519 ;;
24520
John Criswell47fdd832003-07-14 16:52:07 +000024521 uts4*)
24522 lt_prog_compiler_pic_GCJ='-pic'
24523 lt_prog_compiler_static_GCJ='-Bstatic'
24524 ;;
24525
24526 *)
24527 lt_prog_compiler_can_build_shared_GCJ=no
24528 ;;
24529 esac
24530 fi
24531
Reid Spencera773bd52006-08-04 18:18:08 +000024532{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24533echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024534
24535#
24536# Check to make sure the PIC flag actually works.
24537#
24538if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024539
Reid Spencera773bd52006-08-04 18:18:08 +000024540{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24541echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024542if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24544else
24545 lt_prog_compiler_pic_works_GCJ=no
24546 ac_outfile=conftest.$ac_objext
24547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24548 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24549 # Insert the option either (1) after the last *FLAGS variable, or
24550 # (2) before a word containing "conftest.", or (3) at the end.
24551 # Note that $ac_compile itself does not contain backslashes and begins
24552 # with a dollar sign (not a hyphen), so the echo should work correctly.
24553 # The option is referenced via a variable to avoid confusing sed.
24554 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24557 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024558 (eval echo "\"\$as_me:24558: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024559 (eval "$lt_compile" 2>conftest.err)
24560 ac_status=$?
24561 cat conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024562 echo "$as_me:24562: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024563 if (exit $ac_status) && test -s "$ac_outfile"; then
24564 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024565 # So say no if there are warnings other than the usual output.
24566 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024569 lt_prog_compiler_pic_works_GCJ=yes
24570 fi
24571 fi
24572 $rm conftest*
24573
24574fi
Reid Spencera773bd52006-08-04 18:18:08 +000024575{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24576echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024577
24578if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24579 case $lt_prog_compiler_pic_GCJ in
24580 "" | " "*) ;;
24581 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24582 esac
24583else
24584 lt_prog_compiler_pic_GCJ=
24585 lt_prog_compiler_can_build_shared_GCJ=no
24586fi
24587
24588fi
Reid Spencera773bd52006-08-04 18:18:08 +000024589case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024590 # For platforms which do not support PIC, -DPIC is meaningless:
24591 *djgpp*)
24592 lt_prog_compiler_pic_GCJ=
24593 ;;
24594 *)
24595 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24596 ;;
24597esac
24598
Reid Spencera773bd52006-08-04 18:18:08 +000024599#
24600# Check to make sure the static flag actually works.
24601#
24602wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24603{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24604echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24605if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24607else
24608 lt_prog_compiler_static_works_GCJ=no
24609 save_LDFLAGS="$LDFLAGS"
24610 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24611 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24612 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24613 # The linker can only warn and ignore the option if not recognized
24614 # So say no if there are warnings
24615 if test -s conftest.err; then
24616 # Append any errors to the config.log.
24617 cat conftest.err 1>&5
24618 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24620 if diff conftest.exp conftest.er2 >/dev/null; then
24621 lt_prog_compiler_static_works_GCJ=yes
24622 fi
24623 else
24624 lt_prog_compiler_static_works_GCJ=yes
24625 fi
24626 fi
24627 $rm conftest*
24628 LDFLAGS="$save_LDFLAGS"
24629
24630fi
24631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24632echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24633
24634if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24635 :
24636else
24637 lt_prog_compiler_static_GCJ=
24638fi
24639
24640
24641{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24642echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024643if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645else
24646 lt_cv_prog_compiler_c_o_GCJ=no
24647 $rm -r conftest 2>/dev/null
24648 mkdir conftest
24649 cd conftest
24650 mkdir out
24651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24652
John Criswell47fdd832003-07-14 16:52:07 +000024653 lt_compiler_flag="-o out/conftest2.$ac_objext"
24654 # Insert the option either (1) after the last *FLAGS variable, or
24655 # (2) before a word containing "conftest.", or (3) at the end.
24656 # Note that $ac_compile itself does not contain backslashes and begins
24657 # with a dollar sign (not a hyphen), so the echo should work correctly.
24658 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24661 -e 's:$: $lt_compiler_flag:'`
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024662 (eval echo "\"\$as_me:24662: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024663 (eval "$lt_compile" 2>out/conftest.err)
24664 ac_status=$?
24665 cat out/conftest.err >&5
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000024666 echo "$as_me:24666: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24668 then
24669 # The compiler can only warn and ignore the option if not recognized
24670 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024674 lt_cv_prog_compiler_c_o_GCJ=yes
24675 fi
24676 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024677 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024678 $rm conftest*
24679 # SGI C++ compiler will create directory out/ii_files/ for
24680 # template instantiation
24681 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24682 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024683 cd ..
24684 rmdir conftest
24685 $rm conftest*
24686
24687fi
Reid Spencera773bd52006-08-04 18:18:08 +000024688{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24689echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024690
24691
24692hard_links="nottested"
24693if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24694 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024695 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24696echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024697 hard_links=yes
24698 $rm conftest*
24699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24700 touch conftest.a
24701 ln conftest.a conftest.b 2>&5 || hard_links=no
24702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024703 { echo "$as_me:$LINENO: result: $hard_links" >&5
24704echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024705 if test "$hard_links" = no; then
24706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24707echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24708 need_locks=warn
24709 fi
24710else
24711 need_locks=no
24712fi
24713
Reid Spencera773bd52006-08-04 18:18:08 +000024714{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24715echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024716
24717 runpath_var=
24718 allow_undefined_flag_GCJ=
24719 enable_shared_with_static_runtimes_GCJ=no
24720 archive_cmds_GCJ=
24721 archive_expsym_cmds_GCJ=
24722 old_archive_From_new_cmds_GCJ=
24723 old_archive_from_expsyms_cmds_GCJ=
24724 export_dynamic_flag_spec_GCJ=
24725 whole_archive_flag_spec_GCJ=
24726 thread_safe_flag_spec_GCJ=
24727 hardcode_libdir_flag_spec_GCJ=
24728 hardcode_libdir_flag_spec_ld_GCJ=
24729 hardcode_libdir_separator_GCJ=
24730 hardcode_direct_GCJ=no
24731 hardcode_minus_L_GCJ=no
24732 hardcode_shlibpath_var_GCJ=unsupported
24733 link_all_deplibs_GCJ=unknown
24734 hardcode_automatic_GCJ=no
24735 module_cmds_GCJ=
24736 module_expsym_cmds_GCJ=
24737 always_export_symbols_GCJ=no
24738 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24739 # include_expsyms should be a list of space-separated symbols to be *always*
24740 # included in the symbol list
24741 include_expsyms_GCJ=
24742 # exclude_expsyms can be an extended regexp of symbols to exclude
24743 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24744 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24745 # as well as any symbol that contains `d'.
24746 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24747 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24748 # platforms (ab)use it in PIC code, but their linkers get confused if
24749 # the symbol is explicitly referenced. Since portable code cannot
24750 # rely on this symbol name, it's probably fine to never include it in
24751 # preloaded symbol tables.
24752 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024753 # Just being paranoid about ensuring that cc_basename is set.
24754 for cc_temp in $compiler""; do
24755 case $cc_temp in
24756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24758 \-*) ;;
24759 *) break;;
24760 esac
24761done
24762cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024763
24764 case $host_os in
24765 cygwin* | mingw* | pw32*)
24766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24767 # When not using gcc, we currently assume that we are using
24768 # Microsoft Visual C++.
24769 if test "$GCC" != yes; then
24770 with_gnu_ld=no
24771 fi
24772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024773 interix*)
24774 # we just hope/assume this is gcc and not c89 (= MSVC++)
24775 with_gnu_ld=yes
24776 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024777 openbsd*)
24778 with_gnu_ld=no
24779 ;;
24780 esac
24781
24782 ld_shlibs_GCJ=yes
24783 if test "$with_gnu_ld" = yes; then
24784 # If archive_cmds runs LD, not CC, wlarc should be empty
24785 wlarc='${wl}'
24786
Reid Spencera773bd52006-08-04 18:18:08 +000024787 # Set some defaults for GNU ld with shared library support. These
24788 # are reset later if shared libraries are not supported. Putting them
24789 # here allows them to be overridden if necessary.
24790 runpath_var=LD_RUN_PATH
24791 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24792 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24793 # ancient GNU ld didn't support --whole-archive et. al.
24794 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24795 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24796 else
24797 whole_archive_flag_spec_GCJ=
24798 fi
24799 supports_anon_versioning=no
24800 case `$LD -v 2>/dev/null` in
24801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24804 *\ 2.11.*) ;; # other 2.11 versions
24805 *) supports_anon_versioning=yes ;;
24806 esac
24807
John Criswell47fdd832003-07-14 16:52:07 +000024808 # See if GNU ld supports shared libraries.
24809 case $host_os in
24810 aix3* | aix4* | aix5*)
24811 # On AIX/PPC, the GNU linker is very broken
24812 if test "$host_cpu" != ia64; then
24813 ld_shlibs_GCJ=no
24814 cat <<EOF 1>&2
24815
24816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24817*** to be unable to reliably create shared libraries on AIX.
24818*** Therefore, libtool is disabling shared libraries support. If you
24819*** really care for shared libraries, you may want to modify your PATH
24820*** so that a non-GNU linker is found, and then restart.
24821
24822EOF
24823 fi
24824 ;;
24825
24826 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024827 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 +000024828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829 hardcode_minus_L_GCJ=yes
24830
24831 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24832 # that the semantics of dynamic libraries on AmigaOS, at least up
24833 # to version 4, is to share data among multiple programs linked
24834 # with the same dynamic library. Since this doesn't match the
24835 # behavior of shared libraries on other platforms, we can't use
24836 # them.
24837 ld_shlibs_GCJ=no
24838 ;;
24839
24840 beos*)
24841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24842 allow_undefined_flag_GCJ=unsupported
24843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24844 # support --undefined. This deserves some investigation. FIXME
24845 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846 else
24847 ld_shlibs_GCJ=no
24848 fi
24849 ;;
24850
24851 cygwin* | mingw* | pw32*)
24852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24853 # as there is no search path for DLLs.
24854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24855 allow_undefined_flag_GCJ=unsupported
24856 always_export_symbols_GCJ=no
24857 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024858 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 +000024859
24860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024861 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 +000024862 # If the export-symbols file already is a .def file (1st line
24863 # is EXPORTS), use it as is; otherwise, prepend...
24864 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24865 cp $export_symbols $output_objdir/$soname.def;
24866 else
24867 echo EXPORTS > $output_objdir/$soname.def;
24868 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024869 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024870 $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 +000024871 else
Reid Spencera773bd52006-08-04 18:18:08 +000024872 ld_shlibs_GCJ=no
24873 fi
24874 ;;
24875
24876 interix3*)
24877 hardcode_direct_GCJ=no
24878 hardcode_shlibpath_var_GCJ=no
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24880 export_dynamic_flag_spec_GCJ='${wl}-E'
24881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24882 # Instead, shared libraries are loaded at an image base (0x10000000 by
24883 # default) and relocated if they conflict, which is a slow very memory
24884 # consuming and fragmenting process. To avoid this, we pick a random,
24885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24887 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'
24888 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'
24889 ;;
24890
24891 linux*)
24892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24893 tmp_addflag=
24894 case $cc_basename,$host_cpu in
24895 pgcc*) # Portland Group C compiler
24896 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'
24897 tmp_addflag=' $pic_flag'
24898 ;;
24899 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24900 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'
24901 tmp_addflag=' $pic_flag -Mnomain' ;;
24902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24903 tmp_addflag=' -i_dynamic' ;;
24904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24905 tmp_addflag=' -i_dynamic -nofor_main' ;;
24906 ifc* | ifort*) # Intel Fortran compiler
24907 tmp_addflag=' -nofor_main' ;;
24908 esac
24909 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24910
24911 if test $supports_anon_versioning = yes; then
24912 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24914 $echo "local: *; };" >> $output_objdir/$libname.ver~
24915 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24916 fi
24917 else
24918 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024919 fi
24920 ;;
24921
24922 netbsd*)
24923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24924 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24925 wlarc=
24926 else
24927 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24928 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24929 fi
24930 ;;
24931
Reid Spencera773bd52006-08-04 18:18:08 +000024932 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024933 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24934 ld_shlibs_GCJ=no
24935 cat <<EOF 1>&2
24936
24937*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24938*** create shared libraries on Solaris systems. Therefore, libtool
24939*** is disabling shared libraries support. We urge you to upgrade GNU
24940*** binutils to release 2.9.1 or newer. Another option is to modify
24941*** your PATH or compiler configuration so that the native linker is
24942*** used, and then restart.
24943
24944EOF
24945 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24948 else
24949 ld_shlibs_GCJ=no
24950 fi
24951 ;;
24952
Reid Spencera773bd52006-08-04 18:18:08 +000024953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24954 case `$LD -v 2>&1` in
24955 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24956 ld_shlibs_GCJ=no
24957 cat <<_LT_EOF 1>&2
24958
24959*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24960*** reliably create shared libraries on SCO systems. Therefore, libtool
24961*** is disabling shared libraries support. We urge you to upgrade GNU
24962*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24963*** your PATH or compiler configuration so that the native linker is
24964*** used, and then restart.
24965
24966_LT_EOF
24967 ;;
24968 *)
24969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24972 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24973 else
24974 ld_shlibs_GCJ=no
24975 fi
24976 ;;
24977 esac
24978 ;;
24979
John Criswell47fdd832003-07-14 16:52:07 +000024980 sunos4*)
24981 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24982 wlarc=
24983 hardcode_direct_GCJ=yes
24984 hardcode_shlibpath_var_GCJ=no
24985 ;;
24986
24987 *)
24988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24991 else
24992 ld_shlibs_GCJ=no
24993 fi
24994 ;;
24995 esac
24996
Reid Spencera773bd52006-08-04 18:18:08 +000024997 if test "$ld_shlibs_GCJ" = no; then
24998 runpath_var=
24999 hardcode_libdir_flag_spec_GCJ=
25000 export_dynamic_flag_spec_GCJ=
25001 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000025002 fi
25003 else
25004 # PORTME fill in a description of your system's linker (not GNU ld)
25005 case $host_os in
25006 aix3*)
25007 allow_undefined_flag_GCJ=unsupported
25008 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000025009 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 +000025010 # Note: this linker hardcodes the directories in LIBPATH if there
25011 # are no directories specified by -L.
25012 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025013 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000025014 # Neither direct hardcoding nor static linking is supported with a
25015 # broken collect2.
25016 hardcode_direct_GCJ=unsupported
25017 fi
25018 ;;
25019
25020 aix4* | aix5*)
25021 if test "$host_cpu" = ia64; then
25022 # On IA64, the linker does run time linking by default, so we don't
25023 # have to do anything special.
25024 aix_use_runtimelinking=no
25025 exp_sym_flag='-Bexport'
25026 no_entry_flag=""
25027 else
25028 # If we're using GNU nm, then we don't want the "-C" option.
25029 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25030 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25031 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'
25032 else
25033 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'
25034 fi
25035 aix_use_runtimelinking=no
25036
25037 # Test if we are trying to use run time linking or normal
25038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25039 # need to do runtime linking.
25040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25041 for ld_flag in $LDFLAGS; do
25042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25043 aix_use_runtimelinking=yes
25044 break
25045 fi
25046 done
Reid Spencera773bd52006-08-04 18:18:08 +000025047 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025048 esac
25049
25050 exp_sym_flag='-bexport'
25051 no_entry_flag='-bnoentry'
25052 fi
25053
25054 # When large executables or shared objects are built, AIX ld can
25055 # have problems creating the table of contents. If linking a library
25056 # or program results in "error TOC overflow" add -mminimal-toc to
25057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25059
25060 archive_cmds_GCJ=''
25061 hardcode_direct_GCJ=yes
25062 hardcode_libdir_separator_GCJ=':'
25063 link_all_deplibs_GCJ=yes
25064
25065 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025066 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000025067 # We only want to do this on AIX 4.2 and lower, the check
25068 # below for broken collect2 doesn't work under 4.3+
25069 collect2name=`${CC} -print-prog-name=collect2`
25070 if test -f "$collect2name" && \
25071 strings "$collect2name" | grep resolve_lib_name >/dev/null
25072 then
25073 # We have reworked collect2
25074 hardcode_direct_GCJ=yes
25075 else
25076 # We have old collect2
25077 hardcode_direct_GCJ=unsupported
25078 # It fails to find uninstalled libraries when the uninstalled
25079 # path is not listed in the libpath. Setting hardcode_minus_L
25080 # to unsupported forces relinking
25081 hardcode_minus_L_GCJ=yes
25082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25083 hardcode_libdir_separator_GCJ=
25084 fi
Reid Spencera773bd52006-08-04 18:18:08 +000025085 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025086 esac
25087 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000025088 if test "$aix_use_runtimelinking" = yes; then
25089 shared_flag="$shared_flag "'${wl}-G'
25090 fi
John Criswell47fdd832003-07-14 16:52:07 +000025091 else
25092 # not using gcc
25093 if test "$host_cpu" = ia64; then
25094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25095 # chokes on -Wl,-G. The following line is correct:
25096 shared_flag='-G'
25097 else
Reid Spencera773bd52006-08-04 18:18:08 +000025098 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000025099 shared_flag='${wl}-G'
25100 else
25101 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000025102 fi
John Criswell47fdd832003-07-14 16:52:07 +000025103 fi
25104 fi
25105
25106 # It seems that -bexpall does not export symbols beginning with
25107 # underscore (_), so it is better to generate a list of symbols to export.
25108 always_export_symbols_GCJ=yes
25109 if test "$aix_use_runtimelinking" = yes; then
25110 # Warning - without using the other runtime loading flags (-brtl),
25111 # -berok will link without error, but may produce a broken library.
25112 allow_undefined_flag_GCJ='-berok'
25113 # Determine the default libpath from the value encoded in an empty executable.
25114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025115/* confdefs.h. */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025120
John Criswell47fdd832003-07-14 16:52:07 +000025121int
25122main ()
25123{
25124
25125 ;
25126 return 0;
25127}
25128_ACEOF
25129rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025130if { (ac_try="$ac_link"
25131case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134esac
25135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025142 (exit $ac_status); } &&
25143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25144 { (case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25147esac
25148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_try") 2>&5
25150 ac_status=$?
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; } &&
25153 { ac_try='test -s conftest$ac_exeext'
25154 { (case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25157esac
25158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_try") 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025163
25164aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25165}'`
25166# Check for a 64-bit object if we didn't find anything.
25167if 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; }
25168}'`; fi
25169else
25170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025171sed 's/^/| /' conftest.$ac_ext >&5
25172
Reid Spencera773bd52006-08-04 18:18:08 +000025173
John Criswell47fdd832003-07-14 16:52:07 +000025174fi
Reid Spencera773bd52006-08-04 18:18:08 +000025175
Bill Wendlingebcceee2009-04-18 11:20:33 +000025176rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025177 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25179
25180 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025181 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 +000025182 else
25183 if test "$host_cpu" = ia64; then
25184 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25185 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025186 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 +000025187 else
25188 # Determine the default libpath from the value encoded in an empty executable.
25189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025190/* confdefs.h. */
25191_ACEOF
25192cat confdefs.h >>conftest.$ac_ext
25193cat >>conftest.$ac_ext <<_ACEOF
25194/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025195
John Criswell47fdd832003-07-14 16:52:07 +000025196int
25197main ()
25198{
25199
25200 ;
25201 return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025205if { (ac_try="$ac_link"
25206case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25209esac
25210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025217 (exit $ac_status); } &&
25218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25219 { (case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25222esac
25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_try") 2>&5
25225 ac_status=$?
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; } &&
25228 { ac_try='test -s conftest$ac_exeext'
25229 { (case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232esac
25233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_try") 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025238
25239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25240}'`
25241# Check for a 64-bit object if we didn't find anything.
25242if 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; }
25243}'`; fi
25244else
25245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025246sed 's/^/| /' conftest.$ac_ext >&5
25247
Reid Spencera773bd52006-08-04 18:18:08 +000025248
John Criswell47fdd832003-07-14 16:52:07 +000025249fi
Reid Spencera773bd52006-08-04 18:18:08 +000025250
Bill Wendlingebcceee2009-04-18 11:20:33 +000025251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025252 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25254
25255 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25256 # Warning - without using the other run time loading flags,
25257 # -berok will link without error, but may produce a broken library.
25258 no_undefined_flag_GCJ=' ${wl}-bernotok'
25259 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025260 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025261 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025262 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025263 # This is similar to how AIX traditionally builds its shared libraries.
25264 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 +000025265 fi
25266 fi
25267 ;;
25268
25269 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025270 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 +000025271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25272 hardcode_minus_L_GCJ=yes
25273 # see comment about different semantics on the GNU ld section
25274 ld_shlibs_GCJ=no
25275 ;;
25276
Reid Spencer2706f8c2004-09-19 23:53:36 +000025277 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025278 export_dynamic_flag_spec_GCJ=-rdynamic
25279 ;;
25280
25281 cygwin* | mingw* | pw32*)
25282 # When not using gcc, we currently assume that we are using
25283 # Microsoft Visual C++.
25284 # hardcode_libdir_flag_spec is actually meaningless, as there is
25285 # no search path for DLLs.
25286 hardcode_libdir_flag_spec_GCJ=' '
25287 allow_undefined_flag_GCJ=unsupported
25288 # Tell ltmain to make .lib files, not .a files.
25289 libext=lib
25290 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025291 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025292 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025293 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 +000025294 # The linker will automatically build a .lib file if we build a DLL.
25295 old_archive_From_new_cmds_GCJ='true'
25296 # FIXME: Should let the user specify the lib program.
25297 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025298 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025299 enable_shared_with_static_runtimes_GCJ=yes
25300 ;;
25301
25302 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025303 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304 rhapsody* | darwin1.[012])
25305 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25306 ;;
25307 *) # Darwin 1.3 on
25308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25310 else
25311 case ${MACOSX_DEPLOYMENT_TARGET} in
25312 10.[012])
25313 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25314 ;;
25315 10.*)
25316 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25317 ;;
25318 esac
25319 fi
25320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025321 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025322 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025323 hardcode_direct_GCJ=no
25324 hardcode_automatic_GCJ=yes
25325 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025326 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025327 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025328 if test "$GCC" = yes ; then
25329 output_verbose_link_cmd='echo'
25330 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025332 # 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 +000025333 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}'
25334 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 +000025335 else
Reid Spencera773bd52006-08-04 18:18:08 +000025336 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025337 xlc*)
25338 output_verbose_link_cmd='echo'
25339 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025341 # 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 +000025342 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}'
25343 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 +000025344 ;;
25345 *)
25346 ld_shlibs_GCJ=no
25347 ;;
25348 esac
John Criswell47fdd832003-07-14 16:52:07 +000025349 fi
25350 ;;
25351
25352 dgux*)
25353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25355 hardcode_shlibpath_var_GCJ=no
25356 ;;
25357
25358 freebsd1*)
25359 ld_shlibs_GCJ=no
25360 ;;
25361
25362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25363 # support. Future versions do this automatically, but an explicit c++rt0.o
25364 # does not break anything, and helps significantly (at the cost of a little
25365 # extra space).
25366 freebsd2.2*)
25367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369 hardcode_direct_GCJ=yes
25370 hardcode_shlibpath_var_GCJ=no
25371 ;;
25372
25373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25374 freebsd2*)
25375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25376 hardcode_direct_GCJ=yes
25377 hardcode_minus_L_GCJ=yes
25378 hardcode_shlibpath_var_GCJ=no
25379 ;;
25380
25381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025382 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025383 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385 hardcode_direct_GCJ=yes
25386 hardcode_shlibpath_var_GCJ=no
25387 ;;
25388
25389 hpux9*)
25390 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025391 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 +000025392 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025393 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 +000025394 fi
25395 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25396 hardcode_libdir_separator_GCJ=:
25397 hardcode_direct_GCJ=yes
25398
25399 # hardcode_minus_L: Not really in the search PATH,
25400 # but as the default location of the library.
25401 hardcode_minus_L_GCJ=yes
25402 export_dynamic_flag_spec_GCJ='${wl}-E'
25403 ;;
25404
Reid Spencera773bd52006-08-04 18:18:08 +000025405 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25408 else
25409 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25410 fi
25411 if test "$with_gnu_ld" = no; then
25412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25413 hardcode_libdir_separator_GCJ=:
25414
25415 hardcode_direct_GCJ=yes
25416 export_dynamic_flag_spec_GCJ='${wl}-E'
25417
25418 # hardcode_minus_L: Not really in the search PATH,
25419 # but as the default location of the library.
25420 hardcode_minus_L_GCJ=yes
25421 fi
25422 ;;
25423
25424 hpux11*)
25425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25426 case $host_cpu in
25427 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025430 ia64*)
25431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25432 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025433 *)
25434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25435 ;;
25436 esac
25437 else
Reid Spencera773bd52006-08-04 18:18:08 +000025438 case $host_cpu in
25439 hppa*64*)
25440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441 ;;
25442 ia64*)
25443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025444 ;;
25445 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025446 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 +000025447 ;;
25448 esac
25449 fi
25450 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25452 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025453
Reid Spencera773bd52006-08-04 18:18:08 +000025454 case $host_cpu in
25455 hppa*64*|ia64*)
25456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25457 hardcode_direct_GCJ=no
25458 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025459 ;;
25460 *)
John Criswell47fdd832003-07-14 16:52:07 +000025461 hardcode_direct_GCJ=yes
25462 export_dynamic_flag_spec_GCJ='${wl}-E'
25463
25464 # hardcode_minus_L: Not really in the search PATH,
25465 # but as the default location of the library.
25466 hardcode_minus_L_GCJ=yes
25467 ;;
25468 esac
25469 fi
25470 ;;
25471
25472 irix5* | irix6* | nonstopux*)
25473 if test "$GCC" = yes; then
25474 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'
25475 else
25476 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'
25477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25478 fi
25479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25480 hardcode_libdir_separator_GCJ=:
25481 link_all_deplibs_GCJ=yes
25482 ;;
25483
25484 netbsd*)
25485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25487 else
25488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25489 fi
25490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25491 hardcode_direct_GCJ=yes
25492 hardcode_shlibpath_var_GCJ=no
25493 ;;
25494
25495 newsos6)
25496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497 hardcode_direct_GCJ=yes
25498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25499 hardcode_libdir_separator_GCJ=:
25500 hardcode_shlibpath_var_GCJ=no
25501 ;;
25502
25503 openbsd*)
25504 hardcode_direct_GCJ=yes
25505 hardcode_shlibpath_var_GCJ=no
25506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025508 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 +000025509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25510 export_dynamic_flag_spec_GCJ='${wl}-E'
25511 else
25512 case $host_os in
25513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25516 ;;
25517 *)
25518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25520 ;;
25521 esac
25522 fi
25523 ;;
25524
25525 os2*)
25526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25527 hardcode_minus_L_GCJ=yes
25528 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025529 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 +000025530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25531 ;;
25532
25533 osf3*)
25534 if test "$GCC" = yes; then
25535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25536 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'
25537 else
25538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25539 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'
25540 fi
25541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25542 hardcode_libdir_separator_GCJ=:
25543 ;;
25544
25545 osf4* | osf5*) # as osf3* with the addition of -msym flag
25546 if test "$GCC" = yes; then
25547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25548 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'
25549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25550 else
25551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25552 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 +000025553 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 +000025554 $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 +000025555
John Criswell47fdd832003-07-14 16:52:07 +000025556 # Both c and cxx compiler support -rpath directly
25557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25558 fi
25559 hardcode_libdir_separator_GCJ=:
25560 ;;
25561
John Criswell47fdd832003-07-14 16:52:07 +000025562 solaris*)
25563 no_undefined_flag_GCJ=' -z text'
25564 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025565 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25568 $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 +000025569 else
Reid Spencera773bd52006-08-04 18:18:08 +000025570 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25573 $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 +000025574 fi
25575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25576 hardcode_shlibpath_var_GCJ=no
25577 case $host_os in
25578 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025579 *)
25580 # The compiler driver will combine linker options so we
25581 # cannot just pass the convience library names through
25582 # without $wl, iff we do not link with $LD.
25583 # Luckily, gcc supports the same syntax we need for Sun Studio.
25584 # Supported since Solaris 2.6 (maybe 2.5.1?)
25585 case $wlarc in
25586 '')
25587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25588 *)
25589 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' ;;
25590 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025591 esac
25592 link_all_deplibs_GCJ=yes
25593 ;;
25594
25595 sunos4*)
25596 if test "x$host_vendor" = xsequent; then
25597 # Use $CC to link under sequent, because it throws in some extra .o
25598 # files that make .init and .fini sections work.
25599 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25600 else
25601 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25602 fi
25603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25604 hardcode_direct_GCJ=yes
25605 hardcode_minus_L_GCJ=yes
25606 hardcode_shlibpath_var_GCJ=no
25607 ;;
25608
25609 sysv4)
25610 case $host_vendor in
25611 sni)
25612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25613 hardcode_direct_GCJ=yes # is this really true???
25614 ;;
25615 siemens)
25616 ## LD is ld it makes a PLAMLIB
25617 ## CC just makes a GrossModule.
25618 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25619 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25620 hardcode_direct_GCJ=no
25621 ;;
25622 motorola)
25623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25624 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25625 ;;
25626 esac
25627 runpath_var='LD_RUN_PATH'
25628 hardcode_shlibpath_var_GCJ=no
25629 ;;
25630
25631 sysv4.3*)
25632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25633 hardcode_shlibpath_var_GCJ=no
25634 export_dynamic_flag_spec_GCJ='-Bexport'
25635 ;;
25636
25637 sysv4*MP*)
25638 if test -d /usr/nec; then
25639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25640 hardcode_shlibpath_var_GCJ=no
25641 runpath_var=LD_RUN_PATH
25642 hardcode_runpath_var=yes
25643 ld_shlibs_GCJ=yes
25644 fi
25645 ;;
25646
Reid Spencera773bd52006-08-04 18:18:08 +000025647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25648 no_undefined_flag_GCJ='${wl}-z,text'
25649 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025650 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025651 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025652
John Criswell47fdd832003-07-14 16:52:07 +000025653 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025654 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25655 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 +000025656 else
Reid Spencera773bd52006-08-04 18:18:08 +000025657 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25658 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 +000025659 fi
John Criswell47fdd832003-07-14 16:52:07 +000025660 ;;
25661
Reid Spencera773bd52006-08-04 18:18:08 +000025662 sysv5* | sco3.2v5* | sco5v6*)
25663 # Note: We can NOT use -z defs as we might desire, because we do not
25664 # link with -lc, and that would cause any symbols used from libc to
25665 # always be unresolved, which means just about no library would
25666 # ever link correctly. If we're not using GNU ld we use -z text
25667 # though, which does catch some bad symbols but isn't as heavy-handed
25668 # as -z defs.
25669 no_undefined_flag_GCJ='${wl}-z,text'
25670 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25671 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025672 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25674 hardcode_libdir_separator_GCJ=':'
25675 link_all_deplibs_GCJ=yes
25676 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025677 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025678
25679 if test "$GCC" = yes; then
25680 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25681 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25682 else
25683 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25684 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25685 fi
John Criswell47fdd832003-07-14 16:52:07 +000025686 ;;
25687
25688 uts4*)
25689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25691 hardcode_shlibpath_var_GCJ=no
25692 ;;
25693
25694 *)
25695 ld_shlibs_GCJ=no
25696 ;;
25697 esac
25698 fi
25699
Reid Spencera773bd52006-08-04 18:18:08 +000025700{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25701echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025702test "$ld_shlibs_GCJ" = no && can_build_shared=no
25703
John Criswell47fdd832003-07-14 16:52:07 +000025704#
25705# Do we need to explicitly link libc?
25706#
25707case "x$archive_cmds_need_lc_GCJ" in
25708x|xyes)
25709 # Assume -lc should be added
25710 archive_cmds_need_lc_GCJ=yes
25711
25712 if test "$enable_shared" = yes && test "$GCC" = yes; then
25713 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025714 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025715 # FIXME: we may have to deal with multi-command sequences.
25716 ;;
25717 '$CC '*)
25718 # Test whether the compiler implicitly links with -lc since on some
25719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25720 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025721 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25722echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025723 $rm conftest*
25724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25725
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } 2>conftest.err; then
25731 soname=conftest
25732 lib=conftest
25733 libobjs=conftest.$ac_objext
25734 deplibs=
25735 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025736 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025737 compiler_flags=-v
25738 linker_flags=-v
25739 verstring=
25740 output_objdir=.
25741 libname=conftest
25742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25743 allow_undefined_flag_GCJ=
25744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }
25749 then
25750 archive_cmds_need_lc_GCJ=no
25751 else
25752 archive_cmds_need_lc_GCJ=yes
25753 fi
25754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25755 else
25756 cat conftest.err 1>&5
25757 fi
25758 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025759 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25760echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025761 ;;
25762 esac
25763 fi
25764 ;;
25765esac
25766
Reid Spencera773bd52006-08-04 18:18:08 +000025767{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025769library_names_spec=
25770libname_spec='lib$name'
25771soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025772shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025773postinstall_cmds=
25774postuninstall_cmds=
25775finish_cmds=
25776finish_eval=
25777shlibpath_var=
25778shlibpath_overrides_runpath=unknown
25779version_type=none
25780dynamic_linker="$host_os ld.so"
25781sys_lib_dlsearch_path_spec="/lib /usr/lib"
25782if test "$GCC" = yes; then
25783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25785 # if the path contains ";" then we assume it to be the separator
25786 # otherwise default to the standard path separator (i.e. ":") - it is
25787 # assumed that no part of a normal pathname contains ";" but that should
25788 # okay in the real world where ";" in dirpaths is itself problematic.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790 else
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25792 fi
25793else
25794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25795fi
25796need_lib_prefix=unknown
25797hardcode_into_libs=no
25798
25799# when you set need_version to no, make sure it does not cause -set_version
25800# flags to be left without arguments
25801need_version=unknown
25802
25803case $host_os in
25804aix3*)
25805 version_type=linux
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25807 shlibpath_var=LIBPATH
25808
25809 # AIX 3 has no versioning support, so we append a major version to the name.
25810 soname_spec='${libname}${release}${shared_ext}$major'
25811 ;;
25812
25813aix4* | aix5*)
25814 version_type=linux
25815 need_lib_prefix=no
25816 need_version=no
25817 hardcode_into_libs=yes
25818 if test "$host_cpu" = ia64; then
25819 # AIX 5 supports IA64
25820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25821 shlibpath_var=LD_LIBRARY_PATH
25822 else
25823 # With GCC up to 2.95.x, collect2 would create an import file
25824 # for dependence libraries. The import file would start with
25825 # the line `#! .'. This would cause the generated library to
25826 # depend on `.', always an invalid library. This was fixed in
25827 # development snapshots of GCC prior to 3.0.
25828 case $host_os in
25829 aix4 | aix4.[01] | aix4.[01].*)
25830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25831 echo ' yes '
25832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25833 :
25834 else
25835 can_build_shared=no
25836 fi
25837 ;;
25838 esac
25839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25840 # soname into executable. Probably we can add versioning support to
25841 # collect2, so additional links can be useful in future.
25842 if test "$aix_use_runtimelinking" = yes; then
25843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25844 # instead of lib<name>.a to let people know that these are not
25845 # typical AIX shared libraries.
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25847 else
25848 # We preserve .a as extension for shared libraries through AIX4.2
25849 # and later when we are not doing run time linking.
25850 library_names_spec='${libname}${release}.a $libname.a'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25852 fi
25853 shlibpath_var=LIBPATH
25854 fi
25855 ;;
25856
25857amigaos*)
25858 library_names_spec='$libname.ixlibrary $libname.a'
25859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025860 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 +000025861 ;;
25862
25863beos*)
25864 library_names_spec='${libname}${shared_ext}'
25865 dynamic_linker="$host_os ld.so"
25866 shlibpath_var=LIBRARY_PATH
25867 ;;
25868
Reid Spencer2706f8c2004-09-19 23:53:36 +000025869bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025870 version_type=linux
25871 need_version=no
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25878 # the default ld.so.conf also contains /usr/contrib/lib and
25879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25880 # libtool to hard-code these into programs
25881 ;;
25882
25883cygwin* | mingw* | pw32*)
25884 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025885 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025886 need_version=no
25887 need_lib_prefix=no
25888
25889 case $GCC,$host_os in
25890 yes,cygwin* | yes,mingw* | yes,pw32*)
25891 library_names_spec='$libname.dll.a'
25892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025893 postinstall_cmds='base_file=`basename \${file}`~
25894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25895 dldir=$destdir/`dirname \$dlpath`~
25896 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025897 $install_prog $dir/$dlname \$dldir/$dlname~
25898 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25900 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025901 $rm \$dlpath'
25902 shlibpath_overrides_runpath=yes
25903
25904 case $host_os in
25905 cygwin*)
25906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25907 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 +000025908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025909 ;;
25910 mingw*)
25911 # MinGW DLLs use traditional 'lib' prefix
25912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25915 # It is most probably a Windows format PATH printed by
25916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25917 # path with ; separators, and with drive letters. We can handle the
25918 # drive letters (cygwin fileutils understands them), so leave them,
25919 # especially as we might pass files found there to a mingw objdump,
25920 # which wouldn't understand a cygwinified path. Ahh.
25921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25922 else
25923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25924 fi
25925 ;;
25926 pw32*)
25927 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025928 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 +000025929 ;;
25930 esac
25931 ;;
25932
25933 *)
25934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25935 ;;
25936 esac
25937 dynamic_linker='Win32 ld.exe'
25938 # FIXME: first we should search . and the directory the executable is in
25939 shlibpath_var=PATH
25940 ;;
25941
25942darwin* | rhapsody*)
25943 dynamic_linker="$host_os dyld"
25944 version_type=darwin
25945 need_lib_prefix=no
25946 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025948 soname_spec='${libname}${release}${major}$shared_ext'
25949 shlibpath_overrides_runpath=yes
25950 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025951 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025953 if test "$GCC" = yes; then
25954 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"`
25955 else
25956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025957 fi
25958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25959 ;;
25960
25961dgux*)
25962 version_type=linux
25963 need_lib_prefix=no
25964 need_version=no
25965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25966 soname_spec='${libname}${release}${shared_ext}$major'
25967 shlibpath_var=LD_LIBRARY_PATH
25968 ;;
25969
25970freebsd1*)
25971 dynamic_linker=no
25972 ;;
25973
Reid Spencer2706f8c2004-09-19 23:53:36 +000025974kfreebsd*-gnu)
25975 version_type=linux
25976 need_lib_prefix=no
25977 need_version=no
25978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec='${libname}${release}${shared_ext}$major'
25980 shlibpath_var=LD_LIBRARY_PATH
25981 shlibpath_overrides_runpath=no
25982 hardcode_into_libs=yes
25983 dynamic_linker='GNU ld.so'
25984 ;;
25985
Reid Spencera773bd52006-08-04 18:18:08 +000025986freebsd* | dragonfly*)
25987 # DragonFly does not have aout. When/if they implement a new
25988 # versioning mechanism, adjust this.
25989 if test -x /usr/bin/objformat; then
25990 objformat=`/usr/bin/objformat`
25991 else
25992 case $host_os in
25993 freebsd[123]*) objformat=aout ;;
25994 *) objformat=elf ;;
25995 esac
25996 fi
John Criswell47fdd832003-07-14 16:52:07 +000025997 version_type=freebsd-$objformat
25998 case $version_type in
25999 freebsd-elf*)
26000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26001 need_version=no
26002 need_lib_prefix=no
26003 ;;
26004 freebsd-*)
26005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26006 need_version=yes
26007 ;;
26008 esac
26009 shlibpath_var=LD_LIBRARY_PATH
26010 case $host_os in
26011 freebsd2*)
26012 shlibpath_overrides_runpath=yes
26013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026014 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000026015 shlibpath_overrides_runpath=yes
26016 hardcode_into_libs=yes
26017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000026020 shlibpath_overrides_runpath=no
26021 hardcode_into_libs=yes
26022 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000026023 freebsd*) # from 4.6 on
26024 shlibpath_overrides_runpath=yes
26025 hardcode_into_libs=yes
26026 ;;
John Criswell47fdd832003-07-14 16:52:07 +000026027 esac
26028 ;;
26029
26030gnu*)
26031 version_type=linux
26032 need_lib_prefix=no
26033 need_version=no
26034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26035 soname_spec='${libname}${release}${shared_ext}$major'
26036 shlibpath_var=LD_LIBRARY_PATH
26037 hardcode_into_libs=yes
26038 ;;
26039
26040hpux9* | hpux10* | hpux11*)
26041 # Give a soname corresponding to the major version so that dld.sl refuses to
26042 # link against other versions.
26043 version_type=sunos
26044 need_lib_prefix=no
26045 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000026046 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000026047 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026048 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000026049 hardcode_into_libs=yes
26050 dynamic_linker="$host_os dld.so"
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 if test "X$HPUX_IA64_MODE" = X32; then
26056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26057 else
26058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26059 fi
26060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26061 ;;
26062 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026063 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000026064 hardcode_into_libs=yes
26065 dynamic_linker="$host_os dld.sl"
26066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26069 soname_spec='${libname}${release}${shared_ext}$major'
26070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26072 ;;
26073 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026074 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000026075 dynamic_linker="$host_os dld.sl"
26076 shlibpath_var=SHLIB_PATH
26077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079 soname_spec='${libname}${release}${shared_ext}$major'
26080 ;;
26081 esac
26082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26083 postinstall_cmds='chmod 555 $lib'
26084 ;;
26085
Reid Spencera773bd52006-08-04 18:18:08 +000026086interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26093 shlibpath_var=LD_LIBRARY_PATH
26094 shlibpath_overrides_runpath=no
26095 hardcode_into_libs=yes
26096 ;;
26097
John Criswell47fdd832003-07-14 16:52:07 +000026098irix5* | irix6* | nonstopux*)
26099 case $host_os in
26100 nonstopux*) version_type=nonstopux ;;
26101 *)
26102 if test "$lt_cv_prog_gnu_ld" = yes; then
26103 version_type=linux
26104 else
26105 version_type=irix
26106 fi ;;
26107 esac
26108 need_lib_prefix=no
26109 need_version=no
26110 soname_spec='${libname}${release}${shared_ext}$major'
26111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26112 case $host_os in
26113 irix5* | nonstopux*)
26114 libsuff= shlibsuff=
26115 ;;
26116 *)
26117 case $LD in # libtool.m4 will add one of these switches to LD
26118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26119 libsuff= shlibsuff= libmagic=32-bit;;
26120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26121 libsuff=32 shlibsuff=N32 libmagic=N32;;
26122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26124 *) libsuff= shlibsuff= libmagic=never-match;;
26125 esac
26126 ;;
26127 esac
26128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26129 shlibpath_overrides_runpath=no
26130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26132 hardcode_into_libs=yes
26133 ;;
26134
26135# No shared lib support for Linux oldld, aout, or coff.
26136linux*oldld* | linux*aout* | linux*coff*)
26137 dynamic_linker=no
26138 ;;
26139
26140# This must be Linux ELF.
26141linux*)
26142 version_type=linux
26143 need_lib_prefix=no
26144 need_version=no
26145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146 soname_spec='${libname}${release}${shared_ext}$major'
26147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath=no
26150 # This implies no fast_install, which is unacceptable.
26151 # Some rework will be needed to allow for fast_install
26152 # before this can be enabled.
26153 hardcode_into_libs=yes
26154
Reid Spencer2706f8c2004-09-19 23:53:36 +000026155 # Append ld.so.conf contents to the search path
26156 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026157 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 +000026158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26159 fi
26160
John Criswell47fdd832003-07-14 16:52:07 +000026161 # We used to test for /lib/ld.so.1 and disable shared libraries on
26162 # powerpc, because MkLinux only supported shared libraries with the
26163 # GNU dynamic linker. Since this was broken with cross compilers,
26164 # most powerpc-linux boxes support dynamic linking these days and
26165 # people can always --disable-shared, the test was removed, and we
26166 # assume the GNU/Linux dynamic linker is in use.
26167 dynamic_linker='GNU/Linux ld.so'
26168 ;;
26169
Reid Spencer2706f8c2004-09-19 23:53:36 +000026170knetbsd*-gnu)
26171 version_type=linux
26172 need_lib_prefix=no
26173 need_version=no
26174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26175 soname_spec='${libname}${release}${shared_ext}$major'
26176 shlibpath_var=LD_LIBRARY_PATH
26177 shlibpath_overrides_runpath=no
26178 hardcode_into_libs=yes
26179 dynamic_linker='GNU ld.so'
26180 ;;
26181
John Criswell47fdd832003-07-14 16:52:07 +000026182netbsd*)
26183 version_type=sunos
26184 need_lib_prefix=no
26185 need_version=no
26186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26189 dynamic_linker='NetBSD (a.out) ld.so'
26190 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026192 soname_spec='${libname}${release}${shared_ext}$major'
26193 dynamic_linker='NetBSD ld.elf_so'
26194 fi
26195 shlibpath_var=LD_LIBRARY_PATH
26196 shlibpath_overrides_runpath=yes
26197 hardcode_into_libs=yes
26198 ;;
26199
26200newsos6)
26201 version_type=linux
26202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203 shlibpath_var=LD_LIBRARY_PATH
26204 shlibpath_overrides_runpath=yes
26205 ;;
26206
Reid Spencer2706f8c2004-09-19 23:53:36 +000026207nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026208 version_type=linux
26209 need_lib_prefix=no
26210 need_version=no
26211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26212 soname_spec='${libname}${release}${shared_ext}$major'
26213 shlibpath_var=LD_LIBRARY_PATH
26214 shlibpath_overrides_runpath=yes
26215 ;;
26216
26217openbsd*)
26218 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026219 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026220 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26222 case $host_os in
26223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26224 *) need_version=no ;;
26225 esac
John Criswell47fdd832003-07-14 16:52:07 +000026226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26228 shlibpath_var=LD_LIBRARY_PATH
26229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26230 case $host_os in
26231 openbsd2.[89] | openbsd2.[89].*)
26232 shlibpath_overrides_runpath=no
26233 ;;
26234 *)
26235 shlibpath_overrides_runpath=yes
26236 ;;
26237 esac
26238 else
26239 shlibpath_overrides_runpath=yes
26240 fi
26241 ;;
26242
26243os2*)
26244 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026245 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026246 need_lib_prefix=no
26247 library_names_spec='$libname${shared_ext} $libname.a'
26248 dynamic_linker='OS/2 ld.exe'
26249 shlibpath_var=LIBPATH
26250 ;;
26251
26252osf3* | osf4* | osf5*)
26253 version_type=osf
26254 need_lib_prefix=no
26255 need_version=no
26256 soname_spec='${libname}${release}${shared_ext}$major'
26257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26258 shlibpath_var=LD_LIBRARY_PATH
26259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26261 ;;
26262
John Criswell47fdd832003-07-14 16:52:07 +000026263solaris*)
26264 version_type=linux
26265 need_lib_prefix=no
26266 need_version=no
26267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26268 soname_spec='${libname}${release}${shared_ext}$major'
26269 shlibpath_var=LD_LIBRARY_PATH
26270 shlibpath_overrides_runpath=yes
26271 hardcode_into_libs=yes
26272 # ldd complains unless libraries are executable
26273 postinstall_cmds='chmod +x $lib'
26274 ;;
26275
26276sunos4*)
26277 version_type=sunos
26278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26280 shlibpath_var=LD_LIBRARY_PATH
26281 shlibpath_overrides_runpath=yes
26282 if test "$with_gnu_ld" = yes; then
26283 need_lib_prefix=no
26284 fi
26285 need_version=yes
26286 ;;
26287
Reid Spencera773bd52006-08-04 18:18:08 +000026288sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026289 version_type=linux
26290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26291 soname_spec='${libname}${release}${shared_ext}$major'
26292 shlibpath_var=LD_LIBRARY_PATH
26293 case $host_vendor in
26294 sni)
26295 shlibpath_overrides_runpath=no
26296 need_lib_prefix=no
26297 export_dynamic_flag_spec='${wl}-Blargedynsym'
26298 runpath_var=LD_RUN_PATH
26299 ;;
26300 siemens)
26301 need_lib_prefix=no
26302 ;;
26303 motorola)
26304 need_lib_prefix=no
26305 need_version=no
26306 shlibpath_overrides_runpath=no
26307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26308 ;;
26309 esac
26310 ;;
26311
26312sysv4*MP*)
26313 if test -d /usr/nec ;then
26314 version_type=linux
26315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26316 soname_spec='$libname${shared_ext}.$major'
26317 shlibpath_var=LD_LIBRARY_PATH
26318 fi
26319 ;;
26320
Reid Spencera773bd52006-08-04 18:18:08 +000026321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26322 version_type=freebsd-elf
26323 need_lib_prefix=no
26324 need_version=no
26325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26326 soname_spec='${libname}${release}${shared_ext}$major'
26327 shlibpath_var=LD_LIBRARY_PATH
26328 hardcode_into_libs=yes
26329 if test "$with_gnu_ld" = yes; then
26330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26331 shlibpath_overrides_runpath=no
26332 else
26333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26334 shlibpath_overrides_runpath=yes
26335 case $host_os in
26336 sco3.2v5*)
26337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26338 ;;
26339 esac
26340 fi
26341 sys_lib_dlsearch_path_spec='/usr/lib'
26342 ;;
26343
John Criswell47fdd832003-07-14 16:52:07 +000026344uts4*)
26345 version_type=linux
26346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26347 soname_spec='${libname}${release}${shared_ext}$major'
26348 shlibpath_var=LD_LIBRARY_PATH
26349 ;;
26350
26351*)
26352 dynamic_linker=no
26353 ;;
26354esac
Reid Spencera773bd52006-08-04 18:18:08 +000026355{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26356echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026357test "$dynamic_linker" = no && can_build_shared=no
26358
Reid Spencera773bd52006-08-04 18:18:08 +000026359variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26360if test "$GCC" = yes; then
26361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26362fi
26363
26364{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26365echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026366hardcode_action_GCJ=
26367if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26368 test -n "$runpath_var_GCJ" || \
26369 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26370
26371 # We can hardcode non-existant directories.
26372 if test "$hardcode_direct_GCJ" != no &&
26373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26374 # have to relink, otherwise we might link with an installed library
26375 # when we should be linking with a yet-to-be-installed one
26376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26377 test "$hardcode_minus_L_GCJ" != no; then
26378 # Linking always hardcodes the temporary library directory.
26379 hardcode_action_GCJ=relink
26380 else
26381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26382 hardcode_action_GCJ=immediate
26383 fi
26384else
26385 # We cannot hardcode anything, or else we can only hardcode existing
26386 # directories.
26387 hardcode_action_GCJ=unsupported
26388fi
Reid Spencera773bd52006-08-04 18:18:08 +000026389{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26390echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026391
26392if test "$hardcode_action_GCJ" = relink; then
26393 # Fast installation is not supported
26394 enable_fast_install=no
26395elif test "$shlibpath_overrides_runpath" = yes ||
26396 test "$enable_shared" = no; then
26397 # Fast installation is not necessary
26398 enable_fast_install=needless
26399fi
26400
John Criswell47fdd832003-07-14 16:52:07 +000026401
26402# The else clause should only fire when bootstrapping the
26403# libtool distribution, otherwise you forgot to ship ltmain.sh
26404# with your package, and you will get complaints that there are
26405# no rules to generate ltmain.sh.
26406if test -f "$ltmain"; then
26407 # See if we are running on zsh, and set the options which allow our commands through
26408 # without removal of \ escapes.
26409 if test -n "${ZSH_VERSION+set}" ; then
26410 setopt NO_GLOB_SUBST
26411 fi
26412 # Now quote all the things that may contain metacharacters while being
26413 # careful not to overquote the AC_SUBSTed values. We take copies of the
26414 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026415 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 +000026416 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26419 deplibs_check_method reload_flag reload_cmds need_locks \
26420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26421 lt_cv_sys_global_symbol_to_c_name_address \
26422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26423 old_postinstall_cmds old_postuninstall_cmds \
26424 compiler_GCJ \
26425 CC_GCJ \
26426 LD_GCJ \
26427 lt_prog_compiler_wl_GCJ \
26428 lt_prog_compiler_pic_GCJ \
26429 lt_prog_compiler_static_GCJ \
26430 lt_prog_compiler_no_builtin_flag_GCJ \
26431 export_dynamic_flag_spec_GCJ \
26432 thread_safe_flag_spec_GCJ \
26433 whole_archive_flag_spec_GCJ \
26434 enable_shared_with_static_runtimes_GCJ \
26435 old_archive_cmds_GCJ \
26436 old_archive_from_new_cmds_GCJ \
26437 predep_objects_GCJ \
26438 postdep_objects_GCJ \
26439 predeps_GCJ \
26440 postdeps_GCJ \
26441 compiler_lib_search_path_GCJ \
26442 archive_cmds_GCJ \
26443 archive_expsym_cmds_GCJ \
26444 postinstall_cmds_GCJ \
26445 postuninstall_cmds_GCJ \
26446 old_archive_from_expsyms_cmds_GCJ \
26447 allow_undefined_flag_GCJ \
26448 no_undefined_flag_GCJ \
26449 export_symbols_cmds_GCJ \
26450 hardcode_libdir_flag_spec_GCJ \
26451 hardcode_libdir_flag_spec_ld_GCJ \
26452 hardcode_libdir_separator_GCJ \
26453 hardcode_automatic_GCJ \
26454 module_cmds_GCJ \
26455 module_expsym_cmds_GCJ \
26456 lt_cv_prog_compiler_c_o_GCJ \
26457 exclude_expsyms_GCJ \
26458 include_expsyms_GCJ; do
26459
26460 case $var in
26461 old_archive_cmds_GCJ | \
26462 old_archive_from_new_cmds_GCJ | \
26463 archive_cmds_GCJ | \
26464 archive_expsym_cmds_GCJ | \
26465 module_cmds_GCJ | \
26466 module_expsym_cmds_GCJ | \
26467 old_archive_from_expsyms_cmds_GCJ | \
26468 export_symbols_cmds_GCJ | \
26469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26470 postinstall_cmds | postuninstall_cmds | \
26471 old_postinstall_cmds | old_postuninstall_cmds | \
26472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26473 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026474 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 +000026475 ;;
26476 *)
26477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26478 ;;
26479 esac
26480 done
26481
26482 case $lt_echo in
26483 *'\$0 --fallback-echo"')
26484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26485 ;;
26486 esac
26487
26488cfgfile="$ofile"
26489
26490 cat <<__EOF__ >> "$cfgfile"
26491# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26492
26493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26494
26495# Shell to use when invoking shell scripts.
26496SHELL=$lt_SHELL
26497
26498# Whether or not to build shared libraries.
26499build_libtool_libs=$enable_shared
26500
26501# Whether or not to build static libraries.
26502build_old_libs=$enable_static
26503
26504# Whether or not to add -lc for building shared libraries.
26505build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26506
26507# Whether or not to disallow shared libs when runtime libs are static
26508allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26509
26510# Whether or not to optimize for fast installation.
26511fast_install=$enable_fast_install
26512
26513# The host system.
26514host_alias=$host_alias
26515host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026516host_os=$host_os
26517
26518# The build system.
26519build_alias=$build_alias
26520build=$build
26521build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026522
26523# An echo program that does not interpret backslashes.
26524echo=$lt_echo
26525
26526# The archiver.
26527AR=$lt_AR
26528AR_FLAGS=$lt_AR_FLAGS
26529
26530# A C compiler.
26531LTCC=$lt_LTCC
26532
Reid Spencera773bd52006-08-04 18:18:08 +000026533# LTCC compiler flags.
26534LTCFLAGS=$lt_LTCFLAGS
26535
John Criswell47fdd832003-07-14 16:52:07 +000026536# A language-specific compiler.
26537CC=$lt_compiler_GCJ
26538
26539# Is the compiler the GNU C compiler?
26540with_gcc=$GCC_GCJ
26541
26542# An ERE matcher.
26543EGREP=$lt_EGREP
26544
26545# The linker used to build libraries.
26546LD=$lt_LD_GCJ
26547
26548# Whether we need hard or soft links.
26549LN_S=$lt_LN_S
26550
26551# A BSD-compatible nm program.
26552NM=$lt_NM
26553
26554# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026555STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026556
26557# Used to examine libraries when file_magic_cmd begins "file"
26558MAGIC_CMD=$MAGIC_CMD
26559
26560# Used on cygwin: DLL creation program.
26561DLLTOOL="$DLLTOOL"
26562
26563# Used on cygwin: object dumper.
26564OBJDUMP="$OBJDUMP"
26565
26566# Used on cygwin: assembler.
26567AS="$AS"
26568
26569# The name of the directory that contains temporary libtool files.
26570objdir=$objdir
26571
26572# How to create reloadable object files.
26573reload_flag=$lt_reload_flag
26574reload_cmds=$lt_reload_cmds
26575
26576# How to pass a linker flag through the compiler.
26577wl=$lt_lt_prog_compiler_wl_GCJ
26578
26579# Object file suffix (normally "o").
26580objext="$ac_objext"
26581
26582# Old archive suffix (normally "a").
26583libext="$libext"
26584
26585# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026586shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026587
26588# Executable file suffix (normally "").
26589exeext="$exeext"
26590
26591# Additional compiler flags for building library objects.
26592pic_flag=$lt_lt_prog_compiler_pic_GCJ
26593pic_mode=$pic_mode
26594
26595# What is the maximum length of a command?
26596max_cmd_len=$lt_cv_sys_max_cmd_len
26597
26598# Does compiler simultaneously support -c and -o options?
26599compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26600
Reid Spencera773bd52006-08-04 18:18:08 +000026601# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026602need_locks=$lt_need_locks
26603
26604# Do we need the lib prefix for modules?
26605need_lib_prefix=$need_lib_prefix
26606
26607# Do we need a version for libraries?
26608need_version=$need_version
26609
26610# Whether dlopen is supported.
26611dlopen_support=$enable_dlopen
26612
26613# Whether dlopen of programs is supported.
26614dlopen_self=$enable_dlopen_self
26615
26616# Whether dlopen of statically linked programs is supported.
26617dlopen_self_static=$enable_dlopen_self_static
26618
26619# Compiler flag to prevent dynamic linking.
26620link_static_flag=$lt_lt_prog_compiler_static_GCJ
26621
26622# Compiler flag to turn off builtin functions.
26623no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26624
26625# Compiler flag to allow reflexive dlopens.
26626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26627
26628# Compiler flag to generate shared objects directly from archives.
26629whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26630
26631# Compiler flag to generate thread-safe objects.
26632thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26633
26634# Library versioning type.
26635version_type=$version_type
26636
26637# Format of library name prefix.
26638libname_spec=$lt_libname_spec
26639
26640# List of archive names. First name is the real one, the rest are links.
26641# The last name is the one that the linker finds with -lNAME.
26642library_names_spec=$lt_library_names_spec
26643
26644# The coded name of the library, if different from the real name.
26645soname_spec=$lt_soname_spec
26646
26647# Commands used to build and install an old-style archive.
26648RANLIB=$lt_RANLIB
26649old_archive_cmds=$lt_old_archive_cmds_GCJ
26650old_postinstall_cmds=$lt_old_postinstall_cmds
26651old_postuninstall_cmds=$lt_old_postuninstall_cmds
26652
26653# Create an old-style archive from a shared archive.
26654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26655
26656# Create a temporary old-style archive to link instead of a shared archive.
26657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26658
26659# Commands used to build and install a shared archive.
26660archive_cmds=$lt_archive_cmds_GCJ
26661archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26662postinstall_cmds=$lt_postinstall_cmds
26663postuninstall_cmds=$lt_postuninstall_cmds
26664
26665# Commands used to build a loadable module (assumed same as above if empty)
26666module_cmds=$lt_module_cmds_GCJ
26667module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26668
26669# Commands to strip libraries.
26670old_striplib=$lt_old_striplib
26671striplib=$lt_striplib
26672
26673# Dependencies to place before the objects being linked to create a
26674# shared library.
26675predep_objects=$lt_predep_objects_GCJ
26676
26677# Dependencies to place after the objects being linked to create a
26678# shared library.
26679postdep_objects=$lt_postdep_objects_GCJ
26680
26681# Dependencies to place before the objects being linked to create a
26682# shared library.
26683predeps=$lt_predeps_GCJ
26684
26685# Dependencies to place after the objects being linked to create a
26686# shared library.
26687postdeps=$lt_postdeps_GCJ
26688
26689# The library search path used internally by the compiler when linking
26690# a shared library.
26691compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26692
26693# Method to check whether dependent libraries are shared objects.
26694deplibs_check_method=$lt_deplibs_check_method
26695
26696# Command to use when deplibs_check_method == file_magic.
26697file_magic_cmd=$lt_file_magic_cmd
26698
26699# Flag that allows shared libraries with undefined symbols to be built.
26700allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26701
26702# Flag that forces no undefined symbols.
26703no_undefined_flag=$lt_no_undefined_flag_GCJ
26704
26705# Commands used to finish a libtool library installation in a directory.
26706finish_cmds=$lt_finish_cmds
26707
26708# Same as above, but a single script fragment to be evaled but not shown.
26709finish_eval=$lt_finish_eval
26710
26711# Take the output of nm and produce a listing of raw symbols and C names.
26712global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26713
26714# Transform the output of nm in a proper C declaration
26715global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26716
26717# Transform the output of nm in a C name address pair
26718global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26719
26720# This is the shared library runtime path variable.
26721runpath_var=$runpath_var
26722
26723# This is the shared library path variable.
26724shlibpath_var=$shlibpath_var
26725
26726# Is shlibpath searched before the hard-coded library search path?
26727shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26728
26729# How to hardcode a shared library path into an executable.
26730hardcode_action=$hardcode_action_GCJ
26731
26732# Whether we should hardcode library paths into libraries.
26733hardcode_into_libs=$hardcode_into_libs
26734
26735# Flag to hardcode \$libdir into a binary during linking.
26736# This must work even if \$libdir does not exist.
26737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26738
26739# If ld is used when linking, flag to hardcode \$libdir into
26740# a binary during linking. This must work even if \$libdir does
26741# not exist.
26742hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26743
26744# Whether we need a single -rpath flag with a separated argument.
26745hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26746
26747# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26748# resulting binary.
26749hardcode_direct=$hardcode_direct_GCJ
26750
26751# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26752# resulting binary.
26753hardcode_minus_L=$hardcode_minus_L_GCJ
26754
26755# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26756# the resulting binary.
26757hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26758
26759# Set to yes if building a shared library automatically hardcodes DIR into the library
26760# and all subsequent libraries and executables linked against it.
26761hardcode_automatic=$hardcode_automatic_GCJ
26762
26763# Variables whose values should be saved in libtool wrapper scripts and
26764# restored at relink time.
26765variables_saved_for_relink="$variables_saved_for_relink"
26766
26767# Whether libtool must link a program against all its dependency libraries.
26768link_all_deplibs=$link_all_deplibs_GCJ
26769
26770# Compile-time system search path for libraries
26771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26772
26773# Run-time system search path for libraries
26774sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26775
26776# Fix the shell variable \$srcfile for the compiler.
26777fix_srcfile_path="$fix_srcfile_path_GCJ"
26778
26779# Set to yes if exported symbols are required.
26780always_export_symbols=$always_export_symbols_GCJ
26781
26782# The commands to list exported symbols.
26783export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26784
26785# The commands to extract the exported symbol list from a shared archive.
26786extract_expsyms_cmds=$lt_extract_expsyms_cmds
26787
26788# Symbols that should not be listed in the preloaded symbols.
26789exclude_expsyms=$lt_exclude_expsyms_GCJ
26790
26791# Symbols that must always be exported.
26792include_expsyms=$lt_include_expsyms_GCJ
26793
26794# ### END LIBTOOL TAG CONFIG: $tagname
26795
26796__EOF__
26797
26798
26799else
26800 # If there is no Makefile yet, we rely on a make rule to execute
26801 # `config.status --recheck' to rerun these tests and create the
26802 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26804 if test -f "$ltmain_in"; then
26805 test -f Makefile && make "$ltmain"
26806 fi
John Criswell47fdd832003-07-14 16:52:07 +000026807fi
26808
26809
26810ac_ext=c
26811ac_cpp='$CPP $CPPFLAGS'
26812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814ac_compiler_gnu=$ac_cv_c_compiler_gnu
26815
26816CC="$lt_save_CC"
26817
26818 else
26819 tagname=""
26820 fi
26821 ;;
26822
26823 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026824 ac_ext=c
26825ac_cpp='$CPP $CPPFLAGS'
26826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26828ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026829
26830
26831# Source file extension for RC test sources.
26832ac_ext=rc
26833
26834# Object file extension for compiled RC test sources.
26835objext=o
26836objext_RC=$objext
26837
26838# Code to be used in simple compile tests
26839lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26840
26841# Code to be used in simple link tests
26842lt_simple_link_test_code="$lt_simple_compile_test_code"
26843
26844# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26845
26846# If no C compiler was specified, use CC.
26847LTCC=${LTCC-"$CC"}
26848
Reid Spencera773bd52006-08-04 18:18:08 +000026849# If no C compiler flags were specified, use CFLAGS.
26850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26851
John Criswell47fdd832003-07-14 16:52:07 +000026852# Allow CC to be a program name with arguments.
26853compiler=$CC
26854
26855
Reid Spencera773bd52006-08-04 18:18:08 +000026856# save warnings/boilerplate of simple test code
26857ac_outfile=conftest.$ac_objext
26858printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860_lt_compiler_boilerplate=`cat conftest.err`
26861$rm conftest*
26862
26863ac_outfile=conftest.$ac_objext
26864printf "$lt_simple_link_test_code" >conftest.$ac_ext
26865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26866_lt_linker_boilerplate=`cat conftest.err`
26867$rm conftest*
26868
26869
John Criswell47fdd832003-07-14 16:52:07 +000026870# Allow CC to be a program name with arguments.
26871lt_save_CC="$CC"
26872CC=${RC-"windres"}
26873compiler=$CC
26874compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026875for cc_temp in $compiler""; do
26876 case $cc_temp in
26877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26879 \-*) ;;
26880 *) break;;
26881 esac
26882done
26883cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26884
John Criswell47fdd832003-07-14 16:52:07 +000026885lt_cv_prog_compiler_c_o_RC=yes
26886
26887# The else clause should only fire when bootstrapping the
26888# libtool distribution, otherwise you forgot to ship ltmain.sh
26889# with your package, and you will get complaints that there are
26890# no rules to generate ltmain.sh.
26891if test -f "$ltmain"; then
26892 # See if we are running on zsh, and set the options which allow our commands through
26893 # without removal of \ escapes.
26894 if test -n "${ZSH_VERSION+set}" ; then
26895 setopt NO_GLOB_SUBST
26896 fi
26897 # Now quote all the things that may contain metacharacters while being
26898 # careful not to overquote the AC_SUBSTed values. We take copies of the
26899 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026900 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 +000026901 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26904 deplibs_check_method reload_flag reload_cmds need_locks \
26905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26906 lt_cv_sys_global_symbol_to_c_name_address \
26907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26908 old_postinstall_cmds old_postuninstall_cmds \
26909 compiler_RC \
26910 CC_RC \
26911 LD_RC \
26912 lt_prog_compiler_wl_RC \
26913 lt_prog_compiler_pic_RC \
26914 lt_prog_compiler_static_RC \
26915 lt_prog_compiler_no_builtin_flag_RC \
26916 export_dynamic_flag_spec_RC \
26917 thread_safe_flag_spec_RC \
26918 whole_archive_flag_spec_RC \
26919 enable_shared_with_static_runtimes_RC \
26920 old_archive_cmds_RC \
26921 old_archive_from_new_cmds_RC \
26922 predep_objects_RC \
26923 postdep_objects_RC \
26924 predeps_RC \
26925 postdeps_RC \
26926 compiler_lib_search_path_RC \
26927 archive_cmds_RC \
26928 archive_expsym_cmds_RC \
26929 postinstall_cmds_RC \
26930 postuninstall_cmds_RC \
26931 old_archive_from_expsyms_cmds_RC \
26932 allow_undefined_flag_RC \
26933 no_undefined_flag_RC \
26934 export_symbols_cmds_RC \
26935 hardcode_libdir_flag_spec_RC \
26936 hardcode_libdir_flag_spec_ld_RC \
26937 hardcode_libdir_separator_RC \
26938 hardcode_automatic_RC \
26939 module_cmds_RC \
26940 module_expsym_cmds_RC \
26941 lt_cv_prog_compiler_c_o_RC \
26942 exclude_expsyms_RC \
26943 include_expsyms_RC; do
26944
26945 case $var in
26946 old_archive_cmds_RC | \
26947 old_archive_from_new_cmds_RC | \
26948 archive_cmds_RC | \
26949 archive_expsym_cmds_RC | \
26950 module_cmds_RC | \
26951 module_expsym_cmds_RC | \
26952 old_archive_from_expsyms_cmds_RC | \
26953 export_symbols_cmds_RC | \
26954 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26955 postinstall_cmds | postuninstall_cmds | \
26956 old_postinstall_cmds | old_postuninstall_cmds | \
26957 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26958 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026959 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 +000026960 ;;
26961 *)
26962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26963 ;;
26964 esac
26965 done
26966
26967 case $lt_echo in
26968 *'\$0 --fallback-echo"')
26969 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26970 ;;
26971 esac
26972
26973cfgfile="$ofile"
26974
26975 cat <<__EOF__ >> "$cfgfile"
26976# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26977
26978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26979
26980# Shell to use when invoking shell scripts.
26981SHELL=$lt_SHELL
26982
26983# Whether or not to build shared libraries.
26984build_libtool_libs=$enable_shared
26985
26986# Whether or not to build static libraries.
26987build_old_libs=$enable_static
26988
26989# Whether or not to add -lc for building shared libraries.
26990build_libtool_need_lc=$archive_cmds_need_lc_RC
26991
26992# Whether or not to disallow shared libs when runtime libs are static
26993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26994
26995# Whether or not to optimize for fast installation.
26996fast_install=$enable_fast_install
26997
26998# The host system.
26999host_alias=$host_alias
27000host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000027001host_os=$host_os
27002
27003# The build system.
27004build_alias=$build_alias
27005build=$build
27006build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000027007
27008# An echo program that does not interpret backslashes.
27009echo=$lt_echo
27010
27011# The archiver.
27012AR=$lt_AR
27013AR_FLAGS=$lt_AR_FLAGS
27014
27015# A C compiler.
27016LTCC=$lt_LTCC
27017
Reid Spencera773bd52006-08-04 18:18:08 +000027018# LTCC compiler flags.
27019LTCFLAGS=$lt_LTCFLAGS
27020
John Criswell47fdd832003-07-14 16:52:07 +000027021# A language-specific compiler.
27022CC=$lt_compiler_RC
27023
27024# Is the compiler the GNU C compiler?
27025with_gcc=$GCC_RC
27026
27027# An ERE matcher.
27028EGREP=$lt_EGREP
27029
27030# The linker used to build libraries.
27031LD=$lt_LD_RC
27032
27033# Whether we need hard or soft links.
27034LN_S=$lt_LN_S
27035
27036# A BSD-compatible nm program.
27037NM=$lt_NM
27038
27039# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000027040STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000027041
27042# Used to examine libraries when file_magic_cmd begins "file"
27043MAGIC_CMD=$MAGIC_CMD
27044
27045# Used on cygwin: DLL creation program.
27046DLLTOOL="$DLLTOOL"
27047
27048# Used on cygwin: object dumper.
27049OBJDUMP="$OBJDUMP"
27050
27051# Used on cygwin: assembler.
27052AS="$AS"
27053
27054# The name of the directory that contains temporary libtool files.
27055objdir=$objdir
27056
27057# How to create reloadable object files.
27058reload_flag=$lt_reload_flag
27059reload_cmds=$lt_reload_cmds
27060
27061# How to pass a linker flag through the compiler.
27062wl=$lt_lt_prog_compiler_wl_RC
27063
27064# Object file suffix (normally "o").
27065objext="$ac_objext"
27066
27067# Old archive suffix (normally "a").
27068libext="$libext"
27069
27070# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000027071shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000027072
27073# Executable file suffix (normally "").
27074exeext="$exeext"
27075
27076# Additional compiler flags for building library objects.
27077pic_flag=$lt_lt_prog_compiler_pic_RC
27078pic_mode=$pic_mode
27079
27080# What is the maximum length of a command?
27081max_cmd_len=$lt_cv_sys_max_cmd_len
27082
27083# Does compiler simultaneously support -c and -o options?
27084compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27085
Reid Spencera773bd52006-08-04 18:18:08 +000027086# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000027087need_locks=$lt_need_locks
27088
27089# Do we need the lib prefix for modules?
27090need_lib_prefix=$need_lib_prefix
27091
27092# Do we need a version for libraries?
27093need_version=$need_version
27094
27095# Whether dlopen is supported.
27096dlopen_support=$enable_dlopen
27097
27098# Whether dlopen of programs is supported.
27099dlopen_self=$enable_dlopen_self
27100
27101# Whether dlopen of statically linked programs is supported.
27102dlopen_self_static=$enable_dlopen_self_static
27103
27104# Compiler flag to prevent dynamic linking.
27105link_static_flag=$lt_lt_prog_compiler_static_RC
27106
27107# Compiler flag to turn off builtin functions.
27108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27109
27110# Compiler flag to allow reflexive dlopens.
27111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27112
27113# Compiler flag to generate shared objects directly from archives.
27114whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27115
27116# Compiler flag to generate thread-safe objects.
27117thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27118
27119# Library versioning type.
27120version_type=$version_type
27121
27122# Format of library name prefix.
27123libname_spec=$lt_libname_spec
27124
27125# List of archive names. First name is the real one, the rest are links.
27126# The last name is the one that the linker finds with -lNAME.
27127library_names_spec=$lt_library_names_spec
27128
27129# The coded name of the library, if different from the real name.
27130soname_spec=$lt_soname_spec
27131
27132# Commands used to build and install an old-style archive.
27133RANLIB=$lt_RANLIB
27134old_archive_cmds=$lt_old_archive_cmds_RC
27135old_postinstall_cmds=$lt_old_postinstall_cmds
27136old_postuninstall_cmds=$lt_old_postuninstall_cmds
27137
27138# Create an old-style archive from a shared archive.
27139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27140
27141# Create a temporary old-style archive to link instead of a shared archive.
27142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27143
27144# Commands used to build and install a shared archive.
27145archive_cmds=$lt_archive_cmds_RC
27146archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27147postinstall_cmds=$lt_postinstall_cmds
27148postuninstall_cmds=$lt_postuninstall_cmds
27149
27150# Commands used to build a loadable module (assumed same as above if empty)
27151module_cmds=$lt_module_cmds_RC
27152module_expsym_cmds=$lt_module_expsym_cmds_RC
27153
27154# Commands to strip libraries.
27155old_striplib=$lt_old_striplib
27156striplib=$lt_striplib
27157
27158# Dependencies to place before the objects being linked to create a
27159# shared library.
27160predep_objects=$lt_predep_objects_RC
27161
27162# Dependencies to place after the objects being linked to create a
27163# shared library.
27164postdep_objects=$lt_postdep_objects_RC
27165
27166# Dependencies to place before the objects being linked to create a
27167# shared library.
27168predeps=$lt_predeps_RC
27169
27170# Dependencies to place after the objects being linked to create a
27171# shared library.
27172postdeps=$lt_postdeps_RC
27173
27174# The library search path used internally by the compiler when linking
27175# a shared library.
27176compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27177
27178# Method to check whether dependent libraries are shared objects.
27179deplibs_check_method=$lt_deplibs_check_method
27180
27181# Command to use when deplibs_check_method == file_magic.
27182file_magic_cmd=$lt_file_magic_cmd
27183
27184# Flag that allows shared libraries with undefined symbols to be built.
27185allow_undefined_flag=$lt_allow_undefined_flag_RC
27186
27187# Flag that forces no undefined symbols.
27188no_undefined_flag=$lt_no_undefined_flag_RC
27189
27190# Commands used to finish a libtool library installation in a directory.
27191finish_cmds=$lt_finish_cmds
27192
27193# Same as above, but a single script fragment to be evaled but not shown.
27194finish_eval=$lt_finish_eval
27195
27196# Take the output of nm and produce a listing of raw symbols and C names.
27197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27198
27199# Transform the output of nm in a proper C declaration
27200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27201
27202# Transform the output of nm in a C name address pair
27203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27204
27205# This is the shared library runtime path variable.
27206runpath_var=$runpath_var
27207
27208# This is the shared library path variable.
27209shlibpath_var=$shlibpath_var
27210
27211# Is shlibpath searched before the hard-coded library search path?
27212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27213
27214# How to hardcode a shared library path into an executable.
27215hardcode_action=$hardcode_action_RC
27216
27217# Whether we should hardcode library paths into libraries.
27218hardcode_into_libs=$hardcode_into_libs
27219
27220# Flag to hardcode \$libdir into a binary during linking.
27221# This must work even if \$libdir does not exist.
27222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27223
27224# If ld is used when linking, flag to hardcode \$libdir into
27225# a binary during linking. This must work even if \$libdir does
27226# not exist.
27227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27228
27229# Whether we need a single -rpath flag with a separated argument.
27230hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27231
27232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27233# resulting binary.
27234hardcode_direct=$hardcode_direct_RC
27235
27236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27237# resulting binary.
27238hardcode_minus_L=$hardcode_minus_L_RC
27239
27240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27241# the resulting binary.
27242hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27243
27244# Set to yes if building a shared library automatically hardcodes DIR into the library
27245# and all subsequent libraries and executables linked against it.
27246hardcode_automatic=$hardcode_automatic_RC
27247
27248# Variables whose values should be saved in libtool wrapper scripts and
27249# restored at relink time.
27250variables_saved_for_relink="$variables_saved_for_relink"
27251
27252# Whether libtool must link a program against all its dependency libraries.
27253link_all_deplibs=$link_all_deplibs_RC
27254
27255# Compile-time system search path for libraries
27256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27257
27258# Run-time system search path for libraries
27259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27260
27261# Fix the shell variable \$srcfile for the compiler.
27262fix_srcfile_path="$fix_srcfile_path_RC"
27263
27264# Set to yes if exported symbols are required.
27265always_export_symbols=$always_export_symbols_RC
27266
27267# The commands to list exported symbols.
27268export_symbols_cmds=$lt_export_symbols_cmds_RC
27269
27270# The commands to extract the exported symbol list from a shared archive.
27271extract_expsyms_cmds=$lt_extract_expsyms_cmds
27272
27273# Symbols that should not be listed in the preloaded symbols.
27274exclude_expsyms=$lt_exclude_expsyms_RC
27275
27276# Symbols that must always be exported.
27277include_expsyms=$lt_include_expsyms_RC
27278
27279# ### END LIBTOOL TAG CONFIG: $tagname
27280
27281__EOF__
27282
27283
27284else
27285 # If there is no Makefile yet, we rely on a make rule to execute
27286 # `config.status --recheck' to rerun these tests and create the
27287 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27289 if test -f "$ltmain_in"; then
27290 test -f Makefile && make "$ltmain"
27291 fi
John Criswell47fdd832003-07-14 16:52:07 +000027292fi
27293
27294
27295ac_ext=c
27296ac_cpp='$CPP $CPPFLAGS'
27297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299ac_compiler_gnu=$ac_cv_c_compiler_gnu
27300
27301CC="$lt_save_CC"
27302
27303 ;;
27304
27305 *)
27306 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27307echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27308 { (exit 1); exit 1; }; }
27309 ;;
27310 esac
27311
27312 # Append the new tag name to the list of available tags.
27313 if test -n "$tagname" ; then
27314 available_tags="$available_tags $tagname"
27315 fi
27316 fi
27317 done
27318 IFS="$lt_save_ifs"
27319
27320 # Now substitute the updated list of available tags.
27321 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27322 mv "${ofile}T" "$ofile"
27323 chmod +x "$ofile"
27324 else
27325 rm -f "${ofile}T"
27326 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27327echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27328 { (exit 1); exit 1; }; }
27329 fi
27330fi
John Criswell7a73b802003-06-30 21:59:07 +000027331
27332
27333
27334# This can be used to rebuild libtool when needed
27335LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27336
27337# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027338LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027339
27340# Prevent multiple expansion
27341
27342
27343
John Criswell47fdd832003-07-14 16:52:07 +000027344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027361
Reid Spencer582a23c2004-12-29 07:07:57 +000027362if test "$lt_cv_dlopen_self" = "yes" ; then
27363
27364cat >>confdefs.h <<\_ACEOF
27365#define CAN_DLOPEN_SELF 1
27366_ACEOF
27367
27368fi
27369
Douglas Gregor01746742009-05-11 18:05:52 +000027370
Reid Spencer7931a782004-12-27 06:15:02 +000027371if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027372 LLVMGCC="llvm-gcc${EXEEXT}"
27373 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027374 LLVMGCCCOMMAND="$LLVMGCC"
27375 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027376 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27377
27378 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27379
Reid Spencerc84492c2005-06-02 22:34:49 +000027380 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27381set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027384if test "${ac_cv_path_LLVMGCC+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27386else
27387 case $LLVMGCC in
27388 [\\/]* | ?:[\\/]*)
27389 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27390 ;;
27391 *)
27392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393for as_dir in $PATH
27394do
27395 IFS=$as_save_IFS
27396 test -z "$as_dir" && as_dir=.
27397 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027398 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 +000027399 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27401 break 2
27402 fi
27403done
27404done
Reid Spencera773bd52006-08-04 18:18:08 +000027405IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027406
Reid Spencer59473af2004-12-25 07:31:29 +000027407 ;;
27408esac
27409fi
27410LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027411if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027412 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27413echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027414else
Reid Spencera773bd52006-08-04 18:18:08 +000027415 { echo "$as_me:$LINENO: result: no" >&5
27416echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027417fi
27418
Reid Spencera773bd52006-08-04 18:18:08 +000027419
Reid Spencerc84492c2005-06-02 22:34:49 +000027420 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27421set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027424if test "${ac_cv_path_LLVMGXX+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 case $LLVMGXX in
27428 [\\/]* | ?:[\\/]*)
27429 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27430 ;;
27431 *)
27432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433for as_dir in $PATH
27434do
27435 IFS=$as_save_IFS
27436 test -z "$as_dir" && as_dir=.
27437 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027438 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 +000027439 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27441 break 2
27442 fi
27443done
27444done
Reid Spencera773bd52006-08-04 18:18:08 +000027445IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027446
Reid Spencer59473af2004-12-25 07:31:29 +000027447 ;;
27448esac
27449fi
27450LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027451if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027452 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27453echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027454else
Reid Spencera773bd52006-08-04 18:18:08 +000027455 { echo "$as_me:$LINENO: result: no" >&5
27456echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027457fi
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459
Reid Spencer59473af2004-12-25 07:31:29 +000027460else
Devang Patel5d28b882007-12-04 22:54:47 +000027461 if test -z "$LLVMGCC"; then
27462 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027463 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027464 fi
27465 if test -z "$LLVMGXX"; then
27466 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027467 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027468 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027469
Reid Spencer59473af2004-12-25 07:31:29 +000027470 LLVMGCC=$LLVMGCC
27471
27472 LLVMGXX=$LLVMGXX
27473
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027474 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27475
27476 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27477
Reid Spencer59473af2004-12-25 07:31:29 +000027478fi
27479
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027480
Reid Spencera773bd52006-08-04 18:18:08 +000027481{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27482echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027483
Reid Spencer86901802004-12-08 23:07:27 +000027484ICC=no
27485IXX=no
27486case $CC in
27487 icc*|icpc*)
27488 ICC=yes
27489 IXX=yes
27490 ;;
27491 *)
27492 ;;
27493esac
27494
Duraid Madina937c60a2006-02-15 07:57:42 +000027495if test "$GCC" != "yes" && test "$ICC" != "yes"
27496then
27497 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27498echo "$as_me: error: gcc|icc required but not found" >&2;}
27499 { (exit 1); exit 1; }; }
27500fi
27501
27502if test "$GXX" != "yes" && test "$IXX" != "yes"
27503then
27504 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27505echo "$as_me: error: g++|icc required but not found" >&2;}
27506 { (exit 1); exit 1; }; }
27507fi
27508
Reid Spencer86901802004-12-08 23:07:27 +000027509if test "$GCC" = "yes"
27510then
Chris Lattner399c7c72008-02-05 19:43:53 +000027511 cat >conftest.$ac_ext <<_ACEOF
27512#if !defined(__GNUC__) || __GNUC__ < 3
27513#error Unsupported GCC version
27514#endif
27515
27516_ACEOF
27517rm -f conftest.$ac_objext
27518if { (ac_try="$ac_compile"
27519case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27522esac
27523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_compile") 2>conftest.er1
27525 ac_status=$?
27526 grep -v '^ *+' conftest.er1 >conftest.err
27527 rm -f conftest.er1
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027530 (exit $ac_status); } &&
27531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532 { (case "(($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_try") 2>&5
27538 ac_status=$?
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; } &&
27541 { ac_try='test -s conftest.$ac_objext'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027551 :
27552else
27553 echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
27556 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027557echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27558 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027559fi
27560
27561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027562fi
27563
27564if test -z "$llvm_cv_gnu_make_command"
27565then
27566 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27567echo "$as_me: error: GNU Make required but not found" >&2;}
27568 { (exit 1); exit 1; }; }
27569fi
27570
Reid Spencera773bd52006-08-04 18:18:08 +000027571{ echo "$as_me:$LINENO: result: ok" >&5
27572echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027573
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000027574{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27575echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27576NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27577
27578NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27579
27580{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27581echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27582
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027583
27584
Reid Spencera773bd52006-08-04 18:18:08 +000027585{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27586echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027587if test "${ac_cv_lib_m_sin+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27589else
27590 ac_check_lib_save_LIBS=$LIBS
27591LIBS="-lm $LIBS"
27592cat >conftest.$ac_ext <<_ACEOF
27593/* confdefs.h. */
27594_ACEOF
27595cat confdefs.h >>conftest.$ac_ext
27596cat >>conftest.$ac_ext <<_ACEOF
27597/* end confdefs.h. */
27598
Reid Spencera773bd52006-08-04 18:18:08 +000027599/* Override any GCC internal prototype to avoid an error.
27600 Use char because int might match the return type of a GCC
27601 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027602#ifdef __cplusplus
27603extern "C"
27604#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027605char sin ();
27606int
27607main ()
27608{
Reid Spencera773bd52006-08-04 18:18:08 +000027609return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027610 ;
27611 return 0;
27612}
27613_ACEOF
27614rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027615if { (ac_try="$ac_link"
27616case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27619esac
27620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027622 ac_status=$?
27623 grep -v '^ *+' conftest.er1 >conftest.err
27624 rm -f conftest.er1
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027627 (exit $ac_status); } &&
27628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27629 { (case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27632esac
27633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_try") 2>&5
27635 ac_status=$?
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; } &&
27638 { ac_try='test -s conftest$ac_exeext'
27639 { (case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27642esac
27643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644 (eval "$ac_try") 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027648 ac_cv_lib_m_sin=yes
27649else
27650 echo "$as_me: failed program was:" >&5
27651sed 's/^/| /' conftest.$ac_ext >&5
27652
Reid Spencera773bd52006-08-04 18:18:08 +000027653 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027654fi
Reid Spencera773bd52006-08-04 18:18:08 +000027655
Bill Wendlingebcceee2009-04-18 11:20:33 +000027656rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027657 conftest$ac_exeext conftest.$ac_ext
27658LIBS=$ac_check_lib_save_LIBS
27659fi
Reid Spencera773bd52006-08-04 18:18:08 +000027660{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27661echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027662if test $ac_cv_lib_m_sin = yes; then
27663 cat >>confdefs.h <<_ACEOF
27664#define HAVE_LIBM 1
27665_ACEOF
27666
27667 LIBS="-lm $LIBS"
27668
27669fi
27670
Jeff Cohen28783c32007-01-12 18:22:38 +000027671if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027672
Reid Spencera773bd52006-08-04 18:18:08 +000027673{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27674echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027675if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027676 echo $ECHO_N "(cached) $ECHO_C" >&6
27677else
27678 ac_check_lib_save_LIBS=$LIBS
27679LIBS="-limagehlp $LIBS"
27680cat >conftest.$ac_ext <<_ACEOF
27681/* confdefs.h. */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>conftest.$ac_ext <<_ACEOF
27685/* end confdefs.h. */
27686
Reid Spencer48fdf912006-06-01 19:03:21 +000027687
Reid Spencer484fc8e2006-06-01 16:55:59 +000027688int
27689main ()
27690{
Reid Spencera773bd52006-08-04 18:18:08 +000027691return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027692 ;
27693 return 0;
27694}
27695_ACEOF
27696rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027697if { (ac_try="$ac_link"
27698case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027704 ac_status=$?
27705 grep -v '^ *+' conftest.er1 >conftest.err
27706 rm -f conftest.er1
27707 cat conftest.err >&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027709 (exit $ac_status); } &&
27710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27711 { (case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27714esac
27715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_try") 2>&5
27717 ac_status=$?
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; } &&
27720 { ac_try='test -s conftest$ac_exeext'
27721 { (case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27724esac
27725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_try") 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027730 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027731else
27732 echo "$as_me: failed program was:" >&5
27733sed 's/^/| /' conftest.$ac_ext >&5
27734
Reid Spencera773bd52006-08-04 18:18:08 +000027735 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027736fi
Reid Spencera773bd52006-08-04 18:18:08 +000027737
Bill Wendlingebcceee2009-04-18 11:20:33 +000027738rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027739 conftest$ac_exeext conftest.$ac_ext
27740LIBS=$ac_check_lib_save_LIBS
27741fi
Reid Spencera773bd52006-08-04 18:18:08 +000027742{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27743echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027744if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027745 cat >>confdefs.h <<_ACEOF
27746#define HAVE_LIBIMAGEHLP 1
27747_ACEOF
27748
27749 LIBS="-limagehlp $LIBS"
27750
27751fi
27752
27753
Reid Spencera773bd52006-08-04 18:18:08 +000027754{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27755echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027756if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759 ac_check_lib_save_LIBS=$LIBS
27760LIBS="-lpsapi $LIBS"
27761cat >conftest.$ac_ext <<_ACEOF
27762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
27767
Reid Spencer48fdf912006-06-01 19:03:21 +000027768
Reid Spencer484fc8e2006-06-01 16:55:59 +000027769int
27770main ()
27771{
Reid Spencera773bd52006-08-04 18:18:08 +000027772return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027773 ;
27774 return 0;
27775}
27776_ACEOF
27777rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027778if { (ac_try="$ac_link"
27779case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027785 ac_status=$?
27786 grep -v '^ *+' conftest.er1 >conftest.err
27787 rm -f conftest.er1
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27795esac
27796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027811 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027812else
27813 echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
Reid Spencera773bd52006-08-04 18:18:08 +000027816 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027817fi
Reid Spencera773bd52006-08-04 18:18:08 +000027818
Bill Wendlingebcceee2009-04-18 11:20:33 +000027819rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027820 conftest$ac_exeext conftest.$ac_ext
27821LIBS=$ac_check_lib_save_LIBS
27822fi
Reid Spencera773bd52006-08-04 18:18:08 +000027823{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27824echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027825if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027826 cat >>confdefs.h <<_ACEOF
27827#define HAVE_LIBPSAPI 1
27828_ACEOF
27829
27830 LIBS="-lpsapi $LIBS"
27831
27832fi
27833
27834fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027835
Reid Spencera773bd52006-08-04 18:18:08 +000027836{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27837echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027838if test "${ac_cv_search_dlopen+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840else
27841 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027842cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027848
Reid Spencera773bd52006-08-04 18:18:08 +000027849/* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027852#ifdef __cplusplus
27853extern "C"
27854#endif
John Criswell7a73b802003-06-30 21:59:07 +000027855char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027856int
27857main ()
27858{
Reid Spencera773bd52006-08-04 18:18:08 +000027859return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027860 ;
27861 return 0;
27862}
27863_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027864for ac_lib in '' dl; do
27865 if test -z "$ac_lib"; then
27866 ac_res="none required"
27867 else
27868 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027870 fi
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872if { (ac_try="$ac_link"
27873case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027884 (exit $ac_status); } &&
27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27889esac
27890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest$ac_exeext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027905 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027906else
27907 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027908sed 's/^/| /' conftest.$ac_ext >&5
27909
Reid Spencera773bd52006-08-04 18:18:08 +000027910
John Criswell7a73b802003-06-30 21:59:07 +000027911fi
Reid Spencera773bd52006-08-04 18:18:08 +000027912
Bill Wendlingebcceee2009-04-18 11:20:33 +000027913rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027914 conftest$ac_exeext
27915 if test "${ac_cv_search_dlopen+set}" = set; then
27916 break
John Criswell7a73b802003-06-30 21:59:07 +000027917fi
Reid Spencera773bd52006-08-04 18:18:08 +000027918done
27919if test "${ac_cv_search_dlopen+set}" = set; then
27920 :
27921else
27922 ac_cv_search_dlopen=no
27923fi
27924rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027925LIBS=$ac_func_search_save_LIBS
27926fi
Reid Spencera773bd52006-08-04 18:18:08 +000027927{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27928echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27929ac_res=$ac_cv_search_dlopen
27930if test "$ac_res" != no; then
27931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027932
27933cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027934#define HAVE_DLOPEN 1
27935_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027936
27937else
Brian Gaekec45be042003-10-07 06:01:34 +000027938 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27939echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027940fi
27941
27942
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027943if test "$llvm_cv_enable_libffi" = "yes" ; then
27944 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027945echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27946if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027949 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027950cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956
27957/* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27960#ifdef __cplusplus
27961extern "C"
27962#endif
27963char ffi_call ();
27964int
27965main ()
27966{
27967return ffi_call ();
27968 ;
27969 return 0;
27970}
27971_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027972for ac_lib in '' ffi; do
27973 if test -z "$ac_lib"; then
27974 ac_res="none required"
27975 else
27976 ac_res=-l$ac_lib
27977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27978 fi
27979 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027980if { (ac_try="$ac_link"
27981case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_link") 2>conftest.er1
27987 ac_status=$?
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027992 (exit $ac_status); } &&
27993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28007esac
28008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000028013 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028014else
28015 echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
Nick Lewycky267fddb2009-04-13 04:26:27 +000028018
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028019fi
28020
Bill Wendlingebcceee2009-04-18 11:20:33 +000028021rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000028022 conftest$ac_exeext
28023 if test "${ac_cv_search_ffi_call+set}" = set; then
28024 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028025fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000028026done
28027if test "${ac_cv_search_ffi_call+set}" = set; then
28028 :
28029else
28030 ac_cv_search_ffi_call=no
28031fi
28032rm conftest.$ac_ext
28033LIBS=$ac_func_search_save_LIBS
28034fi
28035{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28036echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28037ac_res=$ac_cv_search_ffi_call
28038if test "$ac_res" != no; then
28039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28040
28041cat >>confdefs.h <<\_ACEOF
28042#define HAVE_FFI_CALL 1
28043_ACEOF
28044
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028045else
28046 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28047echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28048fi
28049
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000028050fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000028051
Reid Spencera773bd52006-08-04 18:18:08 +000028052{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28053echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028054if test "${ac_cv_search_mallinfo+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28056else
28057 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000028058cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028059/* confdefs.h. */
28060_ACEOF
28061cat confdefs.h >>conftest.$ac_ext
28062cat >>conftest.$ac_ext <<_ACEOF
28063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028064
Reid Spencera773bd52006-08-04 18:18:08 +000028065/* Override any GCC internal prototype to avoid an error.
28066 Use char because int might match the return type of a GCC
28067 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000028068#ifdef __cplusplus
28069extern "C"
28070#endif
John Criswell7a73b802003-06-30 21:59:07 +000028071char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028072int
28073main ()
28074{
Reid Spencera773bd52006-08-04 18:18:08 +000028075return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028076 ;
28077 return 0;
28078}
28079_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028080for ac_lib in '' malloc; do
28081 if test -z "$ac_lib"; then
28082 ac_res="none required"
28083 else
28084 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000028085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028086 fi
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088if { (ac_try="$ac_link"
28089case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28092esac
28093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028100 (exit $ac_status); } &&
28101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28105esac
28106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28108 ac_status=$?
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; } &&
28111 { ac_try='test -s conftest$ac_exeext'
28112 { (case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28115esac
28116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_try") 2>&5
28118 ac_status=$?
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028121 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028122else
28123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028124sed 's/^/| /' conftest.$ac_ext >&5
28125
Reid Spencera773bd52006-08-04 18:18:08 +000028126
John Criswell7a73b802003-06-30 21:59:07 +000028127fi
Reid Spencera773bd52006-08-04 18:18:08 +000028128
Bill Wendlingebcceee2009-04-18 11:20:33 +000028129rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028130 conftest$ac_exeext
28131 if test "${ac_cv_search_mallinfo+set}" = set; then
28132 break
John Criswell7a73b802003-06-30 21:59:07 +000028133fi
Reid Spencera773bd52006-08-04 18:18:08 +000028134done
28135if test "${ac_cv_search_mallinfo+set}" = set; then
28136 :
28137else
28138 ac_cv_search_mallinfo=no
28139fi
28140rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028141LIBS=$ac_func_search_save_LIBS
28142fi
Reid Spencera773bd52006-08-04 18:18:08 +000028143{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28144echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28145ac_res=$ac_cv_search_mallinfo
28146if test "$ac_res" != no; then
28147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028148
28149cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028150#define HAVE_MALLINFO 1
28151_ACEOF
28152
28153fi
28154
28155
Reid Spencer0a262ba2005-08-24 10:07:20 +000028156if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028157
28158{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28159echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28160if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028163 ac_check_lib_save_LIBS=$LIBS
28164LIBS="-lpthread $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028165cat >conftest.$ac_ext <<_ACEOF
28166/* confdefs.h. */
28167_ACEOF
28168cat confdefs.h >>conftest.$ac_ext
28169cat >>conftest.$ac_ext <<_ACEOF
28170/* end confdefs.h. */
28171
Reid Spencera773bd52006-08-04 18:18:08 +000028172/* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028175#ifdef __cplusplus
28176extern "C"
28177#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028178char pthread_mutex_init ();
28179int
28180main ()
28181{
Reid Spencera773bd52006-08-04 18:18:08 +000028182return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028183 ;
28184 return 0;
28185}
28186_ACEOF
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028188if { (ac_try="$ac_link"
28189case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28192esac
28193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028195 ac_status=$?
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028200 (exit $ac_status); } &&
28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28202 { (case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28205esac
28206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_try") 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
28212 { (case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215esac
28216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028221 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000028222else
28223 echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028226 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028227fi
Reid Spencera773bd52006-08-04 18:18:08 +000028228
Bill Wendlingebcceee2009-04-18 11:20:33 +000028229rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028230 conftest$ac_exeext conftest.$ac_ext
28231LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028232fi
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028233{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28234echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28235if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28236 cat >>confdefs.h <<_ACEOF
28237#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028238_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028239
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028240 LIBS="-lpthread $LIBS"
28241
Reid Spencer22177fe2005-07-12 15:24:20 +000028242fi
28243
Reid Spencera773bd52006-08-04 18:18:08 +000028244 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28245echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028250cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028251/* confdefs.h. */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h. */
28256
Reid Spencera773bd52006-08-04 18:18:08 +000028257/* Override any GCC internal prototype to avoid an error.
28258 Use char because int might match the return type of a GCC
28259 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028260#ifdef __cplusplus
28261extern "C"
28262#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028263char pthread_mutex_lock ();
28264int
28265main ()
28266{
Reid Spencera773bd52006-08-04 18:18:08 +000028267return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028268 ;
28269 return 0;
28270}
28271_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028272for ac_lib in '' pthread; do
28273 if test -z "$ac_lib"; then
28274 ac_res="none required"
28275 else
28276 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028278 fi
28279 rm -f conftest.$ac_objext conftest$ac_exeext
28280if { (ac_try="$ac_link"
28281case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284esac
28285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028288 grep -v '^ *+' conftest.er1 >conftest.err
28289 rm -f conftest.er1
28290 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028292 (exit $ac_status); } &&
28293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28297esac
28298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest$ac_exeext'
28304 { (case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28307esac
28308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_try") 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028313 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028314else
28315 echo "$as_me: failed program was:" >&5
28316sed 's/^/| /' conftest.$ac_ext >&5
28317
Reid Spencera773bd52006-08-04 18:18:08 +000028318
Brian Gaeke5f268f72003-12-05 19:29:01 +000028319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320
Bill Wendlingebcceee2009-04-18 11:20:33 +000028321rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028322 conftest$ac_exeext
28323 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28324 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028325fi
Reid Spencera773bd52006-08-04 18:18:08 +000028326done
28327if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28328 :
28329else
28330 ac_cv_search_pthread_mutex_lock=no
28331fi
28332rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028333LIBS=$ac_func_search_save_LIBS
28334fi
Reid Spencera773bd52006-08-04 18:18:08 +000028335{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28336echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28337ac_res=$ac_cv_search_pthread_mutex_lock
28338if test "$ac_res" != no; then
28339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028340
John Criswell40468462004-09-24 21:19:06 +000028341cat >>confdefs.h <<\_ACEOF
28342#define HAVE_PTHREAD_MUTEX_LOCK 1
28343_ACEOF
28344
28345fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028346
Owen Andersonde8aed22009-06-16 18:20:20 +000028347 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28348echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28349if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28350 echo $ECHO_N "(cached) $ECHO_C" >&6
28351else
28352 ac_func_search_save_LIBS=$LIBS
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359
28360/* Override any GCC internal prototype to avoid an error.
28361 Use char because int might match the return type of a GCC
28362 builtin and then its argument prototype would still apply. */
28363#ifdef __cplusplus
28364extern "C"
28365#endif
28366char pthread_rwlock_init ();
28367int
28368main ()
28369{
28370return pthread_rwlock_init ();
28371 ;
28372 return 0;
28373}
28374_ACEOF
28375for ac_lib in '' pthread; do
28376 if test -z "$ac_lib"; then
28377 ac_res="none required"
28378 else
28379 ac_res=-l$ac_lib
28380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28381 fi
28382 rm -f conftest.$ac_objext conftest$ac_exeext
28383if { (ac_try="$ac_link"
28384case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28387esac
28388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_link") 2>conftest.er1
28390 ac_status=$?
28391 grep -v '^ *+' conftest.er1 >conftest.err
28392 rm -f conftest.er1
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28397 { (case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28400esac
28401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_try") 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest$ac_exeext'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
28416 ac_cv_search_pthread_rwlock_init=$ac_res
28417else
28418 echo "$as_me: failed program was:" >&5
28419sed 's/^/| /' conftest.$ac_ext >&5
28420
28421
28422fi
28423
28424rm -f core conftest.err conftest.$ac_objext \
28425 conftest$ac_exeext
28426 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28427 break
28428fi
28429done
28430if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28431 :
28432else
28433 ac_cv_search_pthread_rwlock_init=no
28434fi
28435rm conftest.$ac_ext
28436LIBS=$ac_func_search_save_LIBS
28437fi
28438{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28439echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28440ac_res=$ac_cv_search_pthread_rwlock_init
28441if test "$ac_res" != no; then
28442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28443
28444cat >>confdefs.h <<\_ACEOF
28445#define HAVE_PTHREAD_RWLOCK_INIT 1
28446_ACEOF
28447
28448fi
28449
Owen Anderson27fcfe12009-06-25 23:10:26 +000028450 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28451echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28452if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455 ac_func_search_save_LIBS=$LIBS
28456cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462
28463/* Override any GCC internal prototype to avoid an error.
28464 Use char because int might match the return type of a GCC
28465 builtin and then its argument prototype would still apply. */
28466#ifdef __cplusplus
28467extern "C"
28468#endif
28469char pthread_getspecific ();
28470int
28471main ()
28472{
28473return pthread_getspecific ();
28474 ;
28475 return 0;
28476}
28477_ACEOF
28478for ac_lib in '' pthread; do
28479 if test -z "$ac_lib"; then
28480 ac_res="none required"
28481 else
28482 ac_res=-l$ac_lib
28483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28484 fi
28485 rm -f conftest.$ac_objext conftest$ac_exeext
28486if { (ac_try="$ac_link"
28487case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28490esac
28491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_link") 2>conftest.er1
28493 ac_status=$?
28494 grep -v '^ *+' conftest.er1 >conftest.err
28495 rm -f conftest.er1
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28503esac
28504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28513esac
28514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_search_pthread_getspecific=$ac_res
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524
28525fi
28526
28527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext
28529 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28530 break
28531fi
28532done
28533if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28534 :
28535else
28536 ac_cv_search_pthread_getspecific=no
28537fi
28538rm conftest.$ac_ext
28539LIBS=$ac_func_search_save_LIBS
28540fi
28541{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28542echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28543ac_res=$ac_cv_search_pthread_getspecific
28544if test "$ac_res" != no; then
28545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28546
28547cat >>confdefs.h <<\_ACEOF
28548#define HAVE_PTHREAD_GETSPECIFIC 1
28549_ACEOF
28550
28551fi
28552
Reid Spencer0a262ba2005-08-24 10:07:20 +000028553fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028554
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028555
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028556# Check whether --with-udis86 was given.
28557if test "${with_udis86+set}" = set; then
28558 withval=$with_udis86;
28559 USE_UDIS86=1
28560
28561 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028562 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028563 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28564 esac
28565
28566{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28567echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28568if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571 ac_check_lib_save_LIBS=$LIBS
28572LIBS="-ludis86 $LIBS"
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579
28580/* Override any GCC internal prototype to avoid an error.
28581 Use char because int might match the return type of a GCC
28582 builtin and then its argument prototype would still apply. */
28583#ifdef __cplusplus
28584extern "C"
28585#endif
28586char ud_init ();
28587int
28588main ()
28589{
28590return ud_init ();
28591 ;
28592 return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext conftest$ac_exeext
28596if { (ac_try="$ac_link"
28597case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_link") 2>conftest.er1
28603 ac_status=$?
28604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028629 ac_cv_lib_udis86_ud_init=yes
28630else
28631 echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 ac_cv_lib_udis86_ud_init=no
28635fi
28636
Bill Wendlingebcceee2009-04-18 11:20:33 +000028637rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028638 conftest$ac_exeext conftest.$ac_ext
28639LIBS=$ac_check_lib_save_LIBS
28640fi
28641{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28642echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28643if test $ac_cv_lib_udis86_ud_init = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645#define HAVE_LIBUDIS86 1
28646_ACEOF
28647
28648 LIBS="-ludis86 $LIBS"
28649
28650else
28651
28652 echo "Error! You need to have libudis86 around."
28653 exit -1
28654
28655fi
28656
28657
28658else
28659 USE_UDIS86=0
28660
28661fi
28662
28663
28664cat >>confdefs.h <<_ACEOF
28665#define USE_UDIS86 $USE_UDIS86
28666_ACEOF
28667
28668
28669
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028670# Check whether --with-oprofile was given.
28671if test "${with_oprofile+set}" = set; then
28672 withval=$with_oprofile;
28673 USE_OPROFILE=1
28674
28675 case "$withval" in
28676 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028677 no) llvm_cv_oppath=
28678 USE_OPROFILE=0
28679 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028680 *) llvm_cv_oppath="${withval}/lib/oprofile"
28681 CPPFLAGS="-I${withval}/include";;
28682 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028683 if test -n "$llvm_cv_oppath" ; then
28684 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28685 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28686echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28687if test "${ac_cv_search_bfd_init+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28689else
28690 ac_func_search_save_LIBS=$LIBS
28691cat >conftest.$ac_ext <<_ACEOF
28692/* confdefs.h. */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h. */
28697
28698/* Override any GCC internal prototype to avoid an error.
28699 Use char because int might match the return type of a GCC
28700 builtin and then its argument prototype would still apply. */
28701#ifdef __cplusplus
28702extern "C"
28703#endif
28704char bfd_init ();
28705int
28706main ()
28707{
28708return bfd_init ();
28709 ;
28710 return 0;
28711}
28712_ACEOF
28713for ac_lib in '' bfd; do
28714 if test -z "$ac_lib"; then
28715 ac_res="none required"
28716 else
28717 ac_res=-l$ac_lib
28718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28719 fi
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721if { (ac_try="$ac_link"
28722case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28725esac
28726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_link") 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
28734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28735 { (case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28738esac
28739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_try") 2>&5
28741 ac_status=$?
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; } &&
28744 { ac_try='test -s conftest$ac_exeext'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28748esac
28749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_search_bfd_init=$ac_res
28755else
28756 echo "$as_me: failed program was:" >&5
28757sed 's/^/| /' conftest.$ac_ext >&5
28758
28759
28760fi
28761
28762rm -f core conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext
28764 if test "${ac_cv_search_bfd_init+set}" = set; then
28765 break
28766fi
28767done
28768if test "${ac_cv_search_bfd_init+set}" = set; then
28769 :
28770else
28771 ac_cv_search_bfd_init=no
28772fi
28773rm conftest.$ac_ext
28774LIBS=$ac_func_search_save_LIBS
28775fi
28776{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28777echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28778ac_res=$ac_cv_search_bfd_init
28779if test "$ac_res" != no; then
28780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28781
28782fi
28783
28784 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028785echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28786if test "${ac_cv_search_op_open_agent+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28788else
28789 ac_func_search_save_LIBS=$LIBS
28790cat >conftest.$ac_ext <<_ACEOF
28791/* confdefs.h. */
28792_ACEOF
28793cat confdefs.h >>conftest.$ac_ext
28794cat >>conftest.$ac_ext <<_ACEOF
28795/* end confdefs.h. */
28796
28797/* Override any GCC internal prototype to avoid an error.
28798 Use char because int might match the return type of a GCC
28799 builtin and then its argument prototype would still apply. */
28800#ifdef __cplusplus
28801extern "C"
28802#endif
28803char op_open_agent ();
28804int
28805main ()
28806{
28807return op_open_agent ();
28808 ;
28809 return 0;
28810}
28811_ACEOF
28812for ac_lib in '' opagent; do
28813 if test -z "$ac_lib"; then
28814 ac_res="none required"
28815 else
28816 ac_res=-l$ac_lib
28817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28818 fi
28819 rm -f conftest.$ac_objext conftest$ac_exeext
28820if { (ac_try="$ac_link"
28821case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28824esac
28825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826 (eval "$ac_link") 2>conftest.er1
28827 ac_status=$?
28828 grep -v '^ *+' conftest.er1 >conftest.err
28829 rm -f conftest.er1
28830 cat conftest.err >&5
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } &&
28833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28834 { (case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28837esac
28838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_try") 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest$ac_exeext'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28847esac
28848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_try") 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_search_op_open_agent=$ac_res
28854else
28855 echo "$as_me: failed program was:" >&5
28856sed 's/^/| /' conftest.$ac_ext >&5
28857
28858
28859fi
28860
28861rm -f core conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext
28863 if test "${ac_cv_search_op_open_agent+set}" = set; then
28864 break
28865fi
28866done
28867if test "${ac_cv_search_op_open_agent+set}" = set; then
28868 :
28869else
28870 ac_cv_search_op_open_agent=no
28871fi
28872rm conftest.$ac_ext
28873LIBS=$ac_func_search_save_LIBS
28874fi
28875{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28876echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28877ac_res=$ac_cv_search_op_open_agent
28878if test "$ac_res" != no; then
28879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28880
28881else
28882
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028883 echo "Error! You need to have libopagent around."
28884 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028885
28886fi
28887
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028888 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028889 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28890echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28891if test "${ac_cv_header_opagent_h+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28893fi
28894{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28895echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28896else
28897 # Is the header compilable?
28898{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28899echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28900cat >conftest.$ac_ext <<_ACEOF
28901/* confdefs.h. */
28902_ACEOF
28903cat confdefs.h >>conftest.$ac_ext
28904cat >>conftest.$ac_ext <<_ACEOF
28905/* end confdefs.h. */
28906$ac_includes_default
28907#include <opagent.h>
28908_ACEOF
28909rm -f conftest.$ac_objext
28910if { (ac_try="$ac_compile"
28911case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28914esac
28915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_compile") 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924 { (case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_try") 2>&5
28930 ac_status=$?
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest.$ac_objext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_header_compiler=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_header_compiler=no
28949fi
28950
28951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28952{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28953echo "${ECHO_T}$ac_header_compiler" >&6; }
28954
28955# Is the header present?
28956{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28957echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28958cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
28964#include <opagent.h>
28965_ACEOF
28966if { (ac_try="$ac_cpp conftest.$ac_ext"
28967case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28970esac
28971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28973 ac_status=$?
28974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } >/dev/null; then
28979 if test -s conftest.err; then
28980 ac_cpp_err=$ac_c_preproc_warn_flag
28981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28982 else
28983 ac_cpp_err=
28984 fi
28985else
28986 ac_cpp_err=yes
28987fi
28988if test -z "$ac_cpp_err"; then
28989 ac_header_preproc=yes
28990else
28991 echo "$as_me: failed program was:" >&5
28992sed 's/^/| /' conftest.$ac_ext >&5
28993
28994 ac_header_preproc=no
28995fi
28996
28997rm -f conftest.err conftest.$ac_ext
28998{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28999echo "${ECHO_T}$ac_header_preproc" >&6; }
29000
29001# So? What about this header?
29002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29003 yes:no: )
29004 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29005echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29007echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29008 ac_header_preproc=yes
29009 ;;
29010 no:yes:* )
29011 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29012echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29014echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29016echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29018echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29020echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29022echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29023 ( cat <<\_ASBOX
29024## ----------------------------------- ##
29025## Report this to llvmbugs@cs.uiuc.edu ##
29026## ----------------------------------- ##
29027_ASBOX
29028 ) | sed "s/^/$as_me: WARNING: /" >&2
29029 ;;
29030esac
29031{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29032echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29033if test "${ac_cv_header_opagent_h+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29035else
29036 ac_cv_header_opagent_h=$ac_header_preproc
29037fi
29038{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29039echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29040
29041fi
29042if test $ac_cv_header_opagent_h = yes; then
29043 :
29044else
29045
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029046 echo "Error! You need to have opagent.h around."
29047 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029048
29049fi
29050
29051
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029052 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029053
29054else
29055
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000029056 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000029057
29058
29059fi
29060
29061
29062cat >>confdefs.h <<_ACEOF
29063#define USE_OPROFILE $USE_OPROFILE
29064_ACEOF
29065
29066
29067
Reid Spencer59473af2004-12-25 07:31:29 +000029068
29069
29070
29071
29072
29073ac_header_dirent=no
29074for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29075 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029076{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29077echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029079 echo $ECHO_N "(cached) $ECHO_C" >&6
29080else
29081 cat >conftest.$ac_ext <<_ACEOF
29082/* confdefs.h. */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h. */
29087#include <sys/types.h>
29088#include <$ac_hdr>
29089
29090int
29091main ()
29092{
29093if ((DIR *) 0)
29094return 0;
29095 ;
29096 return 0;
29097}
29098_ACEOF
29099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029100if { (ac_try="$ac_compile"
29101case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29104esac
29105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029107 ac_status=$?
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117esac
29118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127esac
29128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029133 eval "$as_ac_Header=yes"
29134else
29135 echo "$as_me: failed program was:" >&5
29136sed 's/^/| /' conftest.$ac_ext >&5
29137
Reid Spencera773bd52006-08-04 18:18:08 +000029138 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029139fi
Reid Spencera773bd52006-08-04 18:18:08 +000029140
29141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029142fi
Reid Spencera773bd52006-08-04 18:18:08 +000029143ac_res=`eval echo '${'$as_ac_Header'}'`
29144 { echo "$as_me:$LINENO: result: $ac_res" >&5
29145echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029146if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29149_ACEOF
29150
29151ac_header_dirent=$ac_hdr; break
29152fi
29153
29154done
29155# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29156if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029157 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29158echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029159if test "${ac_cv_search_opendir+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29161else
29162 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029163cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h. */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h. */
29169
Reid Spencera773bd52006-08-04 18:18:08 +000029170/* Override any GCC internal prototype to avoid an error.
29171 Use char because int might match the return type of a GCC
29172 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029173#ifdef __cplusplus
29174extern "C"
29175#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029176char opendir ();
29177int
29178main ()
29179{
Reid Spencera773bd52006-08-04 18:18:08 +000029180return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029181 ;
29182 return 0;
29183}
29184_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029185for ac_lib in '' dir; do
29186 if test -z "$ac_lib"; then
29187 ac_res="none required"
29188 else
29189 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029191 fi
29192 rm -f conftest.$ac_objext conftest$ac_exeext
29193if { (ac_try="$ac_link"
29194case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29197esac
29198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029200 ac_status=$?
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029205 (exit $ac_status); } &&
29206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29207 { (case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210esac
29211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_try") 2>&5
29213 ac_status=$?
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; } &&
29216 { ac_try='test -s conftest$ac_exeext'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220esac
29221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029226 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029227else
29228 echo "$as_me: failed program was:" >&5
29229sed 's/^/| /' conftest.$ac_ext >&5
29230
Reid Spencera773bd52006-08-04 18:18:08 +000029231
Reid Spencer59473af2004-12-25 07:31:29 +000029232fi
Reid Spencera773bd52006-08-04 18:18:08 +000029233
Bill Wendlingebcceee2009-04-18 11:20:33 +000029234rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029235 conftest$ac_exeext
29236 if test "${ac_cv_search_opendir+set}" = set; then
29237 break
Reid Spencer59473af2004-12-25 07:31:29 +000029238fi
Reid Spencera773bd52006-08-04 18:18:08 +000029239done
29240if test "${ac_cv_search_opendir+set}" = set; then
29241 :
29242else
29243 ac_cv_search_opendir=no
29244fi
29245rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029246LIBS=$ac_func_search_save_LIBS
29247fi
Reid Spencera773bd52006-08-04 18:18:08 +000029248{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29249echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29250ac_res=$ac_cv_search_opendir
29251if test "$ac_res" != no; then
29252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029253
29254fi
29255
29256else
Reid Spencera773bd52006-08-04 18:18:08 +000029257 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29258echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029259if test "${ac_cv_search_opendir+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029263cat >conftest.$ac_ext <<_ACEOF
29264/* confdefs.h. */
29265_ACEOF
29266cat confdefs.h >>conftest.$ac_ext
29267cat >>conftest.$ac_ext <<_ACEOF
29268/* end confdefs.h. */
29269
Reid Spencera773bd52006-08-04 18:18:08 +000029270/* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029273#ifdef __cplusplus
29274extern "C"
29275#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029276char opendir ();
29277int
29278main ()
29279{
Reid Spencera773bd52006-08-04 18:18:08 +000029280return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029281 ;
29282 return 0;
29283}
29284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029285for ac_lib in '' x; do
29286 if test -z "$ac_lib"; then
29287 ac_res="none required"
29288 else
29289 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029291 fi
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293if { (ac_try="$ac_link"
29294case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29297esac
29298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029300 ac_status=$?
29301 grep -v '^ *+' conftest.er1 >conftest.err
29302 rm -f conftest.er1
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029305 (exit $ac_status); } &&
29306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29310esac
29311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; } &&
29316 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029326 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029327else
29328 echo "$as_me: failed program was:" >&5
29329sed 's/^/| /' conftest.$ac_ext >&5
29330
Reid Spencera773bd52006-08-04 18:18:08 +000029331
Reid Spencer59473af2004-12-25 07:31:29 +000029332fi
Reid Spencera773bd52006-08-04 18:18:08 +000029333
Bill Wendlingebcceee2009-04-18 11:20:33 +000029334rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029335 conftest$ac_exeext
29336 if test "${ac_cv_search_opendir+set}" = set; then
29337 break
Reid Spencer59473af2004-12-25 07:31:29 +000029338fi
Reid Spencera773bd52006-08-04 18:18:08 +000029339done
29340if test "${ac_cv_search_opendir+set}" = set; then
29341 :
29342else
29343 ac_cv_search_opendir=no
29344fi
29345rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029346LIBS=$ac_func_search_save_LIBS
29347fi
Reid Spencera773bd52006-08-04 18:18:08 +000029348{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29349echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29350ac_res=$ac_cv_search_opendir
29351if test "$ac_res" != no; then
29352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029353
29354fi
29355
29356fi
29357
Reid Spencera773bd52006-08-04 18:18:08 +000029358{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29359echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029360if test "${ac_cv_header_mmap_anon+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29362else
29363 ac_ext=c
29364ac_cpp='$CPP $CPPFLAGS'
29365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29367ac_compiler_gnu=$ac_cv_c_compiler_gnu
29368
29369 cat >conftest.$ac_ext <<_ACEOF
29370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
29375#include <sys/mman.h>
29376#include <unistd.h>
29377#include <fcntl.h>
29378int
29379main ()
29380{
29381mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29382 ;
29383 return 0;
29384}
29385_ACEOF
29386rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029387if { (ac_try="$ac_compile"
29388case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29391esac
29392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029394 ac_status=$?
29395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29404esac
29405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29414esac
29415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029420 ac_cv_header_mmap_anon=yes
29421else
29422 echo "$as_me: failed program was:" >&5
29423sed 's/^/| /' conftest.$ac_ext >&5
29424
Reid Spencera773bd52006-08-04 18:18:08 +000029425 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029426fi
Reid Spencera773bd52006-08-04 18:18:08 +000029427
29428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029429 ac_ext=c
29430ac_cpp='$CPP $CPPFLAGS'
29431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434
29435
29436fi
Reid Spencera773bd52006-08-04 18:18:08 +000029437{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29438echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029439if test "$ac_cv_header_mmap_anon" = yes; then
29440
29441cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029442#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029443_ACEOF
29444
29445fi
29446
Reid Spencera773bd52006-08-04 18:18:08 +000029447{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29448echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029449if test "${ac_cv_header_stat_broken+set}" = set; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29451else
29452 cat >conftest.$ac_ext <<_ACEOF
29453/* confdefs.h. */
29454_ACEOF
29455cat confdefs.h >>conftest.$ac_ext
29456cat >>conftest.$ac_ext <<_ACEOF
29457/* end confdefs.h. */
29458#include <sys/types.h>
29459#include <sys/stat.h>
29460
Reid Spencera773bd52006-08-04 18:18:08 +000029461#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029462# if S_ISBLK (S_IFDIR)
29463You lose.
29464# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029465#endif
29466
Reid Spencera773bd52006-08-04 18:18:08 +000029467#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029468# if S_ISBLK (S_IFCHR)
29469You lose.
29470# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029471#endif
29472
Reid Spencera773bd52006-08-04 18:18:08 +000029473#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029474# if S_ISLNK (S_IFREG)
29475You lose.
29476# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029477#endif
29478
Reid Spencera773bd52006-08-04 18:18:08 +000029479#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029480# if S_ISSOCK (S_IFREG)
29481You lose.
29482# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029483#endif
29484
29485_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29487 $EGREP "You lose" >/dev/null 2>&1; then
29488 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029489else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029490 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029491fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029492rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029493
Reid Spencer59473af2004-12-25 07:31:29 +000029494fi
Reid Spencera773bd52006-08-04 18:18:08 +000029495{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29496echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029497if test $ac_cv_header_stat_broken = yes; then
29498
29499cat >>confdefs.h <<\_ACEOF
29500#define STAT_MACROS_BROKEN 1
29501_ACEOF
29502
29503fi
29504
Reid Spencera773bd52006-08-04 18:18:08 +000029505{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029507if test "${ac_cv_header_stdc+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029511/* confdefs.h. */
29512_ACEOF
29513cat confdefs.h >>conftest.$ac_ext
29514cat >>conftest.$ac_ext <<_ACEOF
29515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029516#include <stdlib.h>
29517#include <stdarg.h>
29518#include <string.h>
29519#include <float.h>
29520
John Criswell0c38eaf2003-09-10 15:17:25 +000029521int
29522main ()
29523{
29524
29525 ;
29526 return 0;
29527}
John Criswell7a73b802003-06-30 21:59:07 +000029528_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029529rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029530if { (ac_try="$ac_compile"
29531case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29534esac
29535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29544 { (case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547esac
29548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_try") 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest.$ac_objext'
29554 { (case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29557esac
29558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_try") 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_cv_header_stdc=yes
29564else
29565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029566sed 's/^/| /' conftest.$ac_ext >&5
29567
Reid Spencera773bd52006-08-04 18:18:08 +000029568 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029569fi
Reid Spencera773bd52006-08-04 18:18:08 +000029570
29571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029572
29573if test $ac_cv_header_stdc = yes; then
29574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29575 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029576/* confdefs.h. */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029581#include <string.h>
29582
29583_ACEOF
29584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029585 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029586 :
29587else
29588 ac_cv_header_stdc=no
29589fi
29590rm -f conftest*
29591
29592fi
29593
29594if test $ac_cv_header_stdc = yes; then
29595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029597/* confdefs.h. */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029602#include <stdlib.h>
29603
29604_ACEOF
29605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029606 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029607 :
29608else
29609 ac_cv_header_stdc=no
29610fi
29611rm -f conftest*
29612
29613fi
29614
29615if test $ac_cv_header_stdc = yes; then
29616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29617 if test "$cross_compiling" = yes; then
29618 :
29619else
29620 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029621/* confdefs.h. */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029626#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029627#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029628#if ((' ' & 0x0FF) == 0x020)
29629# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29630# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29631#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029632# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029633 (('a' <= (c) && (c) <= 'i') \
29634 || ('j' <= (c) && (c) <= 'r') \
29635 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29637#endif
29638
29639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29640int
29641main ()
29642{
29643 int i;
29644 for (i = 0; i < 256; i++)
29645 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029647 return 2;
29648 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029649}
29650_ACEOF
29651rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029652if { (ac_try="$ac_link"
29653case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29656esac
29657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29671 :
29672else
29673 echo "$as_me: program exited with status $ac_status" >&5
29674echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029675sed 's/^/| /' conftest.$ac_ext >&5
29676
John Criswell7a73b802003-06-30 21:59:07 +000029677( exit $ac_status )
29678ac_cv_header_stdc=no
29679fi
Reid Spencera773bd52006-08-04 18:18:08 +000029680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29681fi
29682
29683
John Criswell7a73b802003-06-30 21:59:07 +000029684fi
29685fi
Reid Spencera773bd52006-08-04 18:18:08 +000029686{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29687echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029688if test $ac_cv_header_stdc = yes; then
29689
29690cat >>confdefs.h <<\_ACEOF
29691#define STDC_HEADERS 1
29692_ACEOF
29693
29694fi
29695
Reid Spencera773bd52006-08-04 18:18:08 +000029696{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29697echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029698if test "${ac_cv_header_sys_wait_h+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029707#include <sys/types.h>
29708#include <sys/wait.h>
29709#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029710# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029711#endif
29712#ifndef WIFEXITED
29713# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29714#endif
29715
John Criswell7a73b802003-06-30 21:59:07 +000029716int
29717main ()
29718{
29719 int s;
29720 wait (&s);
29721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29722 ;
29723 return 0;
29724}
29725_ACEOF
29726rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029727if { (ac_try="$ac_compile"
29728case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029735 grep -v '^ *+' conftest.er1 >conftest.err
29736 rm -f conftest.er1
29737 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029739 (exit $ac_status); } &&
29740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29744esac
29745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746 (eval "$ac_try") 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest.$ac_objext'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754esac
29755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029760 ac_cv_header_sys_wait_h=yes
29761else
29762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029763sed 's/^/| /' conftest.$ac_ext >&5
29764
Reid Spencera773bd52006-08-04 18:18:08 +000029765 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029766fi
Reid Spencera773bd52006-08-04 18:18:08 +000029767
29768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029769fi
Reid Spencera773bd52006-08-04 18:18:08 +000029770{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29771echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029772if test $ac_cv_header_sys_wait_h = yes; then
29773
29774cat >>confdefs.h <<\_ACEOF
29775#define HAVE_SYS_WAIT_H 1
29776_ACEOF
29777
29778fi
29779
Reid Spencera773bd52006-08-04 18:18:08 +000029780{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29781echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029782if test "${ac_cv_header_time+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29784else
29785 cat >conftest.$ac_ext <<_ACEOF
29786/* confdefs.h. */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
29790/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029791#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029792#include <sys/time.h>
29793#include <time.h>
29794
29795int
29796main ()
29797{
29798if ((struct tm *) 0)
29799return 0;
29800 ;
29801 return 0;
29802}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029803_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029804rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029805if { (ac_try="$ac_compile"
29806case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809esac
29810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029812 ac_status=$?
29813 grep -v '^ *+' conftest.er1 >conftest.err
29814 rm -f conftest.er1
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029817 (exit $ac_status); } &&
29818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29819 { (case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29822esac
29823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; } &&
29828 { ac_try='test -s conftest.$ac_objext'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29832esac
29833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029838 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029839else
29840 echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
Reid Spencera773bd52006-08-04 18:18:08 +000029843 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029844fi
Reid Spencera773bd52006-08-04 18:18:08 +000029845
29846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847fi
Reid Spencera773bd52006-08-04 18:18:08 +000029848{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29849echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029850if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029851
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029852cat >>confdefs.h <<\_ACEOF
29853#define TIME_WITH_SYS_TIME 1
29854_ACEOF
29855
29856fi
29857
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029858
Reid Spencer59473af2004-12-25 07:31:29 +000029859
29860
29861
29862
29863
29864
29865for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29866do
29867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029872 echo $ECHO_N "(cached) $ECHO_C" >&6
29873fi
Reid Spencera773bd52006-08-04 18:18:08 +000029874ac_res=`eval echo '${'$as_ac_Header'}'`
29875 { echo "$as_me:$LINENO: result: $ac_res" >&5
29876echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029877else
29878 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029881cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029882/* confdefs.h. */
29883_ACEOF
29884cat confdefs.h >>conftest.$ac_ext
29885cat >>conftest.$ac_ext <<_ACEOF
29886/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029887$ac_includes_default
29888#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029889_ACEOF
29890rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029891if { (ac_try="$ac_compile"
29892case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895esac
29896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029898 ac_status=$?
29899 grep -v '^ *+' conftest.er1 >conftest.err
29900 rm -f conftest.er1
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029903 (exit $ac_status); } &&
29904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29905 { (case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29908esac
29909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_try") 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; } &&
29914 { ac_try='test -s conftest.$ac_objext'
29915 { (case "(($ac_try" in
29916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29918esac
29919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_try") 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029924 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029925else
29926 echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
Reid Spencera773bd52006-08-04 18:18:08 +000029929 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029930fi
Reid Spencera773bd52006-08-04 18:18:08 +000029931
29932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29934echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029935
Reid Spencer59473af2004-12-25 07:31:29 +000029936# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029939cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
29945#include <$ac_header>
29946_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029947if { (ac_try="$ac_cpp conftest.$ac_ext"
29948case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029954 ac_status=$?
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029959 (exit $ac_status); } >/dev/null; then
29960 if test -s conftest.err; then
29961 ac_cpp_err=$ac_c_preproc_warn_flag
29962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29963 else
29964 ac_cpp_err=
29965 fi
29966else
29967 ac_cpp_err=yes
29968fi
29969if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029970 ac_header_preproc=yes
29971else
29972 echo "$as_me: failed program was:" >&5
29973sed 's/^/| /' conftest.$ac_ext >&5
29974
29975 ac_header_preproc=no
29976fi
Reid Spencera773bd52006-08-04 18:18:08 +000029977
Reid Spencer59473af2004-12-25 07:31:29 +000029978rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29980echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029981
29982# So? What about this header?
29983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29984 yes:no: )
29985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29989 ac_header_preproc=yes
29990 ;;
29991 no:yes:* )
29992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030004 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030005## ----------------------------------- ##
30006## Report this to llvmbugs@cs.uiuc.edu ##
30007## ----------------------------------- ##
30008_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030009 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030010 ;;
30011esac
Reid Spencera773bd52006-08-04 18:18:08 +000030012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030015 echo $ECHO_N "(cached) $ECHO_C" >&6
30016else
30017 eval "$as_ac_Header=\$ac_header_preproc"
30018fi
Reid Spencera773bd52006-08-04 18:18:08 +000030019ac_res=`eval echo '${'$as_ac_Header'}'`
30020 { echo "$as_me:$LINENO: result: $ac_res" >&5
30021echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030022
30023fi
Reid Spencer59473af2004-12-25 07:31:29 +000030024if test `eval echo '${'$as_ac_Header'}'` = yes; then
30025 cat >>confdefs.h <<_ACEOF
30026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030028
30029fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030030
Reid Spencer59473af2004-12-25 07:31:29 +000030031done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030033
30034
Reid Spencer59473af2004-12-25 07:31:29 +000030035
30036
30037
30038
Douglas Gregor071d73d2009-05-18 17:21:34 +000030039for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030040do
30041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030046 echo $ECHO_N "(cached) $ECHO_C" >&6
30047fi
Reid Spencera773bd52006-08-04 18:18:08 +000030048ac_res=`eval echo '${'$as_ac_Header'}'`
30049 { echo "$as_me:$LINENO: result: $ac_res" >&5
30050echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030051else
30052 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030053{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030055cat >conftest.$ac_ext <<_ACEOF
30056/* confdefs.h. */
30057_ACEOF
30058cat confdefs.h >>conftest.$ac_ext
30059cat >>conftest.$ac_ext <<_ACEOF
30060/* end confdefs.h. */
30061$ac_includes_default
30062#include <$ac_header>
30063_ACEOF
30064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030065if { (ac_try="$ac_compile"
30066case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030072 ac_status=$?
30073 grep -v '^ *+' conftest.er1 >conftest.err
30074 rm -f conftest.er1
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030077 (exit $ac_status); } &&
30078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30079 { (case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30082esac
30083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_try") 2>&5
30085 ac_status=$?
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest.$ac_objext'
30089 { (case "(($ac_try" in
30090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30091 *) ac_try_echo=$ac_try;;
30092esac
30093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30094 (eval "$ac_try") 2>&5
30095 ac_status=$?
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030098 ac_header_compiler=yes
30099else
30100 echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
Reid Spencera773bd52006-08-04 18:18:08 +000030103 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030104fi
Reid Spencera773bd52006-08-04 18:18:08 +000030105
30106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30108echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030109
30110# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030113cat >conftest.$ac_ext <<_ACEOF
30114/* confdefs.h. */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h. */
30119#include <$ac_header>
30120_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030121if { (ac_try="$ac_cpp conftest.$ac_ext"
30122case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30125esac
30126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030128 ac_status=$?
30129 grep -v '^ *+' conftest.er1 >conftest.err
30130 rm -f conftest.er1
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030133 (exit $ac_status); } >/dev/null; then
30134 if test -s conftest.err; then
30135 ac_cpp_err=$ac_c_preproc_warn_flag
30136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30137 else
30138 ac_cpp_err=
30139 fi
30140else
30141 ac_cpp_err=yes
30142fi
30143if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030144 ac_header_preproc=yes
30145else
30146 echo "$as_me: failed program was:" >&5
30147sed 's/^/| /' conftest.$ac_ext >&5
30148
30149 ac_header_preproc=no
30150fi
Reid Spencera773bd52006-08-04 18:18:08 +000030151
Reid Spencer59473af2004-12-25 07:31:29 +000030152rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30154echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030155
30156# So? What about this header?
30157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30158 yes:no: )
30159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30163 ac_header_preproc=yes
30164 ;;
30165 no:yes:* )
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030178 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030179## ----------------------------------- ##
30180## Report this to llvmbugs@cs.uiuc.edu ##
30181## ----------------------------------- ##
30182_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030183 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030184 ;;
30185esac
Reid Spencera773bd52006-08-04 18:18:08 +000030186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030189 echo $ECHO_N "(cached) $ECHO_C" >&6
30190else
30191 eval "$as_ac_Header=\$ac_header_preproc"
30192fi
Reid Spencera773bd52006-08-04 18:18:08 +000030193ac_res=`eval echo '${'$as_ac_Header'}'`
30194 { echo "$as_me:$LINENO: result: $ac_res" >&5
30195echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030196
30197fi
30198if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30201_ACEOF
30202
30203fi
30204
30205done
30206
30207
Douglas Gregor071d73d2009-05-18 17:21:34 +000030208
30209for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030210do
30211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30217fi
30218ac_res=`eval echo '${'$as_ac_Header'}'`
30219 { echo "$as_me:$LINENO: result: $ac_res" >&5
30220echo "${ECHO_T}$ac_res" >&6; }
30221else
30222 # Is the header compilable?
30223{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30225cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h. */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h. */
30231$ac_includes_default
30232#include <$ac_header>
30233_ACEOF
30234rm -f conftest.$ac_objext
30235if { (ac_try="$ac_compile"
30236case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239esac
30240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_compile") 2>conftest.er1
30242 ac_status=$?
30243 grep -v '^ *+' conftest.er1 >conftest.err
30244 rm -f conftest.er1
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030247 (exit $ac_status); } &&
30248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30249 { (case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30252esac
30253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_try") 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; } &&
30258 { ac_try='test -s conftest.$ac_objext'
30259 { (case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30262esac
30263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_try") 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030268 ac_header_compiler=yes
30269else
30270 echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273 ac_header_compiler=no
30274fi
30275
30276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278echo "${ECHO_T}$ac_header_compiler" >&6; }
30279
30280# Is the header present?
30281{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283cat >conftest.$ac_ext <<_ACEOF
30284/* confdefs.h. */
30285_ACEOF
30286cat confdefs.h >>conftest.$ac_ext
30287cat >>conftest.$ac_ext <<_ACEOF
30288/* end confdefs.h. */
30289#include <$ac_header>
30290_ACEOF
30291if { (ac_try="$ac_cpp conftest.$ac_ext"
30292case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30295esac
30296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030303 (exit $ac_status); } >/dev/null; then
30304 if test -s conftest.err; then
30305 ac_cpp_err=$ac_c_preproc_warn_flag
30306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30307 else
30308 ac_cpp_err=
30309 fi
30310else
30311 ac_cpp_err=yes
30312fi
30313if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030314 ac_header_preproc=yes
30315else
30316 echo "$as_me: failed program was:" >&5
30317sed 's/^/| /' conftest.$ac_ext >&5
30318
30319 ac_header_preproc=no
30320fi
30321
30322rm -f conftest.err conftest.$ac_ext
30323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30324echo "${ECHO_T}$ac_header_preproc" >&6; }
30325
30326# So? What about this header?
30327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30328 yes:no: )
30329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30333 ac_header_preproc=yes
30334 ;;
30335 no:yes:* )
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30348 ( cat <<\_ASBOX
30349## ----------------------------------- ##
30350## Report this to llvmbugs@cs.uiuc.edu ##
30351## ----------------------------------- ##
30352_ASBOX
30353 ) | sed "s/^/$as_me: WARNING: /" >&2
30354 ;;
30355esac
30356{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30360else
30361 eval "$as_ac_Header=\$ac_header_preproc"
30362fi
30363ac_res=`eval echo '${'$as_ac_Header'}'`
30364 { echo "$as_me:$LINENO: result: $ac_res" >&5
30365echo "${ECHO_T}$ac_res" >&6; }
30366
30367fi
30368if test `eval echo '${'$as_ac_Header'}'` = yes; then
30369 cat >>confdefs.h <<_ACEOF
30370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30371_ACEOF
30372
30373fi
30374
30375done
Reid Spencer59473af2004-12-25 07:31:29 +000030376
30377
30378
30379
Reid Spencerbe3e4192007-08-17 05:45:26 +000030380
30381for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030382do
30383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030388 echo $ECHO_N "(cached) $ECHO_C" >&6
30389fi
Reid Spencera773bd52006-08-04 18:18:08 +000030390ac_res=`eval echo '${'$as_ac_Header'}'`
30391 { echo "$as_me:$LINENO: result: $ac_res" >&5
30392echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030393else
30394 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030397cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030398/* confdefs.h. */
30399_ACEOF
30400cat confdefs.h >>conftest.$ac_ext
30401cat >>conftest.$ac_ext <<_ACEOF
30402/* end confdefs.h. */
30403$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030404#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030405_ACEOF
30406rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030407if { (ac_try="$ac_compile"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30424esac
30425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30434esac
30435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030440 ac_header_compiler=yes
30441else
30442 echo "$as_me: failed program was:" >&5
30443sed 's/^/| /' conftest.$ac_ext >&5
30444
Reid Spencera773bd52006-08-04 18:18:08 +000030445 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030446fi
Reid Spencera773bd52006-08-04 18:18:08 +000030447
30448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30450echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030451
30452# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030455cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030456/* confdefs.h. */
30457_ACEOF
30458cat confdefs.h >>conftest.$ac_ext
30459cat >>conftest.$ac_ext <<_ACEOF
30460/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030461#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030462_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030463if { (ac_try="$ac_cpp conftest.$ac_ext"
30464case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30467esac
30468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030470 ac_status=$?
30471 grep -v '^ *+' conftest.er1 >conftest.err
30472 rm -f conftest.er1
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030475 (exit $ac_status); } >/dev/null; then
30476 if test -s conftest.err; then
30477 ac_cpp_err=$ac_c_preproc_warn_flag
30478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30479 else
30480 ac_cpp_err=
30481 fi
30482else
30483 ac_cpp_err=yes
30484fi
30485if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030486 ac_header_preproc=yes
30487else
30488 echo "$as_me: failed program was:" >&5
30489sed 's/^/| /' conftest.$ac_ext >&5
30490
30491 ac_header_preproc=no
30492fi
Reid Spencera773bd52006-08-04 18:18:08 +000030493
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030494rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30496echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030497
30498# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30500 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030505 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030506 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030507 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030520 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030521## ----------------------------------- ##
30522## Report this to llvmbugs@cs.uiuc.edu ##
30523## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030524_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030525 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030526 ;;
30527esac
Reid Spencera773bd52006-08-04 18:18:08 +000030528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030531 echo $ECHO_N "(cached) $ECHO_C" >&6
30532else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030533 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030534fi
Reid Spencera773bd52006-08-04 18:18:08 +000030535ac_res=`eval echo '${'$as_ac_Header'}'`
30536 { echo "$as_me:$LINENO: result: $ac_res" >&5
30537echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030538
30539fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030540if test `eval echo '${'$as_ac_Header'}'` = yes; then
30541 cat >>confdefs.h <<_ACEOF
30542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030543_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030544
30545fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030546
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030547done
30548
John Criswell7ed43ad2004-07-19 16:12:29 +000030549
Reid Spencercdb08a32006-06-05 16:11:07 +000030550
Reid Spencera6d990a2006-09-14 06:17:21 +000030551
Douglas Gregor01746742009-05-11 18:05:52 +000030552
30553for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030554do
30555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030560 echo $ECHO_N "(cached) $ECHO_C" >&6
30561fi
Reid Spencera773bd52006-08-04 18:18:08 +000030562ac_res=`eval echo '${'$as_ac_Header'}'`
30563 { echo "$as_me:$LINENO: result: $ac_res" >&5
30564echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030565else
30566 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030569cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
30575$ac_includes_default
30576#include <$ac_header>
30577_ACEOF
30578rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030579if { (ac_try="$ac_compile"
30580case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30583esac
30584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030591 (exit $ac_status); } &&
30592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30596esac
30597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30599 ac_status=$?
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
30602 { ac_try='test -s conftest.$ac_objext'
30603 { (case "(($ac_try" in
30604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605 *) ac_try_echo=$ac_try;;
30606esac
30607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608 (eval "$ac_try") 2>&5
30609 ac_status=$?
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030612 ac_header_compiler=yes
30613else
30614 echo "$as_me: failed program was:" >&5
30615sed 's/^/| /' conftest.$ac_ext >&5
30616
Reid Spencera773bd52006-08-04 18:18:08 +000030617 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030618fi
Reid Spencera773bd52006-08-04 18:18:08 +000030619
30620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30622echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030623
30624# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030627cat >conftest.$ac_ext <<_ACEOF
30628/* confdefs.h. */
30629_ACEOF
30630cat confdefs.h >>conftest.$ac_ext
30631cat >>conftest.$ac_ext <<_ACEOF
30632/* end confdefs.h. */
30633#include <$ac_header>
30634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030635if { (ac_try="$ac_cpp conftest.$ac_ext"
30636case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30639esac
30640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030642 ac_status=$?
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030647 (exit $ac_status); } >/dev/null; then
30648 if test -s conftest.err; then
30649 ac_cpp_err=$ac_c_preproc_warn_flag
30650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30651 else
30652 ac_cpp_err=
30653 fi
30654else
30655 ac_cpp_err=yes
30656fi
30657if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030658 ac_header_preproc=yes
30659else
30660 echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
30663 ac_header_preproc=no
30664fi
Reid Spencera773bd52006-08-04 18:18:08 +000030665
Chris Lattner0b142592005-11-14 06:57:34 +000030666rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30668echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030669
30670# So? What about this header?
30671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30672 yes:no: )
30673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30677 ac_header_preproc=yes
30678 ;;
30679 no:yes:* )
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030692 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030693## ----------------------------------- ##
30694## Report this to llvmbugs@cs.uiuc.edu ##
30695## ----------------------------------- ##
30696_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030697 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030698 ;;
30699esac
Reid Spencera773bd52006-08-04 18:18:08 +000030700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030703 echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705 eval "$as_ac_Header=\$ac_header_preproc"
30706fi
Reid Spencera773bd52006-08-04 18:18:08 +000030707ac_res=`eval echo '${'$as_ac_Header'}'`
30708 { echo "$as_me:$LINENO: result: $ac_res" >&5
30709echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030710
30711fi
30712if test `eval echo '${'$as_ac_Header'}'` = yes; then
30713 cat >>confdefs.h <<_ACEOF
30714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30715_ACEOF
30716
30717fi
30718
30719done
30720
Reid Spencer0a262ba2005-08-24 10:07:20 +000030721if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030722
30723for ac_header in pthread.h
30724do
30725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030730 echo $ECHO_N "(cached) $ECHO_C" >&6
30731fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030732ac_res=`eval echo '${'$as_ac_Header'}'`
30733 { echo "$as_me:$LINENO: result: $ac_res" >&5
30734echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030735else
30736 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030737{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030739cat >conftest.$ac_ext <<_ACEOF
30740/* confdefs.h. */
30741_ACEOF
30742cat confdefs.h >>conftest.$ac_ext
30743cat >>conftest.$ac_ext <<_ACEOF
30744/* end confdefs.h. */
30745$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030746#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030747_ACEOF
30748rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030749if { (ac_try="$ac_compile"
30750case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30753esac
30754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30766esac
30767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest.$ac_objext'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30776esac
30777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030782 ac_header_compiler=yes
30783else
30784 echo "$as_me: failed program was:" >&5
30785sed 's/^/| /' conftest.$ac_ext >&5
30786
Reid Spencera773bd52006-08-04 18:18:08 +000030787 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030788fi
Reid Spencera773bd52006-08-04 18:18:08 +000030789
30790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30792echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030793
30794# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030797cat >conftest.$ac_ext <<_ACEOF
30798/* confdefs.h. */
30799_ACEOF
30800cat confdefs.h >>conftest.$ac_ext
30801cat >>conftest.$ac_ext <<_ACEOF
30802/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030803#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030804_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030805if { (ac_try="$ac_cpp conftest.$ac_ext"
30806case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30809esac
30810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812 ac_status=$?
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030817 (exit $ac_status); } >/dev/null; then
30818 if test -s conftest.err; then
30819 ac_cpp_err=$ac_c_preproc_warn_flag
30820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30821 else
30822 ac_cpp_err=
30823 fi
30824else
30825 ac_cpp_err=yes
30826fi
30827if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030828 ac_header_preproc=yes
30829else
30830 echo "$as_me: failed program was:" >&5
30831sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ac_header_preproc=no
30834fi
Reid Spencera773bd52006-08-04 18:18:08 +000030835
Reid Spencer0a262ba2005-08-24 10:07:20 +000030836rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30838echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030839
30840# So? What about this header?
30841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30842 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030847 ac_header_preproc=yes
30848 ;;
30849 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030862 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030863## ----------------------------------- ##
30864## Report this to llvmbugs@cs.uiuc.edu ##
30865## ----------------------------------- ##
30866_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030867 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030868 ;;
30869esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030873 echo $ECHO_N "(cached) $ECHO_C" >&6
30874else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030875 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030876fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030877ac_res=`eval echo '${'$as_ac_Header'}'`
30878 { echo "$as_me:$LINENO: result: $ac_res" >&5
30879echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030880
30881fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030882if test `eval echo '${'$as_ac_Header'}'` = yes; then
30883 cat >>confdefs.h <<_ACEOF
30884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30885_ACEOF
30886 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030887
30888else
30889 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030890
30891fi
30892
Reid Spencerbe3e4192007-08-17 05:45:26 +000030893done
Reid Spencer1000b732006-12-01 00:37:14 +000030894
30895else
30896 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030897
30898fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030899
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030900if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030901
30902
30903for ac_header in ffi.h ffi/ffi.h
30904do
30905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30911fi
30912ac_res=`eval echo '${'$as_ac_Header'}'`
30913 { echo "$as_me:$LINENO: result: $ac_res" >&5
30914echo "${ECHO_T}$ac_res" >&6; }
30915else
30916 # Is the header compilable?
30917{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30919cat >conftest.$ac_ext <<_ACEOF
30920/* confdefs.h. */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h. */
30925$ac_includes_default
30926#include <$ac_header>
30927_ACEOF
30928rm -f conftest.$ac_objext
30929if { (ac_try="$ac_compile"
30930case "(($ac_try" in
30931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932 *) ac_try_echo=$ac_try;;
30933esac
30934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935 (eval "$ac_compile") 2>conftest.er1
30936 ac_status=$?
30937 grep -v '^ *+' conftest.er1 >conftest.err
30938 rm -f conftest.er1
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030941 (exit $ac_status); } &&
30942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30946esac
30947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
30949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; } &&
30952 { ac_try='test -s conftest.$ac_objext'
30953 { (case "(($ac_try" in
30954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955 *) ac_try_echo=$ac_try;;
30956esac
30957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958 (eval "$ac_try") 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030962 ac_header_compiler=yes
30963else
30964 echo "$as_me: failed program was:" >&5
30965sed 's/^/| /' conftest.$ac_ext >&5
30966
30967 ac_header_compiler=no
30968fi
30969
30970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30972echo "${ECHO_T}$ac_header_compiler" >&6; }
30973
30974# Is the header present?
30975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30977cat >conftest.$ac_ext <<_ACEOF
30978/* confdefs.h. */
30979_ACEOF
30980cat confdefs.h >>conftest.$ac_ext
30981cat >>conftest.$ac_ext <<_ACEOF
30982/* end confdefs.h. */
30983#include <$ac_header>
30984_ACEOF
30985if { (ac_try="$ac_cpp conftest.$ac_ext"
30986case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30989esac
30990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30992 ac_status=$?
30993 grep -v '^ *+' conftest.er1 >conftest.err
30994 rm -f conftest.er1
30995 cat conftest.err >&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030997 (exit $ac_status); } >/dev/null; then
30998 if test -s conftest.err; then
30999 ac_cpp_err=$ac_c_preproc_warn_flag
31000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31001 else
31002 ac_cpp_err=
31003 fi
31004else
31005 ac_cpp_err=yes
31006fi
31007if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031008 ac_header_preproc=yes
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013 ac_header_preproc=no
31014fi
31015
31016rm -f conftest.err conftest.$ac_ext
31017{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31018echo "${ECHO_T}$ac_header_preproc" >&6; }
31019
31020# So? What about this header?
31021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31022 yes:no: )
31023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31027 ac_header_preproc=yes
31028 ;;
31029 no:yes:* )
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31042 ( cat <<\_ASBOX
31043## ----------------------------------- ##
31044## Report this to llvmbugs@cs.uiuc.edu ##
31045## ----------------------------------- ##
31046_ASBOX
31047 ) | sed "s/^/$as_me: WARNING: /" >&2
31048 ;;
31049esac
31050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31053 echo $ECHO_N "(cached) $ECHO_C" >&6
31054else
31055 eval "$as_ac_Header=\$ac_header_preproc"
31056fi
31057ac_res=`eval echo '${'$as_ac_Header'}'`
31058 { echo "$as_me:$LINENO: result: $ac_res" >&5
31059echo "${ECHO_T}$ac_res" >&6; }
31060
31061fi
31062if test `eval echo '${'$as_ac_Header'}'` = yes; then
31063 cat >>confdefs.h <<_ACEOF
31064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31065_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031066
31067fi
31068
31069done
31070
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031071fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031072
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031073
Reid Spencer8085cff2005-01-16 02:58:39 +000031074
Reid Spencerb2ed05262006-11-03 18:04:08 +000031075 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31076echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31077if test "${ac_cv_huge_val_sanity+set}" = set; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31079else
31080
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031081 ac_ext=cpp
31082ac_cpp='$CXXCPP $CPPFLAGS'
31083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031086
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031087 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031088 if test "$cross_compiling" = yes; then
31089 ac_cv_huge_val_sanity=yes
31090else
31091 cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h. */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h. */
31097#include <math.h>
31098int
31099main ()
31100{
31101double x = HUGE_VAL; return x != x;
31102 ;
31103 return 0;
31104}
31105_ACEOF
31106rm -f conftest$ac_exeext
31107if { (ac_try="$ac_link"
31108case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_link") 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
31126 ac_cv_huge_val_sanity=yes
31127else
31128 echo "$as_me: program exited with status $ac_status" >&5
31129echo "$as_me: failed program was:" >&5
31130sed 's/^/| /' conftest.$ac_ext >&5
31131
31132( exit $ac_status )
31133ac_cv_huge_val_sanity=no
31134fi
31135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31136fi
31137
31138
31139 ac_ext=c
31140ac_cpp='$CPP $CPPFLAGS'
31141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31143ac_compiler_gnu=$ac_cv_c_compiler_gnu
31144
31145
31146fi
31147{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31148echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31149 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31150
31151
Reid Spencera773bd52006-08-04 18:18:08 +000031152{ echo "$as_me:$LINENO: checking for pid_t" >&5
31153echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031154if test "${ac_cv_type_pid_t+set}" = set; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31156else
31157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031158/* confdefs.h. */
31159_ACEOF
31160cat confdefs.h >>conftest.$ac_ext
31161cat >>conftest.$ac_ext <<_ACEOF
31162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031163$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031164typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031165int
31166main ()
31167{
Reid Spencera773bd52006-08-04 18:18:08 +000031168if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031169 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031170if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031171 return 0;
31172 ;
31173 return 0;
31174}
31175_ACEOF
31176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031177if { (ac_try="$ac_compile"
31178case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31181esac
31182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031185 grep -v '^ *+' conftest.er1 >conftest.err
31186 rm -f conftest.er1
31187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031189 (exit $ac_status); } &&
31190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31191 { (case "(($ac_try" in
31192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31193 *) ac_try_echo=$ac_try;;
31194esac
31195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31196 (eval "$ac_try") 2>&5
31197 ac_status=$?
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); }; } &&
31200 { ac_try='test -s conftest.$ac_objext'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204esac
31205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031210 ac_cv_type_pid_t=yes
31211else
31212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031213sed 's/^/| /' conftest.$ac_ext >&5
31214
Reid Spencera773bd52006-08-04 18:18:08 +000031215 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031216fi
Reid Spencera773bd52006-08-04 18:18:08 +000031217
31218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031219fi
Reid Spencera773bd52006-08-04 18:18:08 +000031220{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31221echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031222if test $ac_cv_type_pid_t = yes; then
31223 :
31224else
31225
31226cat >>confdefs.h <<_ACEOF
31227#define pid_t int
31228_ACEOF
31229
31230fi
31231
Reid Spencera773bd52006-08-04 18:18:08 +000031232{ echo "$as_me:$LINENO: checking for size_t" >&5
31233echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031234if test "${ac_cv_type_size_t+set}" = set; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31236else
31237 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031238/* confdefs.h. */
31239_ACEOF
31240cat confdefs.h >>conftest.$ac_ext
31241cat >>conftest.$ac_ext <<_ACEOF
31242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031243$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031244typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031245int
31246main ()
31247{
Reid Spencera773bd52006-08-04 18:18:08 +000031248if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031249 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031250if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031251 return 0;
31252 ;
31253 return 0;
31254}
31255_ACEOF
31256rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031257if { (ac_try="$ac_compile"
31258case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31261esac
31262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031264 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031265 grep -v '^ *+' conftest.er1 >conftest.err
31266 rm -f conftest.er1
31267 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031269 (exit $ac_status); } &&
31270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31271 { (case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31274esac
31275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_try") 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; } &&
31280 { ac_try='test -s conftest.$ac_objext'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284esac
31285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031290 ac_cv_type_size_t=yes
31291else
31292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031293sed 's/^/| /' conftest.$ac_ext >&5
31294
Reid Spencera773bd52006-08-04 18:18:08 +000031295 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031296fi
Reid Spencera773bd52006-08-04 18:18:08 +000031297
31298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031299fi
Reid Spencera773bd52006-08-04 18:18:08 +000031300{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31301echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031302if test $ac_cv_type_size_t = yes; then
31303 :
31304else
31305
31306cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031307#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031308_ACEOF
31309
31310fi
31311
Reid Spencera773bd52006-08-04 18:18:08 +000031312{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31313echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031314if test "${ac_cv_type_signal+set}" = set; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31316else
31317 cat >conftest.$ac_ext <<_ACEOF
31318/* confdefs.h. */
31319_ACEOF
31320cat confdefs.h >>conftest.$ac_ext
31321cat >>conftest.$ac_ext <<_ACEOF
31322/* end confdefs.h. */
31323#include <sys/types.h>
31324#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031325
31326int
31327main ()
31328{
Reid Spencera773bd52006-08-04 18:18:08 +000031329return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031330 ;
31331 return 0;
31332}
31333_ACEOF
31334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031335if { (ac_try="$ac_compile"
31336case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31339esac
31340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031342 ac_status=$?
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031347 (exit $ac_status); } &&
31348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31358 { ac_try='test -s conftest.$ac_objext'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031368 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031369else
31370 echo "$as_me: failed program was:" >&5
31371sed 's/^/| /' conftest.$ac_ext >&5
31372
Reid Spencera773bd52006-08-04 18:18:08 +000031373 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031374fi
Reid Spencera773bd52006-08-04 18:18:08 +000031375
31376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031377fi
Reid Spencera773bd52006-08-04 18:18:08 +000031378{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31379echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031380
31381cat >>confdefs.h <<_ACEOF
31382#define RETSIGTYPE $ac_cv_type_signal
31383_ACEOF
31384
31385
Reid Spencera773bd52006-08-04 18:18:08 +000031386{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31387echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388if test "${ac_cv_struct_tm+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391 cat >conftest.$ac_ext <<_ACEOF
31392/* confdefs.h. */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h. */
31397#include <sys/types.h>
31398#include <time.h>
31399
31400int
31401main ()
31402{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031403struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031404 ;
31405 return 0;
31406}
31407_ACEOF
31408rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031409if { (ac_try="$ac_compile"
31410case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31413esac
31414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031416 ac_status=$?
31417 grep -v '^ *+' conftest.er1 >conftest.err
31418 rm -f conftest.er1
31419 cat conftest.err >&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031421 (exit $ac_status); } &&
31422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426esac
31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; } &&
31432 { ac_try='test -s conftest.$ac_objext'
31433 { (case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31436esac
31437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_try") 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031442 ac_cv_struct_tm=time.h
31443else
31444 echo "$as_me: failed program was:" >&5
31445sed 's/^/| /' conftest.$ac_ext >&5
31446
Reid Spencera773bd52006-08-04 18:18:08 +000031447 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448fi
Reid Spencera773bd52006-08-04 18:18:08 +000031449
31450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031451fi
Reid Spencera773bd52006-08-04 18:18:08 +000031452{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31453echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454if test $ac_cv_struct_tm = sys/time.h; then
31455
31456cat >>confdefs.h <<\_ACEOF
31457#define TM_IN_SYS_TIME 1
31458_ACEOF
31459
31460fi
31461
Reid Spencera773bd52006-08-04 18:18:08 +000031462{ echo "$as_me:$LINENO: checking for int64_t" >&5
31463echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031464if test "${ac_cv_type_int64_t+set}" = set; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31466else
31467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031468/* confdefs.h. */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031473$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031474typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031475int
31476main ()
31477{
Reid Spencera773bd52006-08-04 18:18:08 +000031478if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031479 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031480if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031481 return 0;
31482 ;
31483 return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031487if { (ac_try="$ac_compile"
31488case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491esac
31492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031494 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031495 grep -v '^ *+' conftest.er1 >conftest.err
31496 rm -f conftest.er1
31497 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031499 (exit $ac_status); } &&
31500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31501 { (case "(($ac_try" in
31502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31503 *) ac_try_echo=$ac_try;;
31504esac
31505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31506 (eval "$ac_try") 2>&5
31507 ac_status=$?
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); }; } &&
31510 { ac_try='test -s conftest.$ac_objext'
31511 { (case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31514esac
31515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_try") 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031520 ac_cv_type_int64_t=yes
31521else
31522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031523sed 's/^/| /' conftest.$ac_ext >&5
31524
Reid Spencera773bd52006-08-04 18:18:08 +000031525 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031526fi
Reid Spencera773bd52006-08-04 18:18:08 +000031527
31528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031529fi
Reid Spencera773bd52006-08-04 18:18:08 +000031530{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31531echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031532if test $ac_cv_type_int64_t = yes; then
31533
31534cat >>confdefs.h <<_ACEOF
31535#define HAVE_INT64_T 1
31536_ACEOF
31537
31538
31539else
31540 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31541echo "$as_me: error: Type int64_t required but not found" >&2;}
31542 { (exit 1); exit 1; }; }
31543fi
31544
Reid Spencera773bd52006-08-04 18:18:08 +000031545{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31546echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031547if test "${ac_cv_type_uint64_t+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31549else
31550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031551/* confdefs.h. */
31552_ACEOF
31553cat confdefs.h >>conftest.$ac_ext
31554cat >>conftest.$ac_ext <<_ACEOF
31555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031556$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031557typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031558int
31559main ()
31560{
Reid Spencera773bd52006-08-04 18:18:08 +000031561if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031562 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031563if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031564 return 0;
31565 ;
31566 return 0;
31567}
31568_ACEOF
31569rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031570if { (ac_try="$ac_compile"
31571case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31574esac
31575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031578 grep -v '^ *+' conftest.er1 >conftest.err
31579 rm -f conftest.er1
31580 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031582 (exit $ac_status); } &&
31583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31584 { (case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31587esac
31588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_try") 2>&5
31590 ac_status=$?
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest.$ac_objext'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31597esac
31598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031603 ac_cv_type_uint64_t=yes
31604else
31605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031606sed 's/^/| /' conftest.$ac_ext >&5
31607
Reid Spencera773bd52006-08-04 18:18:08 +000031608 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031609fi
Reid Spencera773bd52006-08-04 18:18:08 +000031610
31611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031612fi
Reid Spencera773bd52006-08-04 18:18:08 +000031613{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31614echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031615if test $ac_cv_type_uint64_t = yes; then
31616
31617cat >>confdefs.h <<_ACEOF
31618#define HAVE_UINT64_T 1
31619_ACEOF
31620
31621
31622else
Reid Spencera773bd52006-08-04 18:18:08 +000031623 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31624echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031625if test "${ac_cv_type_u_int64_t+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627else
31628 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031629/* confdefs.h. */
31630_ACEOF
31631cat confdefs.h >>conftest.$ac_ext
31632cat >>conftest.$ac_ext <<_ACEOF
31633/* end confdefs.h. */
31634$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031635typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031636int
31637main ()
31638{
Reid Spencera773bd52006-08-04 18:18:08 +000031639if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031640 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031641if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031642 return 0;
31643 ;
31644 return 0;
31645}
31646_ACEOF
31647rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031648if { (ac_try="$ac_compile"
31649case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31652esac
31653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031656 grep -v '^ *+' conftest.er1 >conftest.err
31657 rm -f conftest.er1
31658 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031660 (exit $ac_status); } &&
31661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31662 { (case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31665esac
31666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_try") 2>&5
31668 ac_status=$?
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; } &&
31671 { ac_try='test -s conftest.$ac_objext'
31672 { (case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675esac
31676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_try") 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031681 ac_cv_type_u_int64_t=yes
31682else
31683 echo "$as_me: failed program was:" >&5
31684sed 's/^/| /' conftest.$ac_ext >&5
31685
Reid Spencera773bd52006-08-04 18:18:08 +000031686 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031687fi
Reid Spencera773bd52006-08-04 18:18:08 +000031688
31689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031690fi
Reid Spencera773bd52006-08-04 18:18:08 +000031691{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31692echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031693if test $ac_cv_type_u_int64_t = yes; then
31694
31695cat >>confdefs.h <<_ACEOF
31696#define HAVE_U_INT64_T 1
31697_ACEOF
31698
31699
Misha Brukmanceca9042004-09-02 23:02:30 +000031700else
31701 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31702echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31703 { (exit 1); exit 1; }; }
31704fi
31705
John Criswell679ff312004-09-02 18:44:44 +000031706fi
31707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708
31709
31710
31711
31712
31713
31714
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031715
31716
Reid Spencerdf3be822006-01-23 08:15:53 +000031717for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031718do
31719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031723 echo $ECHO_N "(cached) $ECHO_C" >&6
31724else
31725 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031726/* confdefs.h. */
31727_ACEOF
31728cat confdefs.h >>conftest.$ac_ext
31729cat >>conftest.$ac_ext <<_ACEOF
31730/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31733#define $ac_func innocuous_$ac_func
31734
31735/* System header to define __stub macros and hopefully few prototypes,
31736 which can conflict with char $ac_func (); below.
31737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738 <limits.h> exists even on freestanding compilers. */
31739
31740#ifdef __STDC__
31741# include <limits.h>
31742#else
31743# include <assert.h>
31744#endif
31745
31746#undef $ac_func
31747
Reid Spencera773bd52006-08-04 18:18:08 +000031748/* Override any GCC internal prototype to avoid an error.
31749 Use char because int might match the return type of a GCC
31750 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031751#ifdef __cplusplus
31752extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031754char $ac_func ();
31755/* The GNU C library defines this for functions which it implements
31756 to always fail with ENOSYS. Some functions are actually named
31757 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031758#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031759choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031760#endif
John Criswell7a73b802003-06-30 21:59:07 +000031761
John Criswell7a73b802003-06-30 21:59:07 +000031762int
31763main ()
31764{
Reid Spencera773bd52006-08-04 18:18:08 +000031765return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031766 ;
31767 return 0;
31768}
31769_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031771if { (ac_try="$ac_link"
31772case "(($ac_try" in
31773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774 *) ac_try_echo=$ac_try;;
31775esac
31776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031779 grep -v '^ *+' conftest.er1 >conftest.err
31780 rm -f conftest.er1
31781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031783 (exit $ac_status); } &&
31784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31785 { (case "(($ac_try" in
31786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787 *) ac_try_echo=$ac_try;;
31788esac
31789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790 (eval "$ac_try") 2>&5
31791 ac_status=$?
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; } &&
31794 { ac_try='test -s conftest$ac_exeext'
31795 { (case "(($ac_try" in
31796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797 *) ac_try_echo=$ac_try;;
31798esac
31799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800 (eval "$ac_try") 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031804 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031805else
31806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031807sed 's/^/| /' conftest.$ac_ext >&5
31808
Reid Spencera773bd52006-08-04 18:18:08 +000031809 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031810fi
Reid Spencera773bd52006-08-04 18:18:08 +000031811
Bill Wendlingebcceee2009-04-18 11:20:33 +000031812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031813 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031814fi
Reid Spencera773bd52006-08-04 18:18:08 +000031815ac_res=`eval echo '${'$as_ac_var'}'`
31816 { echo "$as_me:$LINENO: result: $ac_res" >&5
31817echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031818if test `eval echo '${'$as_ac_var'}'` = yes; then
31819 cat >>confdefs.h <<_ACEOF
31820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031821_ACEOF
31822
31823fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031824done
John Criswell7a73b802003-06-30 21:59:07 +000031825
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031826
31827
31828
Reid Spencer6af3d262004-12-15 04:01:48 +000031829
Reid Spencer96cf5872007-07-13 10:05:30 +000031830for ac_func in powf fmodf strtof round
31831do
31832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31837else
31838 cat >conftest.$ac_ext <<_ACEOF
31839/* confdefs.h. */
31840_ACEOF
31841cat confdefs.h >>conftest.$ac_ext
31842cat >>conftest.$ac_ext <<_ACEOF
31843/* end confdefs.h. */
31844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31846#define $ac_func innocuous_$ac_func
31847
31848/* System header to define __stub macros and hopefully few prototypes,
31849 which can conflict with char $ac_func (); below.
31850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31851 <limits.h> exists even on freestanding compilers. */
31852
31853#ifdef __STDC__
31854# include <limits.h>
31855#else
31856# include <assert.h>
31857#endif
31858
31859#undef $ac_func
31860
31861/* Override any GCC internal prototype to avoid an error.
31862 Use char because int might match the return type of a GCC
31863 builtin and then its argument prototype would still apply. */
31864#ifdef __cplusplus
31865extern "C"
31866#endif
31867char $ac_func ();
31868/* The GNU C library defines this for functions which it implements
31869 to always fail with ENOSYS. Some functions are actually named
31870 something starting with __ and the normal name is an alias. */
31871#if defined __stub_$ac_func || defined __stub___$ac_func
31872choke me
31873#endif
31874
31875int
31876main ()
31877{
31878return $ac_func ();
31879 ;
31880 return 0;
31881}
31882_ACEOF
31883rm -f conftest.$ac_objext conftest$ac_exeext
31884if { (ac_try="$ac_link"
31885case "(($ac_try" in
31886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887 *) ac_try_echo=$ac_try;;
31888esac
31889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890 (eval "$ac_link") 2>conftest.er1
31891 ac_status=$?
31892 grep -v '^ *+' conftest.er1 >conftest.err
31893 rm -f conftest.er1
31894 cat conftest.err >&5
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031896 (exit $ac_status); } &&
31897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31898 { (case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31901esac
31902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_try") 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031917 eval "$as_ac_var=yes"
31918else
31919 echo "$as_me: failed program was:" >&5
31920sed 's/^/| /' conftest.$ac_ext >&5
31921
31922 eval "$as_ac_var=no"
31923fi
31924
Bill Wendlingebcceee2009-04-18 11:20:33 +000031925rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031926 conftest$ac_exeext conftest.$ac_ext
31927fi
31928ac_res=`eval echo '${'$as_ac_var'}'`
31929 { echo "$as_me:$LINENO: result: $ac_res" >&5
31930echo "${ECHO_T}$ac_res" >&6; }
31931if test `eval echo '${'$as_ac_var'}'` = yes; then
31932 cat >>confdefs.h <<_ACEOF
31933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31934_ACEOF
31935
31936fi
31937done
31938
31939
31940
31941
31942
Reid Spencer6af3d262004-12-15 04:01:48 +000031943
Reid Spencerb90645c2007-02-16 19:17:20 +000031944for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31945do
31946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951else
31952 cat >conftest.$ac_ext <<_ACEOF
31953/* confdefs.h. */
31954_ACEOF
31955cat confdefs.h >>conftest.$ac_ext
31956cat >>conftest.$ac_ext <<_ACEOF
31957/* end confdefs.h. */
31958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31960#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031961
Reid Spencerb90645c2007-02-16 19:17:20 +000031962/* System header to define __stub macros and hopefully few prototypes,
31963 which can conflict with char $ac_func (); below.
31964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965 <limits.h> exists even on freestanding compilers. */
31966
31967#ifdef __STDC__
31968# include <limits.h>
31969#else
31970# include <assert.h>
31971#endif
31972
31973#undef $ac_func
31974
31975/* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31978#ifdef __cplusplus
31979extern "C"
31980#endif
31981char $ac_func ();
31982/* The GNU C library defines this for functions which it implements
31983 to always fail with ENOSYS. Some functions are actually named
31984 something starting with __ and the normal name is an alias. */
31985#if defined __stub_$ac_func || defined __stub___$ac_func
31986choke me
31987#endif
31988
31989int
31990main ()
31991{
31992return $ac_func ();
31993 ;
31994 return 0;
31995}
31996_ACEOF
31997rm -f conftest.$ac_objext conftest$ac_exeext
31998if { (ac_try="$ac_link"
31999case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002esac
32003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
32005 ac_status=$?
32006 grep -v '^ *+' conftest.er1 >conftest.err
32007 rm -f conftest.er1
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32025esac
32026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032031 eval "$as_ac_var=yes"
32032else
32033 echo "$as_me: failed program was:" >&5
32034sed 's/^/| /' conftest.$ac_ext >&5
32035
32036 eval "$as_ac_var=no"
32037fi
32038
Bill Wendlingebcceee2009-04-18 11:20:33 +000032039rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032040 conftest$ac_exeext conftest.$ac_ext
32041fi
32042ac_res=`eval echo '${'$as_ac_var'}'`
32043 { echo "$as_me:$LINENO: result: $ac_res" >&5
32044echo "${ECHO_T}$ac_res" >&6; }
32045if test `eval echo '${'$as_ac_var'}'` = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32048_ACEOF
32049
32050fi
32051done
32052
32053
32054
32055
32056for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032057do
32058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032059{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32061if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032062 echo $ECHO_N "(cached) $ECHO_C" >&6
32063else
32064 cat >conftest.$ac_ext <<_ACEOF
32065/* confdefs.h. */
32066_ACEOF
32067cat confdefs.h >>conftest.$ac_ext
32068cat >>conftest.$ac_ext <<_ACEOF
32069/* end confdefs.h. */
32070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32072#define $ac_func innocuous_$ac_func
32073
32074/* System header to define __stub macros and hopefully few prototypes,
32075 which can conflict with char $ac_func (); below.
32076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32077 <limits.h> exists even on freestanding compilers. */
32078
32079#ifdef __STDC__
32080# include <limits.h>
32081#else
32082# include <assert.h>
32083#endif
32084
32085#undef $ac_func
32086
Reid Spencera773bd52006-08-04 18:18:08 +000032087/* Override any GCC internal prototype to avoid an error.
32088 Use char because int might match the return type of a GCC
32089 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032090#ifdef __cplusplus
32091extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032092#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032093char $ac_func ();
32094/* The GNU C library defines this for functions which it implements
32095 to always fail with ENOSYS. Some functions are actually named
32096 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032097#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032098choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032099#endif
32100
32101int
32102main ()
32103{
Reid Spencera773bd52006-08-04 18:18:08 +000032104return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032105 ;
32106 return 0;
32107}
32108_ACEOF
32109rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032110if { (ac_try="$ac_link"
32111case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032117 ac_status=$?
32118 grep -v '^ *+' conftest.er1 >conftest.err
32119 rm -f conftest.er1
32120 cat conftest.err >&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032122 (exit $ac_status); } &&
32123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32127esac
32128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; } &&
32133 { ac_try='test -s conftest$ac_exeext'
32134 { (case "(($ac_try" in
32135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32137esac
32138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 (eval "$ac_try") 2>&5
32140 ac_status=$?
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032143 eval "$as_ac_var=yes"
32144else
32145 echo "$as_me: failed program was:" >&5
32146sed 's/^/| /' conftest.$ac_ext >&5
32147
Reid Spencera773bd52006-08-04 18:18:08 +000032148 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032149fi
Reid Spencera773bd52006-08-04 18:18:08 +000032150
Bill Wendlingebcceee2009-04-18 11:20:33 +000032151rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032152 conftest$ac_exeext conftest.$ac_ext
32153fi
Reid Spencera773bd52006-08-04 18:18:08 +000032154ac_res=`eval echo '${'$as_ac_var'}'`
32155 { echo "$as_me:$LINENO: result: $ac_res" >&5
32156echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032157if test `eval echo '${'$as_ac_var'}'` = yes; then
32158 cat >>confdefs.h <<_ACEOF
32159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32160_ACEOF
32161
32162fi
32163done
32164
32165
32166
32167
32168
32169
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032170for ac_func in mktemp realpath sbrk setrlimit strdup
32171do
32172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32173{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32177else
32178 cat >conftest.$ac_ext <<_ACEOF
32179/* confdefs.h. */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h. */
32184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32186#define $ac_func innocuous_$ac_func
32187
32188/* System header to define __stub macros and hopefully few prototypes,
32189 which can conflict with char $ac_func (); below.
32190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32191 <limits.h> exists even on freestanding compilers. */
32192
32193#ifdef __STDC__
32194# include <limits.h>
32195#else
32196# include <assert.h>
32197#endif
32198
32199#undef $ac_func
32200
32201/* Override any GCC internal prototype to avoid an error.
32202 Use char because int might match the return type of a GCC
32203 builtin and then its argument prototype would still apply. */
32204#ifdef __cplusplus
32205extern "C"
32206#endif
32207char $ac_func ();
32208/* The GNU C library defines this for functions which it implements
32209 to always fail with ENOSYS. Some functions are actually named
32210 something starting with __ and the normal name is an alias. */
32211#if defined __stub_$ac_func || defined __stub___$ac_func
32212choke me
32213#endif
32214
32215int
32216main ()
32217{
32218return $ac_func ();
32219 ;
32220 return 0;
32221}
32222_ACEOF
32223rm -f conftest.$ac_objext conftest$ac_exeext
32224if { (ac_try="$ac_link"
32225case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32228esac
32229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_link") 2>conftest.er1
32231 ac_status=$?
32232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
32237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32238 { (case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32241esac
32242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_try") 2>&5
32244 ac_status=$?
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; } &&
32247 { ac_try='test -s conftest$ac_exeext'
32248 { (case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32251esac
32252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253 (eval "$ac_try") 2>&5
32254 ac_status=$?
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; }; then
32257 eval "$as_ac_var=yes"
32258else
32259 echo "$as_me: failed program was:" >&5
32260sed 's/^/| /' conftest.$ac_ext >&5
32261
32262 eval "$as_ac_var=no"
32263fi
32264
32265rm -f core conftest.err conftest.$ac_objext \
32266 conftest$ac_exeext conftest.$ac_ext
32267fi
32268ac_res=`eval echo '${'$as_ac_var'}'`
32269 { echo "$as_me:$LINENO: result: $ac_res" >&5
32270echo "${ECHO_T}$ac_res" >&6; }
32271if test `eval echo '${'$as_ac_var'}'` = yes; then
32272 cat >>confdefs.h <<_ACEOF
32273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32274_ACEOF
32275
32276fi
32277done
Reid Spencerdf3be822006-01-23 08:15:53 +000032278
32279
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032280
32281
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032282
32283for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032284do
32285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032289 echo $ECHO_N "(cached) $ECHO_C" >&6
32290else
32291 cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h. */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h. */
32297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32299#define $ac_func innocuous_$ac_func
32300
32301/* System header to define __stub macros and hopefully few prototypes,
32302 which can conflict with char $ac_func (); below.
32303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32304 <limits.h> exists even on freestanding compilers. */
32305
32306#ifdef __STDC__
32307# include <limits.h>
32308#else
32309# include <assert.h>
32310#endif
32311
32312#undef $ac_func
32313
Reid Spencera773bd52006-08-04 18:18:08 +000032314/* Override any GCC internal prototype to avoid an error.
32315 Use char because int might match the return type of a GCC
32316 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032317#ifdef __cplusplus
32318extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032319#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032320char $ac_func ();
32321/* The GNU C library defines this for functions which it implements
32322 to always fail with ENOSYS. Some functions are actually named
32323 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032324#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032325choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032326#endif
32327
32328int
32329main ()
32330{
Reid Spencera773bd52006-08-04 18:18:08 +000032331return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032332 ;
32333 return 0;
32334}
32335_ACEOF
32336rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032337if { (ac_try="$ac_link"
32338case "(($ac_try" in
32339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340 *) ac_try_echo=$ac_try;;
32341esac
32342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032344 ac_status=$?
32345 grep -v '^ *+' conftest.er1 >conftest.err
32346 rm -f conftest.er1
32347 cat conftest.err >&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032349 (exit $ac_status); } &&
32350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32351 { (case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32354esac
32355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_try") 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest$ac_exeext'
32361 { (case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364esac
32365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_try") 2>&5
32367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032370 eval "$as_ac_var=yes"
32371else
32372 echo "$as_me: failed program was:" >&5
32373sed 's/^/| /' conftest.$ac_ext >&5
32374
Reid Spencera773bd52006-08-04 18:18:08 +000032375 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032376fi
Reid Spencera773bd52006-08-04 18:18:08 +000032377
Bill Wendlingebcceee2009-04-18 11:20:33 +000032378rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032379 conftest$ac_exeext conftest.$ac_ext
32380fi
Reid Spencera773bd52006-08-04 18:18:08 +000032381ac_res=`eval echo '${'$as_ac_var'}'`
32382 { echo "$as_me:$LINENO: result: $ac_res" >&5
32383echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032384if test `eval echo '${'$as_ac_var'}'` = yes; then
32385 cat >>confdefs.h <<_ACEOF
32386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32387_ACEOF
32388
32389fi
32390done
32391
32392
Reid Spencerba46ca32004-12-31 05:49:15 +000032393
32394
Chris Lattner0b142592005-11-14 06:57:34 +000032395
Chris Lattner511f11d2005-11-14 07:25:50 +000032396for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032397do
32398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032405/* confdefs.h. */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412#define $ac_func innocuous_$ac_func
32413
32414/* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char $ac_func (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
32418
32419#ifdef __STDC__
32420# include <limits.h>
32421#else
32422# include <assert.h>
32423#endif
32424
32425#undef $ac_func
32426
Reid Spencera773bd52006-08-04 18:18:08 +000032427/* Override any GCC internal prototype to avoid an error.
32428 Use char because int might match the return type of a GCC
32429 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032430#ifdef __cplusplus
32431extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032432#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032433char $ac_func ();
32434/* The GNU C library defines this for functions which it implements
32435 to always fail with ENOSYS. Some functions are actually named
32436 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032437#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032438choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032439#endif
John Criswell7a73b802003-06-30 21:59:07 +000032440
John Criswell7a73b802003-06-30 21:59:07 +000032441int
32442main ()
32443{
Reid Spencera773bd52006-08-04 18:18:08 +000032444return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032445 ;
32446 return 0;
32447}
32448_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032449rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032450if { (ac_try="$ac_link"
32451case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32454esac
32455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032462 (exit $ac_status); } &&
32463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32464 { (case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32467esac
32468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_try") 2>&5
32470 ac_status=$?
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
32474 { (case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32477esac
32478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_try") 2>&5
32480 ac_status=$?
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032483 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032484else
32485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032486sed 's/^/| /' conftest.$ac_ext >&5
32487
Reid Spencera773bd52006-08-04 18:18:08 +000032488 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032489fi
Reid Spencera773bd52006-08-04 18:18:08 +000032490
Bill Wendlingebcceee2009-04-18 11:20:33 +000032491rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032492 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032493fi
Reid Spencera773bd52006-08-04 18:18:08 +000032494ac_res=`eval echo '${'$as_ac_var'}'`
32495 { echo "$as_me:$LINENO: result: $ac_res" >&5
32496echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032497if test `eval echo '${'$as_ac_var'}'` = yes; then
32498 cat >>confdefs.h <<_ACEOF
32499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032500_ACEOF
32501
32502fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032503done
John Criswell7a73b802003-06-30 21:59:07 +000032504
Reid Spencercdb08a32006-06-05 16:11:07 +000032505
32506
32507
32508
Reid Spencerafa22e22006-12-10 23:29:19 +000032509for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032510do
32511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032515 echo $ECHO_N "(cached) $ECHO_C" >&6
32516else
32517 cat >conftest.$ac_ext <<_ACEOF
32518/* confdefs.h. */
32519_ACEOF
32520cat confdefs.h >>conftest.$ac_ext
32521cat >>conftest.$ac_ext <<_ACEOF
32522/* end confdefs.h. */
32523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32525#define $ac_func innocuous_$ac_func
32526
32527/* System header to define __stub macros and hopefully few prototypes,
32528 which can conflict with char $ac_func (); below.
32529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32530 <limits.h> exists even on freestanding compilers. */
32531
32532#ifdef __STDC__
32533# include <limits.h>
32534#else
32535# include <assert.h>
32536#endif
32537
32538#undef $ac_func
32539
Reid Spencera773bd52006-08-04 18:18:08 +000032540/* Override any GCC internal prototype to avoid an error.
32541 Use char because int might match the return type of a GCC
32542 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032543#ifdef __cplusplus
32544extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032545#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032546char $ac_func ();
32547/* The GNU C library defines this for functions which it implements
32548 to always fail with ENOSYS. Some functions are actually named
32549 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032550#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032551choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032552#endif
32553
32554int
32555main ()
32556{
Reid Spencera773bd52006-08-04 18:18:08 +000032557return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032558 ;
32559 return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032563if { (ac_try="$ac_link"
32564case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32567esac
32568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032570 ac_status=$?
32571 grep -v '^ *+' conftest.er1 >conftest.err
32572 rm -f conftest.er1
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032575 (exit $ac_status); } &&
32576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32577 { (case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32580esac
32581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_try") 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; } &&
32586 { ac_try='test -s conftest$ac_exeext'
32587 { (case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590esac
32591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_try") 2>&5
32593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032596 eval "$as_ac_var=yes"
32597else
32598 echo "$as_me: failed program was:" >&5
32599sed 's/^/| /' conftest.$ac_ext >&5
32600
Reid Spencera773bd52006-08-04 18:18:08 +000032601 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032602fi
Reid Spencera773bd52006-08-04 18:18:08 +000032603
Bill Wendlingebcceee2009-04-18 11:20:33 +000032604rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032605 conftest$ac_exeext conftest.$ac_ext
32606fi
Reid Spencera773bd52006-08-04 18:18:08 +000032607ac_res=`eval echo '${'$as_ac_var'}'`
32608 { echo "$as_me:$LINENO: result: $ac_res" >&5
32609echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032610if test `eval echo '${'$as_ac_var'}'` = yes; then
32611 cat >>confdefs.h <<_ACEOF
32612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32613_ACEOF
32614
32615fi
32616done
32617
Reid Spencera773bd52006-08-04 18:18:08 +000032618{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32619echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032620if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032623 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032624ac_cpp='$CPP $CPPFLAGS'
32625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_c_compiler_gnu
32628
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032629 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032630 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032631else
32632 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032633
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032634 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032635_ACEOF
32636cat confdefs.h >>conftest.$ac_ext
32637cat >>conftest.$ac_ext <<_ACEOF
32638/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032639
John Criswella0137d32003-10-13 16:22:01 +000032640#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032641#include <stdlib.h>
32642
John Criswella0137d32003-10-13 16:22:01 +000032643int
32644main ()
32645{
32646
Reid Spencer2706f8c2004-09-19 23:53:36 +000032647volatile double A, B;
32648char Buffer[100];
32649A = 1;
32650A /= 10.0;
32651sprintf(Buffer, "%a", A);
32652B = atof(Buffer);
32653if (A != B)
32654 return (1);
32655if (A != 0x1.999999999999ap-4)
32656 return (1);
32657return (0);
John Criswella0137d32003-10-13 16:22:01 +000032658 ;
32659 return 0;
32660}
32661_ACEOF
32662rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032663if { (ac_try="$ac_link"
32664case "(($ac_try" in
32665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666 *) ac_try_echo=$ac_try;;
32667esac
32668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32669 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032670 ac_status=$?
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032673 { (case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32676esac
32677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032679 ac_status=$?
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032682 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032683else
32684 echo "$as_me: program exited with status $ac_status" >&5
32685echo "$as_me: failed program was:" >&5
32686sed 's/^/| /' conftest.$ac_ext >&5
32687
32688( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032689llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032690fi
Reid Spencera773bd52006-08-04 18:18:08 +000032691rm -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 +000032692fi
Reid Spencera773bd52006-08-04 18:18:08 +000032693
32694
Reid Spencer2706f8c2004-09-19 23:53:36 +000032695 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032696ac_cpp='$CPP $CPPFLAGS'
32697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699ac_compiler_gnu=$ac_cv_c_compiler_gnu
32700
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032701fi
Reid Spencera773bd52006-08-04 18:18:08 +000032702{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32703echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032704 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032705
32706cat >>confdefs.h <<\_ACEOF
32707#define HAVE_PRINTF_A 1
32708_ACEOF
32709
Reid Spencer2706f8c2004-09-19 23:53:36 +000032710 fi
John Criswella0137d32003-10-13 16:22:01 +000032711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032712# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32713# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032714{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32715echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032716if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718else
John Criswell0021c312004-02-13 21:57:29 +000032719 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032720/* confdefs.h. */
32721_ACEOF
32722cat confdefs.h >>conftest.$ac_ext
32723cat >>conftest.$ac_ext <<_ACEOF
32724/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032725#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032726int
32727main ()
32728{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032729char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032730 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032731 ;
32732 return 0;
32733}
32734_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032736if { (ac_try="$ac_link"
32737case "(($ac_try" in
32738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739 *) ac_try_echo=$ac_try;;
32740esac
32741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032744 grep -v '^ *+' conftest.er1 >conftest.err
32745 rm -f conftest.er1
32746 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32750 { (case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32753esac
32754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_try") 2>&5
32756 ac_status=$?
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest$ac_exeext'
32760 { (case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32763esac
32764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_try") 2>&5
32766 ac_status=$?
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032769 ac_cv_working_alloca_h=yes
32770else
32771 echo "$as_me: failed program was:" >&5
32772sed 's/^/| /' conftest.$ac_ext >&5
32773
Reid Spencera773bd52006-08-04 18:18:08 +000032774 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032775fi
Reid Spencera773bd52006-08-04 18:18:08 +000032776
Bill Wendlingebcceee2009-04-18 11:20:33 +000032777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032778 conftest$ac_exeext conftest.$ac_ext
32779fi
Reid Spencera773bd52006-08-04 18:18:08 +000032780{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32781echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032782if test $ac_cv_working_alloca_h = yes; then
32783
32784cat >>confdefs.h <<\_ACEOF
32785#define HAVE_ALLOCA_H 1
32786_ACEOF
32787
32788fi
32789
Reid Spencera773bd52006-08-04 18:18:08 +000032790{ echo "$as_me:$LINENO: checking for alloca" >&5
32791echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032792if test "${ac_cv_func_alloca_works+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32794else
32795 cat >conftest.$ac_ext <<_ACEOF
32796/* confdefs.h. */
32797_ACEOF
32798cat confdefs.h >>conftest.$ac_ext
32799cat >>conftest.$ac_ext <<_ACEOF
32800/* end confdefs.h. */
32801#ifdef __GNUC__
32802# define alloca __builtin_alloca
32803#else
32804# ifdef _MSC_VER
32805# include <malloc.h>
32806# define alloca _alloca
32807# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032808# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032809# include <alloca.h>
32810# else
32811# ifdef _AIX
32812 #pragma alloca
32813# else
32814# ifndef alloca /* predefined by HP cc +Olibcalls */
32815char *alloca ();
32816# endif
32817# endif
32818# endif
32819# endif
32820#endif
32821
32822int
32823main ()
32824{
32825char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032826 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032827 ;
32828 return 0;
32829}
32830_ACEOF
32831rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032832if { (ac_try="$ac_link"
32833case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032839 ac_status=$?
32840 grep -v '^ *+' conftest.er1 >conftest.err
32841 rm -f conftest.er1
32842 cat conftest.err >&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032844 (exit $ac_status); } &&
32845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32846 { (case "(($ac_try" in
32847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32849esac
32850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_try") 2>&5
32852 ac_status=$?
32853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); }; } &&
32855 { ac_try='test -s conftest$ac_exeext'
32856 { (case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859esac
32860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_try") 2>&5
32862 ac_status=$?
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032865 ac_cv_func_alloca_works=yes
32866else
32867 echo "$as_me: failed program was:" >&5
32868sed 's/^/| /' conftest.$ac_ext >&5
32869
Reid Spencera773bd52006-08-04 18:18:08 +000032870 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032871fi
Reid Spencera773bd52006-08-04 18:18:08 +000032872
Bill Wendlingebcceee2009-04-18 11:20:33 +000032873rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032874 conftest$ac_exeext conftest.$ac_ext
32875fi
Reid Spencera773bd52006-08-04 18:18:08 +000032876{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32877echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032878
32879if test $ac_cv_func_alloca_works = yes; then
32880
32881cat >>confdefs.h <<\_ACEOF
32882#define HAVE_ALLOCA 1
32883_ACEOF
32884
32885else
32886 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32887# that cause trouble. Some versions do not even contain alloca or
32888# contain a buggy version. If you still want to use their alloca,
32889# use ar to extract alloca.o from them instead of compiling alloca.c.
32890
Reid Spencera773bd52006-08-04 18:18:08 +000032891ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032892
32893cat >>confdefs.h <<\_ACEOF
32894#define C_ALLOCA 1
32895_ACEOF
32896
32897
Reid Spencera773bd52006-08-04 18:18:08 +000032898{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32899echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032900if test "${ac_cv_os_cray+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32902else
32903 cat >conftest.$ac_ext <<_ACEOF
32904/* confdefs.h. */
32905_ACEOF
32906cat confdefs.h >>conftest.$ac_ext
32907cat >>conftest.$ac_ext <<_ACEOF
32908/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032909#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032910webecray
32911#else
32912wenotbecray
32913#endif
32914
32915_ACEOF
32916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32917 $EGREP "webecray" >/dev/null 2>&1; then
32918 ac_cv_os_cray=yes
32919else
32920 ac_cv_os_cray=no
32921fi
32922rm -f conftest*
32923
32924fi
Reid Spencera773bd52006-08-04 18:18:08 +000032925{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32926echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032927if test $ac_cv_os_cray = yes; then
32928 for ac_func in _getb67 GETB67 getb67; do
32929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934else
32935 cat >conftest.$ac_ext <<_ACEOF
32936/* confdefs.h. */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h. */
32941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32943#define $ac_func innocuous_$ac_func
32944
32945/* System header to define __stub macros and hopefully few prototypes,
32946 which can conflict with char $ac_func (); below.
32947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32948 <limits.h> exists even on freestanding compilers. */
32949
32950#ifdef __STDC__
32951# include <limits.h>
32952#else
32953# include <assert.h>
32954#endif
32955
32956#undef $ac_func
32957
Reid Spencera773bd52006-08-04 18:18:08 +000032958/* Override any GCC internal prototype to avoid an error.
32959 Use char because int might match the return type of a GCC
32960 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032961#ifdef __cplusplus
32962extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032963#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032964char $ac_func ();
32965/* The GNU C library defines this for functions which it implements
32966 to always fail with ENOSYS. Some functions are actually named
32967 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032968#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032969choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032970#endif
32971
32972int
32973main ()
32974{
Reid Spencera773bd52006-08-04 18:18:08 +000032975return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032976 ;
32977 return 0;
32978}
32979_ACEOF
32980rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032981if { (ac_try="$ac_link"
32982case "(($ac_try" in
32983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984 *) ac_try_echo=$ac_try;;
32985esac
32986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032988 ac_status=$?
32989 grep -v '^ *+' conftest.er1 >conftest.err
32990 rm -f conftest.er1
32991 cat conftest.err >&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032993 (exit $ac_status); } &&
32994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32995 { (case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32998esac
32999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_try") 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest$ac_exeext'
33005 { (case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008esac
33009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_try") 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033014 eval "$as_ac_var=yes"
33015else
33016 echo "$as_me: failed program was:" >&5
33017sed 's/^/| /' conftest.$ac_ext >&5
33018
Reid Spencera773bd52006-08-04 18:18:08 +000033019 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033020fi
Reid Spencera773bd52006-08-04 18:18:08 +000033021
Bill Wendlingebcceee2009-04-18 11:20:33 +000033022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033023 conftest$ac_exeext conftest.$ac_ext
33024fi
Reid Spencera773bd52006-08-04 18:18:08 +000033025ac_res=`eval echo '${'$as_ac_var'}'`
33026 { echo "$as_me:$LINENO: result: $ac_res" >&5
33027echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033028if test `eval echo '${'$as_ac_var'}'` = yes; then
33029
33030cat >>confdefs.h <<_ACEOF
33031#define CRAY_STACKSEG_END $ac_func
33032_ACEOF
33033
33034 break
33035fi
33036
33037 done
33038fi
33039
Reid Spencera773bd52006-08-04 18:18:08 +000033040{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33041echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033042if test "${ac_cv_c_stack_direction+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33044else
33045 if test "$cross_compiling" = yes; then
33046 ac_cv_c_stack_direction=0
33047else
33048 cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h. */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033054$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033055int
33056find_stack_direction ()
33057{
33058 static char *addr = 0;
33059 auto char dummy;
33060 if (addr == 0)
33061 {
33062 addr = &dummy;
33063 return find_stack_direction ();
33064 }
John Criswell0021c312004-02-13 21:57:29 +000033065 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066 return (&dummy > addr) ? 1 : -1;
33067}
John Criswell0021c312004-02-13 21:57:29 +000033068
John Criswell0021c312004-02-13 21:57:29 +000033069int
33070main ()
33071{
Reid Spencera773bd52006-08-04 18:18:08 +000033072 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033073}
33074_ACEOF
33075rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033076if { (ac_try="$ac_link"
33077case "(($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_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033083 ac_status=$?
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033086 { (case "(($ac_try" in
33087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33088 *) ac_try_echo=$ac_try;;
33089esac
33090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33091 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033092 ac_status=$?
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033095 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033096else
33097 echo "$as_me: program exited with status $ac_status" >&5
33098echo "$as_me: failed program was:" >&5
33099sed 's/^/| /' conftest.$ac_ext >&5
33100
33101( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033102ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033103fi
Reid Spencera773bd52006-08-04 18:18:08 +000033104rm -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 +000033105fi
Reid Spencera773bd52006-08-04 18:18:08 +000033106
33107
John Criswell0021c312004-02-13 21:57:29 +000033108fi
Reid Spencera773bd52006-08-04 18:18:08 +000033109{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33110echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033111
33112cat >>confdefs.h <<_ACEOF
33113#define STACK_DIRECTION $ac_cv_c_stack_direction
33114_ACEOF
33115
33116
John Criswell0021c312004-02-13 21:57:29 +000033117fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033118
33119
Reid Spencera773bd52006-08-04 18:18:08 +000033120{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33121echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033122if test "${ac_cv_func_rand48+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33124else
Reid Spencera773bd52006-08-04 18:18:08 +000033125 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033126ac_cpp='$CXXCPP $CPPFLAGS'
33127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33130
33131 cat >conftest.$ac_ext <<_ACEOF
33132/* confdefs.h. */
33133_ACEOF
33134cat confdefs.h >>conftest.$ac_ext
33135cat >>conftest.$ac_ext <<_ACEOF
33136/* end confdefs.h. */
33137#include <stdlib.h>
33138int
33139main ()
33140{
33141srand48(0);lrand48();drand48();
33142 ;
33143 return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033147if { (ac_try="$ac_compile"
33148case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33151esac
33152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033154 ac_status=$?
33155 grep -v '^ *+' conftest.er1 >conftest.err
33156 rm -f conftest.er1
33157 cat conftest.err >&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033159 (exit $ac_status); } &&
33160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33161 { (case "(($ac_try" in
33162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33163 *) ac_try_echo=$ac_try;;
33164esac
33165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33166 (eval "$ac_try") 2>&5
33167 ac_status=$?
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); }; } &&
33170 { ac_try='test -s conftest.$ac_objext'
33171 { (case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174esac
33175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_try") 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033180 ac_cv_func_rand48=yes
33181else
33182 echo "$as_me: failed program was:" >&5
33183sed 's/^/| /' conftest.$ac_ext >&5
33184
Reid Spencera773bd52006-08-04 18:18:08 +000033185 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033186fi
Reid Spencera773bd52006-08-04 18:18:08 +000033187
33188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033189 ac_ext=c
33190ac_cpp='$CPP $CPPFLAGS'
33191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193ac_compiler_gnu=$ac_cv_c_compiler_gnu
33194
33195fi
Reid Spencera773bd52006-08-04 18:18:08 +000033196{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33197echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033198
33199if test "$ac_cv_func_rand48" = "yes" ; then
33200
33201cat >>confdefs.h <<\_ACEOF
33202#define HAVE_RAND48 1
33203_ACEOF
33204
33205fi
John Criswell0021c312004-02-13 21:57:29 +000033206
33207
Reid Spencera773bd52006-08-04 18:18:08 +000033208{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33209echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033210if test "${ac_cv_cxx_namespaces+set}" = set; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
33212else
Reid Spencera773bd52006-08-04 18:18:08 +000033213 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033214ac_cpp='$CXXCPP $CPPFLAGS'
33215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33218
33219 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033220/* confdefs.h. */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033225namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033226int
33227main ()
33228{
33229using namespace Outer::Inner; return i;
33230 ;
33231 return 0;
33232}
33233_ACEOF
33234rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033235if { (ac_try="$ac_compile"
33236case "(($ac_try" in
33237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238 *) ac_try_echo=$ac_try;;
33239esac
33240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033243 grep -v '^ *+' conftest.er1 >conftest.err
33244 rm -f conftest.er1
33245 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033247 (exit $ac_status); } &&
33248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33249 { (case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33252esac
33253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_try") 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest.$ac_objext'
33259 { (case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_try") 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033268 ac_cv_cxx_namespaces=yes
33269else
33270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033271sed 's/^/| /' conftest.$ac_ext >&5
33272
Reid Spencera773bd52006-08-04 18:18:08 +000033273 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033274fi
Reid Spencera773bd52006-08-04 18:18:08 +000033275
33276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033277 ac_ext=c
33278ac_cpp='$CPP $CPPFLAGS'
33279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33281ac_compiler_gnu=$ac_cv_c_compiler_gnu
33282
33283
33284fi
Reid Spencera773bd52006-08-04 18:18:08 +000033285{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33286echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033287if test "$ac_cv_cxx_namespaces" = yes; then
33288
33289cat >>confdefs.h <<\_ACEOF
33290#define HAVE_NAMESPACES
33291_ACEOF
33292
33293fi
33294
Reid Spencera773bd52006-08-04 18:18:08 +000033295{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33296echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033297if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33298 echo $ECHO_N "(cached) $ECHO_C" >&6
33299else
33300
Reid Spencera773bd52006-08-04 18:18:08 +000033301 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033302ac_cpp='$CXXCPP $CPPFLAGS'
33303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33306
33307 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033308/* confdefs.h. */
33309_ACEOF
33310cat confdefs.h >>conftest.$ac_ext
33311cat >>conftest.$ac_ext <<_ACEOF
33312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033313#include <iterator>
33314#ifdef HAVE_NAMESPACES
33315using namespace std;
33316#endif
John Criswell7a73b802003-06-30 21:59:07 +000033317int
33318main ()
33319{
33320iterator<int,int,int> t; return 0;
33321 ;
33322 return 0;
33323}
33324_ACEOF
33325rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033326if { (ac_try="$ac_compile"
33327case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33330esac
33331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033334 grep -v '^ *+' conftest.er1 >conftest.err
33335 rm -f conftest.er1
33336 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033338 (exit $ac_status); } &&
33339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33340 { (case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33343esac
33344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_try") 2>&5
33346 ac_status=$?
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; } &&
33349 { ac_try='test -s conftest.$ac_objext'
33350 { (case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_try") 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033359 ac_cv_cxx_have_std_iterator=yes
33360else
33361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033362sed 's/^/| /' conftest.$ac_ext >&5
33363
Reid Spencera773bd52006-08-04 18:18:08 +000033364 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033365fi
Reid Spencera773bd52006-08-04 18:18:08 +000033366
33367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033368 ac_ext=c
33369ac_cpp='$CPP $CPPFLAGS'
33370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33372ac_compiler_gnu=$ac_cv_c_compiler_gnu
33373
33374
33375fi
Reid Spencera773bd52006-08-04 18:18:08 +000033376{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33377echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033378if test "$ac_cv_cxx_have_std_iterator" = yes
33379then
John Criswell40468462004-09-24 21:19:06 +000033380
33381cat >>confdefs.h <<\_ACEOF
33382#define HAVE_STD_ITERATOR 1
33383_ACEOF
33384
33385else
33386
33387cat >>confdefs.h <<\_ACEOF
33388#define HAVE_STD_ITERATOR 0
33389_ACEOF
33390
John Criswell7a73b802003-06-30 21:59:07 +000033391fi
33392
Reid Spencera773bd52006-08-04 18:18:08 +000033393{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33394echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033395if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33396 echo $ECHO_N "(cached) $ECHO_C" >&6
33397else
33398
Reid Spencera773bd52006-08-04 18:18:08 +000033399 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033400ac_cpp='$CXXCPP $CPPFLAGS'
33401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33404
33405 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033406/* confdefs.h. */
33407_ACEOF
33408cat confdefs.h >>conftest.$ac_ext
33409cat >>conftest.$ac_ext <<_ACEOF
33410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033411#include <iterator>
33412#ifdef HAVE_NAMESPACES
33413using namespace std;
33414#endif
John Criswell7a73b802003-06-30 21:59:07 +000033415int
33416main ()
33417{
John Criswellc78022e2003-07-29 19:11:58 +000033418bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033419 ;
33420 return 0;
33421}
33422_ACEOF
33423rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033424if { (ac_try="$ac_compile"
33425case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33428esac
33429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033432 grep -v '^ *+' conftest.er1 >conftest.err
33433 rm -f conftest.er1
33434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033436 (exit $ac_status); } &&
33437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33438 { (case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33441esac
33442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443 (eval "$ac_try") 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451esac
33452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_try") 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033457 ac_cv_cxx_have_bi_iterator=yes
33458else
33459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033460sed 's/^/| /' conftest.$ac_ext >&5
33461
Reid Spencera773bd52006-08-04 18:18:08 +000033462 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033463fi
Reid Spencera773bd52006-08-04 18:18:08 +000033464
33465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033466 ac_ext=c
33467ac_cpp='$CPP $CPPFLAGS'
33468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470ac_compiler_gnu=$ac_cv_c_compiler_gnu
33471
33472
33473fi
Reid Spencera773bd52006-08-04 18:18:08 +000033474{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33475echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033476if test "$ac_cv_cxx_have_bi_iterator" = yes
33477then
John Criswell40468462004-09-24 21:19:06 +000033478
33479cat >>confdefs.h <<\_ACEOF
33480#define HAVE_BI_ITERATOR 1
33481_ACEOF
33482
33483else
33484
33485cat >>confdefs.h <<\_ACEOF
33486#define HAVE_BI_ITERATOR 0
33487_ACEOF
33488
John Criswell7a73b802003-06-30 21:59:07 +000033489fi
33490
Reid Spencera773bd52006-08-04 18:18:08 +000033491{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33492echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033493if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33494 echo $ECHO_N "(cached) $ECHO_C" >&6
33495else
33496
Reid Spencera773bd52006-08-04 18:18:08 +000033497 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033498ac_cpp='$CXXCPP $CPPFLAGS'
33499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33502
33503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033504/* confdefs.h. */
33505_ACEOF
33506cat confdefs.h >>conftest.$ac_ext
33507cat >>conftest.$ac_ext <<_ACEOF
33508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033509#include <iterator>
33510#ifdef HAVE_NAMESPACES
33511using namespace std;
33512#endif
John Criswell7a73b802003-06-30 21:59:07 +000033513int
33514main ()
33515{
John Criswellc78022e2003-07-29 19:11:58 +000033516forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033517 ;
33518 return 0;
33519}
33520_ACEOF
33521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033522if { (ac_try="$ac_compile"
33523case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33526esac
33527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33539esac
33540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33549esac
33550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_try") 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033555 ac_cv_cxx_have_fwd_iterator=yes
33556else
33557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033558sed 's/^/| /' conftest.$ac_ext >&5
33559
Reid Spencera773bd52006-08-04 18:18:08 +000033560 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033561fi
Reid Spencera773bd52006-08-04 18:18:08 +000033562
33563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033564 ac_ext=c
33565ac_cpp='$CPP $CPPFLAGS'
33566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568ac_compiler_gnu=$ac_cv_c_compiler_gnu
33569
33570
33571fi
Reid Spencera773bd52006-08-04 18:18:08 +000033572{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33573echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033574if test "$ac_cv_cxx_have_fwd_iterator" = yes
33575then
John Criswell40468462004-09-24 21:19:06 +000033576
33577cat >>confdefs.h <<\_ACEOF
33578#define HAVE_FWD_ITERATOR 1
33579_ACEOF
33580
33581else
33582
33583cat >>confdefs.h <<\_ACEOF
33584#define HAVE_FWD_ITERATOR 0
33585_ACEOF
33586
John Criswell7a73b802003-06-30 21:59:07 +000033587fi
33588
33589
Reid Spencera773bd52006-08-04 18:18:08 +000033590{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33591echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033592if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33593 echo $ECHO_N "(cached) $ECHO_C" >&6
33594else
Reid Spencera773bd52006-08-04 18:18:08 +000033595 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033596ac_cpp='$CXXCPP $CPPFLAGS'
33597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33600
Reid Spencerabec8f92004-10-27 23:03:44 +000033601 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033602/* confdefs.h. */
33603_ACEOF
33604cat confdefs.h >>conftest.$ac_ext
33605cat >>conftest.$ac_ext <<_ACEOF
33606/* end confdefs.h. */
33607#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033608int
33609main ()
33610{
33611float f; isnan(f);
33612 ;
33613 return 0;
33614}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033615_ACEOF
33616rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033617if { (ac_try="$ac_compile"
33618case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621esac
33622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634esac
33635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest.$ac_objext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033650 ac_cv_func_isnan_in_math_h=yes
33651else
33652 echo "$as_me: failed program was:" >&5
33653sed 's/^/| /' conftest.$ac_ext >&5
33654
Reid Spencera773bd52006-08-04 18:18:08 +000033655 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033656fi
Reid Spencera773bd52006-08-04 18:18:08 +000033657
33658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033659 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033660ac_cpp='$CPP $CPPFLAGS'
33661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33663ac_compiler_gnu=$ac_cv_c_compiler_gnu
33664
33665fi
Reid Spencera773bd52006-08-04 18:18:08 +000033666{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33667echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033668
33669
33670if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033671
33672cat >>confdefs.h <<\_ACEOF
33673#define HAVE_ISNAN_IN_MATH_H 1
33674_ACEOF
33675
Reid Spencerabec8f92004-10-27 23:03:44 +000033676fi
33677
Reid Spencera773bd52006-08-04 18:18:08 +000033678{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33679echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33682else
Reid Spencera773bd52006-08-04 18:18:08 +000033683 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033684ac_cpp='$CXXCPP $CPPFLAGS'
33685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33688
Reid Spencerabec8f92004-10-27 23:03:44 +000033689 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033690/* confdefs.h. */
33691_ACEOF
33692cat confdefs.h >>conftest.$ac_ext
33693cat >>conftest.$ac_ext <<_ACEOF
33694/* end confdefs.h. */
33695#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033696int
33697main ()
33698{
33699float f; isnan(f);
33700 ;
33701 return 0;
33702}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033703_ACEOF
33704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033705if { (ac_try="$ac_compile"
33706case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33709esac
33710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033713 grep -v '^ *+' conftest.er1 >conftest.err
33714 rm -f conftest.er1
33715 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033717 (exit $ac_status); } &&
33718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33719 { (case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722esac
33723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_try") 2>&5
33725 ac_status=$?
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; } &&
33728 { ac_try='test -s conftest.$ac_objext'
33729 { (case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33732esac
33733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_try") 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033738 ac_cv_func_isnan_in_cmath=yes
33739else
33740 echo "$as_me: failed program was:" >&5
33741sed 's/^/| /' conftest.$ac_ext >&5
33742
Reid Spencera773bd52006-08-04 18:18:08 +000033743 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033744fi
Reid Spencera773bd52006-08-04 18:18:08 +000033745
33746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033747 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033748ac_cpp='$CPP $CPPFLAGS'
33749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33751ac_compiler_gnu=$ac_cv_c_compiler_gnu
33752
33753fi
Reid Spencera773bd52006-08-04 18:18:08 +000033754{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33755echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033756
33757if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033758
33759cat >>confdefs.h <<\_ACEOF
33760#define HAVE_ISNAN_IN_CMATH 1
33761_ACEOF
33762
Reid Spencerabec8f92004-10-27 23:03:44 +000033763fi
33764
Reid Spencera773bd52006-08-04 18:18:08 +000033765{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33766echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033767if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33769else
Reid Spencera773bd52006-08-04 18:18:08 +000033770 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033771ac_cpp='$CXXCPP $CPPFLAGS'
33772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33775
Reid Spencerabec8f92004-10-27 23:03:44 +000033776 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033777/* confdefs.h. */
33778_ACEOF
33779cat confdefs.h >>conftest.$ac_ext
33780cat >>conftest.$ac_ext <<_ACEOF
33781/* end confdefs.h. */
33782#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033783int
33784main ()
33785{
33786float f; std::isnan(f);
33787 ;
33788 return 0;
33789}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033790_ACEOF
33791rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033792if { (ac_try="$ac_compile"
33793case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33796esac
33797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033799 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033800 grep -v '^ *+' conftest.er1 >conftest.err
33801 rm -f conftest.er1
33802 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033804 (exit $ac_status); } &&
33805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33806 { (case "(($ac_try" in
33807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808 *) ac_try_echo=$ac_try;;
33809esac
33810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811 (eval "$ac_try") 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; } &&
33815 { ac_try='test -s conftest.$ac_objext'
33816 { (case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819esac
33820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_try") 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033825 ac_cv_func_std_isnan_in_cmath=yes
33826else
33827 echo "$as_me: failed program was:" >&5
33828sed 's/^/| /' conftest.$ac_ext >&5
33829
Reid Spencera773bd52006-08-04 18:18:08 +000033830 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033831fi
Reid Spencera773bd52006-08-04 18:18:08 +000033832
33833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033834 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033835ac_cpp='$CPP $CPPFLAGS'
33836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838ac_compiler_gnu=$ac_cv_c_compiler_gnu
33839
33840fi
Reid Spencera773bd52006-08-04 18:18:08 +000033841{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33842echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033843
33844if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033845
33846cat >>confdefs.h <<\_ACEOF
33847#define HAVE_STD_ISNAN_IN_CMATH 1
33848_ACEOF
33849
Reid Spencerabec8f92004-10-27 23:03:44 +000033850fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033851
33852
Reid Spencera773bd52006-08-04 18:18:08 +000033853{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33854echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033855if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33857else
Reid Spencera773bd52006-08-04 18:18:08 +000033858 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033859ac_cpp='$CXXCPP $CPPFLAGS'
33860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33863
Reid Spencerabec8f92004-10-27 23:03:44 +000033864 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033865/* confdefs.h. */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h. */
33870#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033871int
33872main ()
33873{
33874float f; isinf(f);
33875 ;
33876 return 0;
33877}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033878_ACEOF
33879rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033880if { (ac_try="$ac_compile"
33881case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33884esac
33885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033887 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033888 grep -v '^ *+' conftest.er1 >conftest.err
33889 rm -f conftest.er1
33890 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033892 (exit $ac_status); } &&
33893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33894 { (case "(($ac_try" in
33895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896 *) ac_try_echo=$ac_try;;
33897esac
33898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899 (eval "$ac_try") 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
33903 { ac_try='test -s conftest.$ac_objext'
33904 { (case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33907esac
33908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_try") 2>&5
33910 ac_status=$?
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033913 ac_cv_func_isinf_in_math_h=yes
33914else
33915 echo "$as_me: failed program was:" >&5
33916sed 's/^/| /' conftest.$ac_ext >&5
33917
Reid Spencera773bd52006-08-04 18:18:08 +000033918 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033919fi
Reid Spencera773bd52006-08-04 18:18:08 +000033920
33921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033922 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033923ac_cpp='$CPP $CPPFLAGS'
33924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926ac_compiler_gnu=$ac_cv_c_compiler_gnu
33927
33928fi
Reid Spencera773bd52006-08-04 18:18:08 +000033929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33930echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033931
33932if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033933
33934cat >>confdefs.h <<\_ACEOF
33935#define HAVE_ISINF_IN_MATH_H 1
33936_ACEOF
33937
Reid Spencerabec8f92004-10-27 23:03:44 +000033938fi
33939
Reid Spencera773bd52006-08-04 18:18:08 +000033940{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33941echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033942if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33943 echo $ECHO_N "(cached) $ECHO_C" >&6
33944else
Reid Spencera773bd52006-08-04 18:18:08 +000033945 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033946ac_cpp='$CXXCPP $CPPFLAGS'
33947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33950
Reid Spencerabec8f92004-10-27 23:03:44 +000033951 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033952/* confdefs.h. */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h. */
33957#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033958int
33959main ()
33960{
33961float f; isinf(f);
33962 ;
33963 return 0;
33964}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033965_ACEOF
33966rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033967if { (ac_try="$ac_compile"
33968case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971esac
33972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33984esac
33985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994esac
33995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034000 ac_cv_func_isinf_in_cmath=yes
34001else
34002 echo "$as_me: failed program was:" >&5
34003sed 's/^/| /' conftest.$ac_ext >&5
34004
Reid Spencera773bd52006-08-04 18:18:08 +000034005 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034006fi
Reid Spencera773bd52006-08-04 18:18:08 +000034007
34008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034009 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034010ac_cpp='$CPP $CPPFLAGS'
34011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013ac_compiler_gnu=$ac_cv_c_compiler_gnu
34014
34015fi
Reid Spencera773bd52006-08-04 18:18:08 +000034016{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34017echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034018
34019if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034020
34021cat >>confdefs.h <<\_ACEOF
34022#define HAVE_ISINF_IN_CMATH 1
34023_ACEOF
34024
Reid Spencerabec8f92004-10-27 23:03:44 +000034025fi
34026
Reid Spencera773bd52006-08-04 18:18:08 +000034027{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34028echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034029if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34030 echo $ECHO_N "(cached) $ECHO_C" >&6
34031else
Reid Spencera773bd52006-08-04 18:18:08 +000034032 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034033ac_cpp='$CXXCPP $CPPFLAGS'
34034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34037
Reid Spencerabec8f92004-10-27 23:03:44 +000034038 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034039/* confdefs.h. */
34040_ACEOF
34041cat confdefs.h >>conftest.$ac_ext
34042cat >>conftest.$ac_ext <<_ACEOF
34043/* end confdefs.h. */
34044#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034045int
34046main ()
34047{
34048float f; std::isinf(f)}
34049 ;
34050 return 0;
34051}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034052_ACEOF
34053rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034054if { (ac_try="$ac_compile"
34055case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34058esac
34059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034062 grep -v '^ *+' conftest.er1 >conftest.err
34063 rm -f conftest.er1
34064 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034066 (exit $ac_status); } &&
34067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34068 { (case "(($ac_try" in
34069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34070 *) ac_try_echo=$ac_try;;
34071esac
34072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34073 (eval "$ac_try") 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
34078 { (case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34081esac
34082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_try") 2>&5
34084 ac_status=$?
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034087 ac_cv_func_std_isinf_in_cmath=yes
34088else
34089 echo "$as_me: failed program was:" >&5
34090sed 's/^/| /' conftest.$ac_ext >&5
34091
Reid Spencera773bd52006-08-04 18:18:08 +000034092 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034093fi
Reid Spencera773bd52006-08-04 18:18:08 +000034094
34095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034096 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034097ac_cpp='$CPP $CPPFLAGS'
34098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100ac_compiler_gnu=$ac_cv_c_compiler_gnu
34101
34102fi
Reid Spencera773bd52006-08-04 18:18:08 +000034103{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34104echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034105
34106if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034107
34108cat >>confdefs.h <<\_ACEOF
34109#define HAVE_STD_ISINF_IN_CMATH 1
34110_ACEOF
34111
Reid Spencerabec8f92004-10-27 23:03:44 +000034112fi
34113
Reid Spencera773bd52006-08-04 18:18:08 +000034114{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34115echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034116if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34118else
Reid Spencera773bd52006-08-04 18:18:08 +000034119 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034120ac_cpp='$CXXCPP $CPPFLAGS'
34121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34124
Reid Spencerabec8f92004-10-27 23:03:44 +000034125 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034126/* confdefs.h. */
34127_ACEOF
34128cat confdefs.h >>conftest.$ac_ext
34129cat >>conftest.$ac_ext <<_ACEOF
34130/* end confdefs.h. */
34131#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034132int
34133main ()
34134{
34135float f; finite(f);
34136 ;
34137 return 0;
34138}
Brian Gaeked59a6472004-07-21 03:33:58 +000034139_ACEOF
34140rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034141if { (ac_try="$ac_compile"
34142case "(($ac_try" in
34143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144 *) ac_try_echo=$ac_try;;
34145esac
34146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034148 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034149 grep -v '^ *+' conftest.er1 >conftest.err
34150 rm -f conftest.er1
34151 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034153 (exit $ac_status); } &&
34154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34155 { (case "(($ac_try" in
34156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157 *) ac_try_echo=$ac_try;;
34158esac
34159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160 (eval "$ac_try") 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest.$ac_objext'
34165 { (case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168esac
34169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_try") 2>&5
34171 ac_status=$?
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034174 ac_cv_func_finite_in_ieeefp_h=yes
34175else
34176 echo "$as_me: failed program was:" >&5
34177sed 's/^/| /' conftest.$ac_ext >&5
34178
Reid Spencera773bd52006-08-04 18:18:08 +000034179 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034180fi
Reid Spencera773bd52006-08-04 18:18:08 +000034181
34182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034183 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034184ac_cpp='$CPP $CPPFLAGS'
34185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34187ac_compiler_gnu=$ac_cv_c_compiler_gnu
34188
34189fi
Reid Spencera773bd52006-08-04 18:18:08 +000034190{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34191echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034192
Brian Gaeke6802b552004-10-28 05:06:45 +000034193if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034194
34195cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034196#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034197_ACEOF
34198
Reid Spencerabec8f92004-10-27 23:03:44 +000034199fi
34200
34201
34202
Reid Spencer30fe5262007-01-20 07:48:49 +000034203if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034204
34205
34206for ac_header in stdlib.h unistd.h
34207do
34208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034213 echo $ECHO_N "(cached) $ECHO_C" >&6
34214fi
Reid Spencera773bd52006-08-04 18:18:08 +000034215ac_res=`eval echo '${'$as_ac_Header'}'`
34216 { echo "$as_me:$LINENO: result: $ac_res" >&5
34217echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034218else
34219 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034222cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034223/* confdefs.h. */
34224_ACEOF
34225cat confdefs.h >>conftest.$ac_ext
34226cat >>conftest.$ac_ext <<_ACEOF
34227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034228$ac_includes_default
34229#include <$ac_header>
34230_ACEOF
34231rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034232if { (ac_try="$ac_compile"
34233case "(($ac_try" in
34234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34235 *) ac_try_echo=$ac_try;;
34236esac
34237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34238 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034240 grep -v '^ *+' conftest.er1 >conftest.err
34241 rm -f conftest.er1
34242 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034244 (exit $ac_status); } &&
34245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34246 { (case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34249esac
34250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_try") 2>&5
34252 ac_status=$?
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); }; } &&
34255 { ac_try='test -s conftest.$ac_objext'
34256 { (case "(($ac_try" in
34257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258 *) ac_try_echo=$ac_try;;
34259esac
34260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_try") 2>&5
34262 ac_status=$?
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034265 ac_header_compiler=yes
34266else
34267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034268sed 's/^/| /' conftest.$ac_ext >&5
34269
Reid Spencera773bd52006-08-04 18:18:08 +000034270 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034271fi
Reid Spencera773bd52006-08-04 18:18:08 +000034272
34273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34275echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034276
34277# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034280cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034281/* confdefs.h. */
34282_ACEOF
34283cat confdefs.h >>conftest.$ac_ext
34284cat >>conftest.$ac_ext <<_ACEOF
34285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034286#include <$ac_header>
34287_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034288if { (ac_try="$ac_cpp conftest.$ac_ext"
34289case "(($ac_try" in
34290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291 *) ac_try_echo=$ac_try;;
34292esac
34293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034295 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034296 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034297 rm -f conftest.er1
34298 cat conftest.err >&5
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034300 (exit $ac_status); } >/dev/null; then
34301 if test -s conftest.err; then
34302 ac_cpp_err=$ac_c_preproc_warn_flag
34303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34304 else
34305 ac_cpp_err=
34306 fi
34307else
34308 ac_cpp_err=yes
34309fi
34310if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034311 ac_header_preproc=yes
34312else
34313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034314sed 's/^/| /' conftest.$ac_ext >&5
34315
John Criswell7a73b802003-06-30 21:59:07 +000034316 ac_header_preproc=no
34317fi
Reid Spencera773bd52006-08-04 18:18:08 +000034318
John Criswell7a73b802003-06-30 21:59:07 +000034319rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34321echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034322
34323# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34325 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34330 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034331 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034332 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034345 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034346## ----------------------------------- ##
34347## Report this to llvmbugs@cs.uiuc.edu ##
34348## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034349_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034350 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034351 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034352esac
Reid Spencera773bd52006-08-04 18:18:08 +000034353{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034356 echo $ECHO_N "(cached) $ECHO_C" >&6
34357else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034358 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034359fi
Reid Spencera773bd52006-08-04 18:18:08 +000034360ac_res=`eval echo '${'$as_ac_Header'}'`
34361 { echo "$as_me:$LINENO: result: $ac_res" >&5
34362echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034363
34364fi
34365if test `eval echo '${'$as_ac_Header'}'` = yes; then
34366 cat >>confdefs.h <<_ACEOF
34367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34368_ACEOF
34369
34370fi
34371
34372done
34373
34374
34375for ac_func in getpagesize
34376do
34377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034378{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034381 echo $ECHO_N "(cached) $ECHO_C" >&6
34382else
34383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034384/* confdefs.h. */
34385_ACEOF
34386cat confdefs.h >>conftest.$ac_ext
34387cat >>conftest.$ac_ext <<_ACEOF
34388/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34391#define $ac_func innocuous_$ac_func
34392
John Criswell7a73b802003-06-30 21:59:07 +000034393/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034394 which can conflict with char $ac_func (); below.
34395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34396 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034397
John Criswell0c38eaf2003-09-10 15:17:25 +000034398#ifdef __STDC__
34399# include <limits.h>
34400#else
34401# include <assert.h>
34402#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034403
34404#undef $ac_func
34405
Reid Spencera773bd52006-08-04 18:18:08 +000034406/* Override any GCC internal prototype to avoid an error.
34407 Use char because int might match the return type of a GCC
34408 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034409#ifdef __cplusplus
34410extern "C"
34411#endif
John Criswell7a73b802003-06-30 21:59:07 +000034412char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034413/* The GNU C library defines this for functions which it implements
34414 to always fail with ENOSYS. Some functions are actually named
34415 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034416#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034417choke me
John Criswell7a73b802003-06-30 21:59:07 +000034418#endif
34419
John Criswell0c38eaf2003-09-10 15:17:25 +000034420int
34421main ()
34422{
Reid Spencera773bd52006-08-04 18:18:08 +000034423return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034424 ;
34425 return 0;
34426}
34427_ACEOF
34428rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034429if { (ac_try="$ac_link"
34430case "(($ac_try" in
34431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432 *) ac_try_echo=$ac_try;;
34433esac
34434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34435 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034437 grep -v '^ *+' conftest.er1 >conftest.err
34438 rm -f conftest.er1
34439 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034441 (exit $ac_status); } &&
34442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34443 { (case "(($ac_try" in
34444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34445 *) ac_try_echo=$ac_try;;
34446esac
34447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34448 (eval "$ac_try") 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
34453 { (case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456esac
34457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_try") 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034462 eval "$as_ac_var=yes"
34463else
34464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034465sed 's/^/| /' conftest.$ac_ext >&5
34466
Reid Spencera773bd52006-08-04 18:18:08 +000034467 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034468fi
Reid Spencera773bd52006-08-04 18:18:08 +000034469
Bill Wendlingebcceee2009-04-18 11:20:33 +000034470rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034471 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034472fi
Reid Spencera773bd52006-08-04 18:18:08 +000034473ac_res=`eval echo '${'$as_ac_var'}'`
34474 { echo "$as_me:$LINENO: result: $ac_res" >&5
34475echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034476if test `eval echo '${'$as_ac_var'}'` = yes; then
34477 cat >>confdefs.h <<_ACEOF
34478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34479_ACEOF
34480
34481fi
34482done
34483
Reid Spencera773bd52006-08-04 18:18:08 +000034484{ echo "$as_me:$LINENO: checking for working mmap" >&5
34485echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034486if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34488else
34489 if test "$cross_compiling" = yes; then
34490 ac_cv_func_mmap_fixed_mapped=no
34491else
34492 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034493/* confdefs.h. */
34494_ACEOF
34495cat confdefs.h >>conftest.$ac_ext
34496cat >>conftest.$ac_ext <<_ACEOF
34497/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034498$ac_includes_default
34499/* malloc might have been renamed as rpl_malloc. */
34500#undef malloc
34501
34502/* Thanks to Mike Haertel and Jim Avera for this test.
34503 Here is a matrix of mmap possibilities:
34504 mmap private not fixed
34505 mmap private fixed at somewhere currently unmapped
34506 mmap private fixed at somewhere already mapped
34507 mmap shared not fixed
34508 mmap shared fixed at somewhere currently unmapped
34509 mmap shared fixed at somewhere already mapped
34510 For private mappings, we should verify that changes cannot be read()
34511 back from the file, nor mmap's back from the file at a different
34512 address. (There have been systems where private was not correctly
34513 implemented like the infamous i386 svr4.0, and systems where the
34514 VM page cache was not coherent with the file system buffer cache
34515 like early versions of FreeBSD and possibly contemporary NetBSD.)
34516 For shared mappings, we should conversely verify that changes get
34517 propagated back to all the places they're supposed to be.
34518
34519 Grep wants private fixed already mapped.
34520 The main things grep needs to know about mmap are:
34521 * does it exist and is it safe to write into the mmap'd area
34522 * how to use it (BSD variants) */
34523
34524#include <fcntl.h>
34525#include <sys/mman.h>
34526
Bill Wendlingebcceee2009-04-18 11:20:33 +000034527#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034528char *malloc ();
34529#endif
34530
34531/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034532#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034533/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034534# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034535# define HAVE_SYS_PARAM_H 1
34536# endif
34537
34538# ifdef _SC_PAGESIZE
34539# define getpagesize() sysconf(_SC_PAGESIZE)
34540# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034541# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034542# include <sys/param.h>
34543# ifdef EXEC_PAGESIZE
34544# define getpagesize() EXEC_PAGESIZE
34545# else /* no EXEC_PAGESIZE */
34546# ifdef NBPG
34547# define getpagesize() NBPG * CLSIZE
34548# ifndef CLSIZE
34549# define CLSIZE 1
34550# endif /* no CLSIZE */
34551# else /* no NBPG */
34552# ifdef NBPC
34553# define getpagesize() NBPC
34554# else /* no NBPC */
34555# ifdef PAGESIZE
34556# define getpagesize() PAGESIZE
34557# endif /* PAGESIZE */
34558# endif /* no NBPC */
34559# endif /* no NBPG */
34560# endif /* no EXEC_PAGESIZE */
34561# else /* no HAVE_SYS_PARAM_H */
34562# define getpagesize() 8192 /* punt totally */
34563# endif /* no HAVE_SYS_PARAM_H */
34564# endif /* no _SC_PAGESIZE */
34565
34566#endif /* no HAVE_GETPAGESIZE */
34567
34568int
34569main ()
34570{
34571 char *data, *data2, *data3;
34572 int i, pagesize;
34573 int fd;
34574
34575 pagesize = getpagesize ();
34576
34577 /* First, make a file with some known garbage in it. */
34578 data = (char *) malloc (pagesize);
34579 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034580 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034581 for (i = 0; i < pagesize; ++i)
34582 *(data + i) = rand ();
34583 umask (0);
34584 fd = creat ("conftest.mmap", 0600);
34585 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034586 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034587 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034588 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034589 close (fd);
34590
34591 /* Next, try to mmap the file at a fixed address which already has
34592 something else allocated at it. If we can, also make sure that
34593 we see the same garbage. */
34594 fd = open ("conftest.mmap", O_RDWR);
34595 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034596 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034597 data2 = (char *) malloc (2 * pagesize);
34598 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034599 return 1;
34600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034603 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034604 for (i = 0; i < pagesize; ++i)
34605 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034606 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034607
34608 /* Finally, make sure that changes to the mapped area do not
34609 percolate back to the file as seen by read(). (This is a bug on
34610 some variants of i386 svr4.0.) */
34611 for (i = 0; i < pagesize; ++i)
34612 *(data2 + i) = *(data2 + i) + 1;
34613 data3 = (char *) malloc (pagesize);
34614 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034615 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034616 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034617 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034618 for (i = 0; i < pagesize; ++i)
34619 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034620 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034621 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034622 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034623}
34624_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_fixed_mapped=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_fixed_mapped=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 +000034658fi
Reid Spencera773bd52006-08-04 18:18:08 +000034659{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34660echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034661if test $ac_cv_func_mmap_fixed_mapped = yes; then
34662
34663cat >>confdefs.h <<\_ACEOF
34664#define HAVE_MMAP 1
34665_ACEOF
34666
34667fi
34668rm -f conftest.mmap
34669
Reid Spencer30fe5262007-01-20 07:48:49 +000034670 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034671echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034672if test "${ac_cv_func_mmap_file+set}" = set; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34674else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034675 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034676ac_cpp='$CPP $CPPFLAGS'
34677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679ac_compiler_gnu=$ac_cv_c_compiler_gnu
34680
34681 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034682 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034683else
34684 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034685
Reid Spencer777ce172004-09-20 04:09:56 +000034686 /* confdefs.h. */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h. */
34691
John Criswell7a73b802003-06-30 21:59:07 +000034692#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034693#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034694#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034695
34696int
34697main ()
34698{
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034701 fd = creat ("foo",0777);
34702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34703 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034704 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034705 ;
34706 return 0;
34707}
John Criswell7a73b802003-06-30 21:59:07 +000034708_ACEOF
34709rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034710if { (ac_try="$ac_link"
34711case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34714esac
34715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034717 ac_status=$?
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034720 { (case "(($ac_try" in
34721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722 *) ac_try_echo=$ac_try;;
34723esac
34724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034726 ac_status=$?
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; }; then
34729 ac_cv_func_mmap_file=yes
34730else
34731 echo "$as_me: program exited with status $ac_status" >&5
34732echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034733sed 's/^/| /' conftest.$ac_ext >&5
34734
John Criswell7a73b802003-06-30 21:59:07 +000034735( exit $ac_status )
34736ac_cv_func_mmap_file=no
34737fi
Reid Spencera773bd52006-08-04 18:18:08 +000034738rm -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 +000034739fi
Reid Spencera773bd52006-08-04 18:18:08 +000034740
34741
John Criswell7a73b802003-06-30 21:59:07 +000034742 ac_ext=c
34743ac_cpp='$CPP $CPPFLAGS'
34744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34746ac_compiler_gnu=$ac_cv_c_compiler_gnu
34747
34748
34749fi
Reid Spencera773bd52006-08-04 18:18:08 +000034750{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34751echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034752if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034753
34754cat >>confdefs.h <<\_ACEOF
34755#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034756_ACEOF
34757
34758 MMAP_FILE=yes
34759
34760fi
34761
Reid Spencer30fe5262007-01-20 07:48:49 +000034762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034763echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034764if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34766else
Reid Spencer582a23c2004-12-29 07:07:57 +000034767 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034768 ac_cv_need_dev_zero_for_mmap=yes
34769 else
34770 ac_cv_need_dev_zero_for_mmap=no
34771 fi
34772
34773fi
Reid Spencera773bd52006-08-04 18:18:08 +000034774{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34775echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034776if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34777
34778cat >>confdefs.h <<\_ACEOF
34779#define NEED_DEV_ZERO_FOR_MMAP 1
34780_ACEOF
34781
34782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034783
Reid Spencer30fe5262007-01-20 07:48:49 +000034784 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34785 then
34786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034787echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034788 fi
34789 if test "$ac_cv_func_mmap_file" = "no"
34790 then
34791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034792echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034793 fi
John Criswellb13092b2003-07-22 21:00:24 +000034794fi
John Criswell7a73b802003-06-30 21:59:07 +000034795
Owen Andersona8603702009-05-19 22:18:56 +000034796{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034797echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034798cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034799/* confdefs.h. */
34800_ACEOF
34801cat confdefs.h >>conftest.$ac_ext
34802cat >>conftest.$ac_ext <<_ACEOF
34803/* end confdefs.h. */
34804int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034805 volatile unsigned long val = 1;
34806 __sync_synchronize();
34807 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034808 __sync_add_and_fetch(&val, 1);
34809 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034810 return 0;
34811 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034812
34813_ACEOF
34814rm -f conftest.$ac_objext conftest$ac_exeext
34815if { (ac_try="$ac_link"
34816case "(($ac_try" in
34817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818 *) ac_try_echo=$ac_try;;
34819esac
34820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821 (eval "$ac_link") 2>conftest.er1
34822 ac_status=$?
34823 grep -v '^ *+' conftest.er1 >conftest.err
34824 rm -f conftest.er1
34825 cat conftest.err >&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } &&
34828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34829 { (case "(($ac_try" in
34830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34831 *) ac_try_echo=$ac_try;;
34832esac
34833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34834 (eval "$ac_try") 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; } &&
34838 { ac_try='test -s conftest$ac_exeext'
34839 { (case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842esac
34843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_try") 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 { echo "$as_me:$LINENO: result: yes" >&5
34849echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034850
34851cat >>confdefs.h <<\_ACEOF
34852#define LLVM_MULTITHREADED 1
34853_ACEOF
34854
Owen Andersond4b272b2009-05-18 23:58:51 +000034855else
34856 echo "$as_me: failed program was:" >&5
34857sed 's/^/| /' conftest.$ac_ext >&5
34858
34859 { echo "$as_me:$LINENO: result: no" >&5
34860echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034861
Owen Andersona8603702009-05-19 22:18:56 +000034862cat >>confdefs.h <<\_ACEOF
34863#define LLVM_MULTITHREADED 0
34864_ACEOF
34865
34866 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34867echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034868fi
34869
34870rm -f core conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034872
34873
John Criswell7a73b802003-06-30 21:59:07 +000034874
Nick Lewycky4372e692009-09-29 06:18:23 +000034875if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34876 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34877echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34878if test "${llvm_cv_linux_mixed+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34880else
34881 ac_ext=c
34882ac_cpp='$CPP $CPPFLAGS'
34883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34885ac_compiler_gnu=$ac_cv_c_compiler_gnu
34886
34887 cat >conftest.$ac_ext <<_ACEOF
34888/* confdefs.h. */
34889_ACEOF
34890cat confdefs.h >>conftest.$ac_ext
34891cat >>conftest.$ac_ext <<_ACEOF
34892/* end confdefs.h. */
34893#ifndef __x86_64__
34894 error: Not x86-64 even if uname says so!
34895 #endif
34896
34897int
34898main ()
34899{
34900
34901 ;
34902 return 0;
34903}
34904_ACEOF
34905rm -f conftest.$ac_objext
34906if { (ac_try="$ac_compile"
34907case "(($ac_try" in
34908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34909 *) ac_try_echo=$ac_try;;
34910esac
34911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34912 (eval "$ac_compile") 2>conftest.er1
34913 ac_status=$?
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
34919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34920 { (case "(($ac_try" in
34921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922 *) ac_try_echo=$ac_try;;
34923esac
34924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925 (eval "$ac_try") 2>&5
34926 ac_status=$?
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; } &&
34929 { ac_try='test -s conftest.$ac_objext'
34930 { (case "(($ac_try" in
34931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932 *) ac_try_echo=$ac_try;;
34933esac
34934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935 (eval "$ac_try") 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 llvm_cv_linux_mixed=no
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944 llvm_cv_linux_mixed=yes
34945fi
34946
34947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34948 ac_ext=c
34949ac_cpp='$CPP $CPPFLAGS'
34950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34952ac_compiler_gnu=$ac_cv_c_compiler_gnu
34953
34954
34955fi
34956{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34957echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34958
34959 if test "$llvm_cv_linux_mixed" = "yes"; then
34960 llvm_cv_target_arch="x86"
34961 ARCH="x86"
34962 fi
34963fi
34964
Reid Spencer9372f152007-07-30 20:13:24 +000034965
34966for ac_func in __dso_handle
34967do
34968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973else
34974 cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h. */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h. */
34980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34982#define $ac_func innocuous_$ac_func
34983
34984/* System header to define __stub macros and hopefully few prototypes,
34985 which can conflict with char $ac_func (); below.
34986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987 <limits.h> exists even on freestanding compilers. */
34988
34989#ifdef __STDC__
34990# include <limits.h>
34991#else
34992# include <assert.h>
34993#endif
34994
34995#undef $ac_func
34996
34997/* Override any GCC internal prototype to avoid an error.
34998 Use char because int might match the return type of a GCC
34999 builtin and then its argument prototype would still apply. */
35000#ifdef __cplusplus
35001extern "C"
35002#endif
35003char $ac_func ();
35004/* The GNU C library defines this for functions which it implements
35005 to always fail with ENOSYS. Some functions are actually named
35006 something starting with __ and the normal name is an alias. */
35007#if defined __stub_$ac_func || defined __stub___$ac_func
35008choke me
35009#endif
35010
35011int
35012main ()
35013{
35014return $ac_func ();
35015 ;
35016 return 0;
35017}
35018_ACEOF
35019rm -f conftest.$ac_objext conftest$ac_exeext
35020if { (ac_try="$ac_link"
35021case "(($ac_try" in
35022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023 *) ac_try_echo=$ac_try;;
35024esac
35025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026 (eval "$ac_link") 2>conftest.er1
35027 ac_status=$?
35028 grep -v '^ *+' conftest.er1 >conftest.err
35029 rm -f conftest.er1
35030 cat conftest.err >&5
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035032 (exit $ac_status); } &&
35033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35034 { (case "(($ac_try" in
35035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036 *) ac_try_echo=$ac_try;;
35037esac
35038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039 (eval "$ac_try") 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; } &&
35043 { ac_try='test -s conftest$ac_exeext'
35044 { (case "(($ac_try" in
35045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046 *) ac_try_echo=$ac_try;;
35047esac
35048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049 (eval "$ac_try") 2>&5
35050 ac_status=$?
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000035053 eval "$as_ac_var=yes"
35054else
35055 echo "$as_me: failed program was:" >&5
35056sed 's/^/| /' conftest.$ac_ext >&5
35057
35058 eval "$as_ac_var=no"
35059fi
35060
Bill Wendlingebcceee2009-04-18 11:20:33 +000035061rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000035062 conftest$ac_exeext conftest.$ac_ext
35063fi
35064ac_res=`eval echo '${'$as_ac_var'}'`
35065 { echo "$as_me:$LINENO: result: $ac_res" >&5
35066echo "${ECHO_T}$ac_res" >&6; }
35067if test `eval echo '${'$as_ac_var'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070_ACEOF
35071
35072fi
35073done
35074
35075
Reid Spencera773bd52006-08-04 18:18:08 +000035076{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35077echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035078if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080else
35081 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035082if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035083 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035084 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35085 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035086 if test $? -eq 0 ; then
35087 llvm_cv_llvmgcc_sanity="yes"
35088 fi
35089 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035090fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035091fi
Reid Spencera773bd52006-08-04 18:18:08 +000035092{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35093echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035094
35095if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035096 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35097echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035098 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035099 LLVMCC1=$llvmcc1path
35100
Reid Spencer502935f2004-12-22 05:56:56 +000035101 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035102 LLVMCC1PLUS=$llvmcc1pluspath
35103
Reid Spencer502935f2004-12-22 05:56:56 +000035104 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35105 LLVMGCCDIR=$llvmgccdir
35106
Reid Spencer282d8c12006-12-21 22:55:41 +000035107 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35108 LLVMGCCLIBEXEC=$llvmgcclibexec
35109
Reid Spencerb5d75b82006-05-09 00:31:01 +000035110 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035111 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35112 LLVMGCC_VERSION=$llvmgccversion
35113
35114 LLVMGCC_MAJVERS=$llvmgccmajvers
35115
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035116 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035117 LLVMGCC_LANGS=$llvmgcclangs
35118
35119 { echo "$as_me:$LINENO: result: ok" >&5
35120echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035121fi
35122
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035123SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035124
35125
Reid Spencere9de0912004-08-20 09:03:57 +000035126# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035127# information into substitutions that will end up in Makefile.config.in
35128# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035129if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035130 prefix="/usr/local"
35131fi
Reid Spencere9de0912004-08-20 09:03:57 +000035132eval LLVM_PREFIX="${prefix}";
35133eval LLVM_BINDIR="${prefix}/bin";
35134eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035135eval LLVM_DATADIR="${prefix}/share/llvm";
35136eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35137eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035138eval LLVM_INCLUDEDIR="${prefix}/include";
35139eval LLVM_INFODIR="${prefix}/info";
35140eval LLVM_MANDIR="${prefix}/man";
35141LLVM_CONFIGTIME=`date`
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035153# Place the various directores into the config.h file as #defines so that we
35154# can know about the installation paths within LLVM.
35155
Reid Spencere9de0912004-08-20 09:03:57 +000035156cat >>confdefs.h <<_ACEOF
35157#define LLVM_PREFIX "$LLVM_PREFIX"
35158_ACEOF
35159
35160
35161cat >>confdefs.h <<_ACEOF
35162#define LLVM_BINDIR "$LLVM_BINDIR"
35163_ACEOF
35164
35165
35166cat >>confdefs.h <<_ACEOF
35167#define LLVM_LIBDIR "$LLVM_LIBDIR"
35168_ACEOF
35169
35170
35171cat >>confdefs.h <<_ACEOF
35172#define LLVM_DATADIR "$LLVM_DATADIR"
35173_ACEOF
35174
35175
35176cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035177#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035178_ACEOF
35179
35180
35181cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035182#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035183_ACEOF
35184
35185
35186cat >>confdefs.h <<_ACEOF
35187#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35188_ACEOF
35189
35190
35191cat >>confdefs.h <<_ACEOF
35192#define LLVM_INFODIR "$LLVM_INFODIR"
35193_ACEOF
35194
35195
35196cat >>confdefs.h <<_ACEOF
35197#define LLVM_MANDIR "$LLVM_MANDIR"
35198_ACEOF
35199
35200
35201cat >>confdefs.h <<_ACEOF
35202#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35203_ACEOF
35204
35205
Eric Christopher790e11c2007-12-01 00:34:39 +000035206cat >>confdefs.h <<_ACEOF
35207#define LLVM_HOSTTRIPLE "$host"
35208_ACEOF
35209
35210
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035211# Determine which bindings to build.
35212if test "$BINDINGS_TO_BUILD" = auto ; then
35213 BINDINGS_TO_BUILD=""
35214 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35215 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35216 fi
35217fi
35218BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35219
35220
35221# This isn't really configurey, but it avoids having to repeat the list in
35222# other files.
35223ALL_BINDINGS=ocaml
35224
35225
Gordon Henriksenf0915682007-10-02 16:42:22 +000035226# Do any work necessary to ensure that bindings have what they need.
35227binding_prereqs_failed=0
35228for a_binding in $BINDINGS_TO_BUILD ; do
35229 case "$a_binding" in
35230 ocaml)
35231 if test "x$OCAMLC" = x ; then
35232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35233echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35234 binding_prereqs_failed=1
35235 fi
35236 if test "x$OCAMLDEP" = x ; then
35237 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35238echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35239 binding_prereqs_failed=1
35240 fi
35241 if test "x$OCAMLOPT" = x ; then
35242 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35243echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35244 fi
35245 if test "x$with_ocaml_libdir" != xauto ; then
35246 OCAML_LIBDIR=$with_ocaml_libdir
35247
35248 else
35249 ocaml_stdlib="`"$OCAMLC" -where`"
35250 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35251 then
35252 # ocaml stdlib is beneath our prefix; use stdlib
35253 OCAML_LIBDIR=$ocaml_stdlib
35254
35255 else
35256 # ocaml stdlib is outside our prefix; use libdir/ocaml
35257 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35258
35259 fi
35260 fi
35261 ;;
35262 esac
35263done
35264if test "$binding_prereqs_failed" = 1 ; then
35265 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35266echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35267 { (exit 1); exit 1; }; }
35268fi
35269
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035270{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35271echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35272if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35274else
35275 ac_ext=cpp
35276ac_cpp='$CXXCPP $CPPFLAGS'
35277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35280
35281 oldcxxflags="$CXXFLAGS"
35282 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35283 cat >conftest.$ac_ext <<_ACEOF
35284/* confdefs.h. */
35285_ACEOF
35286cat confdefs.h >>conftest.$ac_ext
35287cat >>conftest.$ac_ext <<_ACEOF
35288/* end confdefs.h. */
35289
35290int
35291main ()
35292{
35293
35294 ;
35295 return 0;
35296}
35297_ACEOF
35298rm -f conftest.$ac_objext
35299if { (ac_try="$ac_compile"
35300case "(($ac_try" in
35301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35302 *) ac_try_echo=$ac_try;;
35303esac
35304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35305 (eval "$ac_compile") 2>conftest.er1
35306 ac_status=$?
35307 grep -v '^ *+' conftest.er1 >conftest.err
35308 rm -f conftest.er1
35309 cat conftest.err >&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035311 (exit $ac_status); } &&
35312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35313 { (case "(($ac_try" in
35314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315 *) ac_try_echo=$ac_try;;
35316esac
35317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35318 (eval "$ac_try") 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest.$ac_objext'
35323 { (case "(($ac_try" in
35324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325 *) ac_try_echo=$ac_try;;
35326esac
35327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328 (eval "$ac_try") 2>&5
35329 ac_status=$?
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035332 llvm_cv_cxx_visibility_inlines_hidden=yes
35333else
35334 echo "$as_me: failed program was:" >&5
35335sed 's/^/| /' conftest.$ac_ext >&5
35336
35337 llvm_cv_cxx_visibility_inlines_hidden=no
35338fi
35339
35340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341 CXXFLAGS="$oldcxxflags"
35342 ac_ext=c
35343ac_cpp='$CPP $CPPFLAGS'
35344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35346ac_compiler_gnu=$ac_cv_c_compiler_gnu
35347
35348
35349fi
35350{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35351echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35352if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35353 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35354
35355else
35356 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35357
35358fi
35359
Gordon Henriksenf0915682007-10-02 16:42:22 +000035360
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035361if test "$llvm_cv_link_use_r" = "yes" ; then
35362 RPATH="-Wl,-R"
35363else
35364 RPATH="-Wl,-rpath"
35365fi
35366
35367
35368if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35369 RDYNAMIC="-Wl,-export-dynamic"
35370else
35371 RDYNAMIC=""
35372fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035373
35374
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035375
Reid Spencera773bd52006-08-04 18:18:08 +000035376ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035377
Douglas Gregor1555a232009-06-16 20:12:29 +000035378ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35379
35380ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35381
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035382ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35383
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000035384ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
35385
Chandler Carruth8b67f772009-10-26 01:35:46 +000035386ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035388
Reid Spencera773bd52006-08-04 18:18:08 +000035389ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035390
35391
Reid Spencerea949cf2006-08-16 00:45:38 +000035392ac_config_files="$ac_config_files llvm.spec"
35393
35394
Reid Spencera773bd52006-08-04 18:18:08 +000035395ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035396
35397
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035398ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35399
35400
Reid Spencera773bd52006-08-04 18:18:08 +000035401ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035402
35403
Reid Spencera773bd52006-08-04 18:18:08 +000035404ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035405
Reid Spencera773bd52006-08-04 18:18:08 +000035406ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035407
35408
Reid Spencera773bd52006-08-04 18:18:08 +000035409ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035410
35411
Reid Spencera773bd52006-08-04 18:18:08 +000035412ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035413
35414
Reid Spencera773bd52006-08-04 18:18:08 +000035415ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035416
35417
Reid Spencer8b2e1412006-11-17 03:32:33 +000035418ac_config_commands="$ac_config_commands runtime/Makefile"
35419
35420
Reid Spencera773bd52006-08-04 18:18:08 +000035421ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035422
35423
Reid Spencera773bd52006-08-04 18:18:08 +000035424ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035425
35426
Bill Wendlingf24eb392009-01-04 23:12:30 +000035427ac_config_commands="$ac_config_commands unittests/Makefile"
35428
35429
Reid Spencera773bd52006-08-04 18:18:08 +000035430ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035431
35432
Reid Spencera773bd52006-08-04 18:18:08 +000035433ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035434
35435
Reid Spencera773bd52006-08-04 18:18:08 +000035436ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035437
35438
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035439ac_config_commands="$ac_config_commands bindings/Makefile"
35440
35441
35442ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35443
35444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035445
John Criswell7a73b802003-06-30 21:59:07 +000035446cat >confcache <<\_ACEOF
35447# This file is a shell script that caches the results of configure
35448# tests run on this system so they can be shared between configure
35449# scripts and configure runs, see configure's option --config-cache.
35450# It is not useful on other systems. If it contains results you don't
35451# want to keep, you may remove or edit it.
35452#
35453# config.status only pays attention to the cache file if you give it
35454# the --recheck option to rerun configure.
35455#
John Criswell0c38eaf2003-09-10 15:17:25 +000035456# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035457# loading this file, other *unset* `ac_cv_foo' will be assigned the
35458# following values.
35459
35460_ACEOF
35461
35462# The following way of writing the cache mishandles newlines in values,
35463# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035464# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035465# Ultrix sh set writes to stderr and can't be redirected directly,
35466# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035467(
35468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35469 eval ac_val=\$$ac_var
35470 case $ac_val in #(
35471 *${as_nl}*)
35472 case $ac_var in #(
35473 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35474echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35475 esac
35476 case $ac_var in #(
35477 _ | IFS | as_nl) ;; #(
35478 *) $as_unset $ac_var ;;
35479 esac ;;
35480 esac
35481 done
35482
John Criswell7a73b802003-06-30 21:59:07 +000035483 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35485 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035486 # `set' does not quote correctly, so add quotes (double-quote
35487 # substitution turns \\\\ into \\, and sed turns \\ into \).
35488 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035489 "s/'/'\\\\''/g;
35490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035491 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035492 *)
35493 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035496 esac |
35497 sort
35498) |
John Criswell7a73b802003-06-30 21:59:07 +000035499 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035500 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035501 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035502 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35504 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35506 :end' >>confcache
35507if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35508 if test -w "$cache_file"; then
35509 test "x$cache_file" != "x/dev/null" &&
35510 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35511echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035512 cat confcache >$cache_file
35513 else
Reid Spencera773bd52006-08-04 18:18:08 +000035514 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35515echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035516 fi
35517fi
35518rm -f confcache
35519
35520test "x$prefix" = xNONE && prefix=$ac_default_prefix
35521# Let make expand exec_prefix.
35522test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35523
John Criswell7a73b802003-06-30 21:59:07 +000035524DEFS=-DHAVE_CONFIG_H
35525
John Criswell0c38eaf2003-09-10 15:17:25 +000035526ac_libobjs=
35527ac_ltlibobjs=
35528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35529 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35531 ac_i=`echo "$ac_i" | sed "$ac_script"`
35532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35533 # will be set to the directory where LIBOBJS objects are built.
35534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035536done
35537LIBOBJS=$ac_libobjs
35538
35539LTLIBOBJS=$ac_ltlibobjs
35540
35541
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035542if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35543 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35544Usually this means the macro was only invoked conditionally." >&5
35545echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35546Usually this means the macro was only invoked conditionally." >&2;}
35547 { (exit 1); exit 1; }; }
35548fi
35549if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35550 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35551Usually this means the macro was only invoked conditionally." >&5
35552echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35553Usually this means the macro was only invoked conditionally." >&2;}
35554 { (exit 1); exit 1; }; }
35555fi
John Criswell7a73b802003-06-30 21:59:07 +000035556
35557: ${CONFIG_STATUS=./config.status}
35558ac_clean_files_save=$ac_clean_files
35559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35560{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35561echo "$as_me: creating $CONFIG_STATUS" >&6;}
35562cat >$CONFIG_STATUS <<_ACEOF
35563#! $SHELL
35564# Generated by $as_me.
35565# Run this file to recreate the current configuration.
35566# Compiler output produced by configure, useful for debugging
35567# configure, is in config.log if it exists.
35568
35569debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035570ac_cs_recheck=false
35571ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035572SHELL=\${CONFIG_SHELL-$SHELL}
35573_ACEOF
35574
35575cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035576## --------------------- ##
35577## M4sh Initialization. ##
35578## --------------------- ##
35579
Bill Wendlingebcceee2009-04-18 11:20:33 +000035580# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35582 emulate sh
35583 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35585 # is contrary to our usage. Disable this feature.
35586 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035587 setopt NO_GLOB_SUBST
35588else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035589 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035590fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035591BIN_SH=xpg4; export BIN_SH # for Tru64
35592DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035593
John Criswell7a73b802003-06-30 21:59:07 +000035594
Reid Spencera773bd52006-08-04 18:18:08 +000035595# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035596# Avoid depending upon Character Ranges.
35597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35600as_cr_digits='0123456789'
35601as_cr_alnum=$as_cr_Letters$as_cr_digits
35602
35603# The user is always right.
35604if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035605 echo "#! /bin/sh" >conf$$.sh
35606 echo "exit 0" >>conf$$.sh
35607 chmod +x conf$$.sh
35608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035609 PATH_SEPARATOR=';'
35610 else
35611 PATH_SEPARATOR=:
35612 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035613 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035614fi
35615
Reid Spencera773bd52006-08-04 18:18:08 +000035616# Support unset when possible.
35617if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35618 as_unset=unset
35619else
35620 as_unset=false
35621fi
John Criswell7a73b802003-06-30 21:59:07 +000035622
Reid Spencera773bd52006-08-04 18:18:08 +000035623
35624# IFS
35625# We need space, tab and new line, in precisely that order. Quoting is
35626# there to prevent editors from complaining about space-tab.
35627# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35628# splitting by setting IFS to empty value.)
35629as_nl='
35630'
35631IFS=" "" $as_nl"
35632
35633# Find who we are. Look in the path if we contain no directory separator.
35634case $0 in
35635 *[\\/]* ) as_myself=$0 ;;
35636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035637for as_dir in $PATH
35638do
35639 IFS=$as_save_IFS
35640 test -z "$as_dir" && as_dir=.
35641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35642done
Reid Spencera773bd52006-08-04 18:18:08 +000035643IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035644
Reid Spencera773bd52006-08-04 18:18:08 +000035645 ;;
35646esac
35647# We did not find ourselves, most probably we were run as `sh COMMAND'
35648# in which case we are not to be found in the path.
35649if test "x$as_myself" = x; then
35650 as_myself=$0
35651fi
35652if test ! -f "$as_myself"; then
35653 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35654 { (exit 1); exit 1; }
35655fi
35656
35657# Work around bugs in pre-3.0 UWIN ksh.
35658for as_var in ENV MAIL MAILPATH
35659do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35660done
35661PS1='$ '
35662PS2='> '
35663PS4='+ '
35664
35665# NLS nuisances.
35666for as_var in \
35667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35669 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035670do
Reid Spencera773bd52006-08-04 18:18:08 +000035671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35672 eval $as_var=C; export $as_var
35673 else
35674 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35675 fi
35676done
35677
35678# Required to use basename.
35679if expr a : '\(a\)' >/dev/null 2>&1 &&
35680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35681 as_expr=expr
35682else
35683 as_expr=false
35684fi
35685
35686if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35687 as_basename=basename
35688else
35689 as_basename=false
35690fi
35691
35692
35693# Name of the executable.
35694as_me=`$as_basename -- "$0" ||
35695$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35696 X"$0" : 'X\(//\)$' \| \
35697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35698echo X/"$0" |
35699 sed '/^.*\/\([^/][^/]*\)\/*$/{
35700 s//\1/
35701 q
35702 }
35703 /^X\/\(\/\/\)$/{
35704 s//\1/
35705 q
35706 }
35707 /^X\/\(\/\).*/{
35708 s//\1/
35709 q
35710 }
35711 s/.*/./; q'`
35712
35713# CDPATH.
35714$as_unset CDPATH
35715
35716
35717
John Criswell7a73b802003-06-30 21:59:07 +000035718 as_lineno_1=$LINENO
35719 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035720 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035721 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035722
35723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35724 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035725 # line-number line after each line using $LINENO; the second 'sed'
35726 # does the real work. The second script uses 'N' to pair each
35727 # line-number line with the line containing $LINENO, and appends
35728 # trailing '-' during substitution so that $LINENO is not a special
35729 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035731 # scripts with optimization help from Paolo Bonzini. Blame Lee
35732 # E. McMahon (1931-1989) for sed's syntax. :-)
35733 sed -n '
35734 p
35735 /[$]LINENO/=
35736 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035737 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035738 s/[$]LINENO.*/&-/
35739 t lineno
35740 b
35741 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035742 N
Reid Spencera773bd52006-08-04 18:18:08 +000035743 :loop
35744 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035745 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035746 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035747 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035748 chmod +x "$as_me.lineno" ||
35749 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035750 { (exit 1); exit 1; }; }
35751
35752 # Don't try to exec as it changes $[0], causing all sort of problems
35753 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035754 # original and so on. Autoconf is especially sensitive to this).
35755 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035756 # Exit status is that of the last command.
35757 exit
35758}
35759
35760
Reid Spencera773bd52006-08-04 18:18:08 +000035761if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35762 as_dirname=dirname
35763else
35764 as_dirname=false
35765fi
35766
35767ECHO_C= ECHO_N= ECHO_T=
35768case `echo -n x` in
35769-n*)
35770 case `echo 'x\c'` in
35771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35772 *) ECHO_C='\c';;
35773 esac;;
35774*)
35775 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035776esac
35777
Reid Spencera773bd52006-08-04 18:18:08 +000035778if expr a : '\(a\)' >/dev/null 2>&1 &&
35779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035780 as_expr=expr
35781else
35782 as_expr=false
35783fi
35784
35785rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035786if test -d conf$$.dir; then
35787 rm -f conf$$.dir/conf$$.file
35788else
35789 rm -f conf$$.dir
35790 mkdir conf$$.dir
35791fi
John Criswell7a73b802003-06-30 21:59:07 +000035792echo >conf$$.file
35793if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035794 as_ln_s='ln -s'
35795 # ... but there are two gotchas:
35796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35798 # In both cases, we have to default to `cp -p'.
35799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035800 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035801elif ln conf$$.file conf$$ 2>/dev/null; then
35802 as_ln_s=ln
35803else
35804 as_ln_s='cp -p'
35805fi
Reid Spencera773bd52006-08-04 18:18:08 +000035806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35807rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035808
John Criswell0c38eaf2003-09-10 15:17:25 +000035809if mkdir -p . 2>/dev/null; then
35810 as_mkdir_p=:
35811else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035812 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035813 as_mkdir_p=false
35814fi
35815
Bill Wendlingebcceee2009-04-18 11:20:33 +000035816# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35817# systems may use methods other than mode bits to determine executability.
35818cat >conf$$.file <<_ASEOF
35819#! /bin/sh
35820exit 0
35821_ASEOF
35822chmod +x conf$$.file
35823if test -x conf$$.file >/dev/null 2>&1; then
35824 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035825else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035826 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035827fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035828rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035829
35830# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035831as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035832
35833# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035834as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035835
35836
John Criswell7a73b802003-06-30 21:59:07 +000035837exec 6>&1
35838
Reid Spencera773bd52006-08-04 18:18:08 +000035839# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035840# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035841# values after options handling.
35842ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035843This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035844generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035845
35846 CONFIG_FILES = $CONFIG_FILES
35847 CONFIG_HEADERS = $CONFIG_HEADERS
35848 CONFIG_LINKS = $CONFIG_LINKS
35849 CONFIG_COMMANDS = $CONFIG_COMMANDS
35850 $ $0 $@
35851
Reid Spencera773bd52006-08-04 18:18:08 +000035852on `(hostname || uname -n) 2>/dev/null | sed 1q`
35853"
35854
John Criswell7a73b802003-06-30 21:59:07 +000035855_ACEOF
35856
Reid Spencera773bd52006-08-04 18:18:08 +000035857cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035858# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035859config_files="$ac_config_files"
35860config_headers="$ac_config_headers"
35861config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035862
Reid Spencera773bd52006-08-04 18:18:08 +000035863_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035864
35865cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035866ac_cs_usage="\
35867\`$as_me' instantiates files from templates according to the
35868current configuration.
35869
35870Usage: $0 [OPTIONS] [FILE]...
35871
35872 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035873 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035874 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035875 -d, --debug don't remove temporary files
35876 --recheck update $as_me by reconfiguring in the same conditions
35877 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035878 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035879 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035880 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035881
35882Configuration files:
35883$config_files
35884
35885Configuration headers:
35886$config_headers
35887
John Criswellc764fbc2003-09-06 15:17:13 +000035888Configuration commands:
35889$config_commands
35890
John Criswell7a73b802003-06-30 21:59:07 +000035891Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035892
Reid Spencera773bd52006-08-04 18:18:08 +000035893_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035894cat >>$CONFIG_STATUS <<_ACEOF
35895ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035896llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035897configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035898 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035899
Reid Spencera773bd52006-08-04 18:18:08 +000035900Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035901This config.status script is free software; the Free Software Foundation
35902gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035903
35904ac_pwd='$ac_pwd'
35905srcdir='$srcdir'
35906INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035907_ACEOF
35908
35909cat >>$CONFIG_STATUS <<\_ACEOF
35910# If no file are specified by the user, then we need to provide default
35911# value. By we need to know if files were specified by the user.
35912ac_need_defaults=:
35913while test $# != 0
35914do
35915 case $1 in
35916 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035919 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035920 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035921 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035922 ac_option=$1
35923 ac_optarg=$2
35924 ac_shift=shift
35925 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035926 esac
35927
John Criswell0c38eaf2003-09-10 15:17:25 +000035928 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035929 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35931 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35933 echo "$ac_cs_version"; exit ;;
35934 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035935 debug=: ;;
35936 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035937 $ac_shift
35938 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035939 ac_need_defaults=false;;
35940 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035941 $ac_shift
35942 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035943 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035944 --he | --h)
35945 # Conflict between --help and --header
35946 { echo "$as_me: error: ambiguous option: $1
35947Try \`$0 --help' for more information." >&2
35948 { (exit 1); exit 1; }; };;
35949 --help | --hel | -h )
35950 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35953 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035954
35955 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035956 -*) { echo "$as_me: error: unrecognized option: $1
35957Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035958 { (exit 1); exit 1; }; } ;;
35959
Reid Spencera773bd52006-08-04 18:18:08 +000035960 *) ac_config_targets="$ac_config_targets $1"
35961 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035962
35963 esac
35964 shift
35965done
35966
John Criswell0c38eaf2003-09-10 15:17:25 +000035967ac_configure_extra_args=
35968
35969if $ac_cs_silent; then
35970 exec 6>/dev/null
35971 ac_configure_extra_args="$ac_configure_extra_args --silent"
35972fi
35973
35974_ACEOF
35975cat >>$CONFIG_STATUS <<_ACEOF
35976if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035977 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35978 CONFIG_SHELL=$SHELL
35979 export CONFIG_SHELL
35980 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035981fi
35982
John Criswell7a73b802003-06-30 21:59:07 +000035983_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035984cat >>$CONFIG_STATUS <<\_ACEOF
35985exec 5>>config.log
35986{
35987 echo
35988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35989## Running $as_me. ##
35990_ASBOX
35991 echo "$ac_log"
35992} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035993
Reid Spencera773bd52006-08-04 18:18:08 +000035994_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035995cat >>$CONFIG_STATUS <<_ACEOF
35996#
Reid Spencera773bd52006-08-04 18:18:08 +000035997# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035998#
Reid Spencerc0682832005-02-24 19:05:19 +000035999llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000036000
36001_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036002
John Criswell7a73b802003-06-30 21:59:07 +000036003cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036004
36005# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000036006for ac_config_target in $ac_config_targets
36007do
Reid Spencera773bd52006-08-04 18:18:08 +000036008 case $ac_config_target in
36009 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000036010 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36011 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036012 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036013 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000036014 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036015 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000036016 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036017 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036018 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036019 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36020 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36021 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36022 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36023 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36024 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036025 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036026 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36027 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036028 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036029 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36030 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36031 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036032 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36033 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036034
John Criswell7a73b802003-06-30 21:59:07 +000036035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36036echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36037 { (exit 1); exit 1; }; };;
36038 esac
36039done
36040
Reid Spencera773bd52006-08-04 18:18:08 +000036041
John Criswell7a73b802003-06-30 21:59:07 +000036042# If the user did not use the arguments to specify the items to instantiate,
36043# then the envvar interface is used. Set only those that are not.
36044# We use the long form for the default assignment because of an extremely
36045# bizarre bug on SunOS 4.1.3.
36046if $ac_need_defaults; then
36047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000036049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000036050fi
36051
John Criswell0c38eaf2003-09-10 15:17:25 +000036052# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000036053# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000036054# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000036055# Hook for its removal unless debugging.
36056# Note that there is a small window in which the directory will not be cleaned:
36057# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000036058$debug ||
36059{
Reid Spencera773bd52006-08-04 18:18:08 +000036060 tmp=
36061 trap 'exit_status=$?
36062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36063' 0
John Criswell7a73b802003-06-30 21:59:07 +000036064 trap '{ (exit 1); exit 1; }' 1 2 13 15
36065}
John Criswell7a73b802003-06-30 21:59:07 +000036066# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000036067
John Criswell7a73b802003-06-30 21:59:07 +000036068{
Reid Spencera773bd52006-08-04 18:18:08 +000036069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000036070 test -n "$tmp" && test -d "$tmp"
36071} ||
36072{
Reid Spencera773bd52006-08-04 18:18:08 +000036073 tmp=./conf$$-$RANDOM
36074 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000036075} ||
36076{
John Criswell0c38eaf2003-09-10 15:17:25 +000036077 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000036078 { (exit 1); exit 1; }
36079}
36080
John Criswell7a73b802003-06-30 21:59:07 +000036081#
Reid Spencera773bd52006-08-04 18:18:08 +000036082# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036083#
36084
36085# No need to generate the scripts if there are no CONFIG_FILES.
36086# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036087if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036088
36089_ACEOF
36090
Reid Spencera773bd52006-08-04 18:18:08 +000036091
36092
36093ac_delim='%!_!# '
36094for ac_last_try in false false false false false :; do
36095 cat >conf$$subs.sed <<_ACEOF
36096SHELL!$SHELL$ac_delim
36097PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36098PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36099PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36100PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36101PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36102PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36103exec_prefix!$exec_prefix$ac_delim
36104prefix!$prefix$ac_delim
36105program_transform_name!$program_transform_name$ac_delim
36106bindir!$bindir$ac_delim
36107sbindir!$sbindir$ac_delim
36108libexecdir!$libexecdir$ac_delim
36109datarootdir!$datarootdir$ac_delim
36110datadir!$datadir$ac_delim
36111sysconfdir!$sysconfdir$ac_delim
36112sharedstatedir!$sharedstatedir$ac_delim
36113localstatedir!$localstatedir$ac_delim
36114includedir!$includedir$ac_delim
36115oldincludedir!$oldincludedir$ac_delim
36116docdir!$docdir$ac_delim
36117infodir!$infodir$ac_delim
36118htmldir!$htmldir$ac_delim
36119dvidir!$dvidir$ac_delim
36120pdfdir!$pdfdir$ac_delim
36121psdir!$psdir$ac_delim
36122libdir!$libdir$ac_delim
36123localedir!$localedir$ac_delim
36124mandir!$mandir$ac_delim
36125DEFS!$DEFS$ac_delim
36126ECHO_C!$ECHO_C$ac_delim
36127ECHO_N!$ECHO_N$ac_delim
36128ECHO_T!$ECHO_T$ac_delim
36129LIBS!$LIBS$ac_delim
36130build_alias!$build_alias$ac_delim
36131host_alias!$host_alias$ac_delim
36132target_alias!$target_alias$ac_delim
36133LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36134subdirs!$subdirs$ac_delim
36135build!$build$ac_delim
36136build_cpu!$build_cpu$ac_delim
36137build_vendor!$build_vendor$ac_delim
36138build_os!$build_os$ac_delim
36139host!$host$ac_delim
36140host_cpu!$host_cpu$ac_delim
36141host_vendor!$host_vendor$ac_delim
36142host_os!$host_os$ac_delim
36143target!$target$ac_delim
36144target_cpu!$target_cpu$ac_delim
36145target_vendor!$target_vendor$ac_delim
36146target_os!$target_os$ac_delim
36147OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036148HOST_OS!$HOST_OS$ac_delim
36149TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036150LINKALL!$LINKALL$ac_delim
36151NOLINKALL!$NOLINKALL$ac_delim
36152LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36153LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036154ARCH!$ARCH$ac_delim
36155ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036156CC!$CC$ac_delim
36157CFLAGS!$CFLAGS$ac_delim
36158LDFLAGS!$LDFLAGS$ac_delim
36159CPPFLAGS!$CPPFLAGS$ac_delim
36160ac_ct_CC!$ac_ct_CC$ac_delim
36161EXEEXT!$EXEEXT$ac_delim
36162OBJEXT!$OBJEXT$ac_delim
36163CPP!$CPP$ac_delim
36164GREP!$GREP$ac_delim
36165EGREP!$EGREP$ac_delim
36166LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36167BUILD_CC!$BUILD_CC$ac_delim
36168BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036169BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036170CVSBUILD!$CVSBUILD$ac_delim
36171ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036172ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036173DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036174ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36175EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036176DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036177DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036178JIT!$JIT$ac_delim
36179TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36180ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36181ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036182ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036183TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036184LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36185LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036186LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036187LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036188ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036189OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036190EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036191BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036192ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036193_ACEOF
36194
36195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36196 break
36197 elif $ac_last_try; then
36198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36199echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36200 { (exit 1); exit 1; }; }
36201 else
36202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036203 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036204done
36205
36206ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36207if test -n "$ac_eof"; then
36208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36209 ac_eof=`expr $ac_eof + 1`
36210fi
36211
36212cat >>$CONFIG_STATUS <<_ACEOF
36213cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36215_ACEOF
36216sed '
36217s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36218s/^/s,@/; s/!/@,|#_!!_#|/
36219:n
36220t n
36221s/'"$ac_delim"'$/,g/; t
36222s/$/\\/; p
36223N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36224' >>$CONFIG_STATUS <conf$$subs.sed
36225rm -f conf$$subs.sed
36226cat >>$CONFIG_STATUS <<_ACEOF
36227CEOF$ac_eof
36228_ACEOF
36229
36230
36231ac_delim='%!_!# '
36232for ac_last_try in false false false false false :; do
36233 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036234ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036235CXX!$CXX$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036236CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036237ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036238NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036239ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036240LN_S!$LN_S$ac_delim
36241CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036242CP!$CP$ac_delim
36243DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036244FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036245MKDIR!$MKDIR$ac_delim
36246MV!$MV$ac_delim
36247RANLIB!$RANLIB$ac_delim
36248RM!$RM$ac_delim
36249SED!$SED$ac_delim
36250TAR!$TAR$ac_delim
36251BINPWD!$BINPWD$ac_delim
36252GRAPHVIZ!$GRAPHVIZ$ac_delim
36253DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036254FDP!$FDP$ac_delim
36255NEATO!$NEATO$ac_delim
36256TWOPI!$TWOPI$ac_delim
36257CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036258GV!$GV$ac_delim
36259DOTTY!$DOTTY$ac_delim
36260PERL!$PERL$ac_delim
36261HAVE_PERL!$HAVE_PERL$ac_delim
36262INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36263INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36264INSTALL_DATA!$INSTALL_DATA$ac_delim
36265BZIP2!$BZIP2$ac_delim
36266DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036267GROFF!$GROFF$ac_delim
36268GZIP!$GZIP$ac_delim
36269POD2HTML!$POD2HTML$ac_delim
36270POD2MAN!$POD2MAN$ac_delim
36271RUNTEST!$RUNTEST$ac_delim
36272TCLSH!$TCLSH$ac_delim
36273ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036274OCAMLC!$OCAMLC$ac_delim
36275OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036276OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036277OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036278GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036279INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36280INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36281CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36282CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36283LIBADD_DL!$LIBADD_DL$ac_delim
36284ECHO!$ECHO$ac_delim
36285AR!$AR$ac_delim
36286STRIP!$STRIP$ac_delim
36287CXXCPP!$CXXCPP$ac_delim
36288F77!$F77$ac_delim
36289FFLAGS!$FFLAGS$ac_delim
36290ac_ct_F77!$ac_ct_F77$ac_delim
36291LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036292LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36293LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036294LLVMGCC!$LLVMGCC$ac_delim
36295LLVMGXX!$LLVMGXX$ac_delim
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036296NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36297NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036298USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036299USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036300HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036301HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036302ALLOCA!$ALLOCA$ac_delim
36303MMAP_FILE!$MMAP_FILE$ac_delim
36304LLVMCC1!$LLVMCC1$ac_delim
36305LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36306LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036307LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036308LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36309LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036310LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036311SHLIBEXT!$SHLIBEXT$ac_delim
36312LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36313LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36314LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36315LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36316LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36317LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36318LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36319LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36320LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36321LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036322BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36323ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036324OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036325ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036326RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036327RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036328LIBOBJS!$LIBOBJS$ac_delim
36329LTLIBOBJS!$LTLIBOBJS$ac_delim
36330_ACEOF
36331
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
Reid Spencera773bd52006-08-04 18:18:08 +000036333 break
36334 elif $ac_last_try; then
36335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36336echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36337 { (exit 1); exit 1; }; }
36338 else
36339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36340 fi
36341done
36342
36343ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36344if test -n "$ac_eof"; then
36345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36346 ac_eof=`expr $ac_eof + 1`
36347fi
36348
36349cat >>$CONFIG_STATUS <<_ACEOF
36350cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036352_ACEOF
36353sed '
36354s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36355s/^/s,@/; s/!/@,|#_!!_#|/
36356:n
36357t n
36358s/'"$ac_delim"'$/,g/; t
36359s/$/\\/; p
36360N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36361' >>$CONFIG_STATUS <conf$$subs.sed
36362rm -f conf$$subs.sed
36363cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036364CEOF$ac_eof
36365_ACEOF
36366
36367
36368# VPATH may cause trouble with some makes, so we remove $(srcdir),
36369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36370# trailing colons and then remove the whole line if VPATH becomes empty
36371# (actually we leave an empty line to preserve line numbers).
36372if test "x$srcdir" = x.; then
36373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36374s/:*\$(srcdir):*/:/
36375s/:*\${srcdir}:*/:/
36376s/:*@srcdir@:*/:/
36377s/^\([^=]*=[ ]*\):*/\1/
36378s/:*$//
36379s/^[^=]*=[ ]*$//
36380}'
36381fi
36382
36383cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036384fi # test -n "$CONFIG_FILES"
36385
Reid Spencera773bd52006-08-04 18:18:08 +000036386
36387for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36388do
36389 case $ac_tag in
36390 :[FHLC]) ac_mode=$ac_tag; continue;;
36391 esac
36392 case $ac_mode$ac_tag in
36393 :[FHL]*:*);;
36394 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36395echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36396 { (exit 1); exit 1; }; };;
36397 :[FH]-) ac_tag=-:-;;
36398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36399 esac
36400 ac_save_IFS=$IFS
36401 IFS=:
36402 set x $ac_tag
36403 IFS=$ac_save_IFS
36404 shift
36405 ac_file=$1
36406 shift
36407
36408 case $ac_mode in
36409 :L) ac_source=$1;;
36410 :[FH])
36411 ac_file_inputs=
36412 for ac_f
36413 do
36414 case $ac_f in
36415 -) ac_f="$tmp/stdin";;
36416 *) # Look for the file first in the build tree, then in the source tree
36417 # (if the path is not absolute). The absolute path cannot be DOS-style,
36418 # because $ac_f cannot contain `:'.
36419 test -f "$ac_f" ||
36420 case $ac_f in
36421 [\\/$]*) false;;
36422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36423 esac ||
36424 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36425echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36426 { (exit 1); exit 1; }; };;
36427 esac
36428 ac_file_inputs="$ac_file_inputs $ac_f"
36429 done
36430
36431 # Let's still pretend it is `configure' which instantiates (i.e., don't
36432 # use $as_me), people would be surprised to read:
36433 # /* config.h. Generated by config.status. */
36434 configure_input="Generated from "`IFS=:
36435 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36436 if test x"$ac_file" != x-; then
36437 configure_input="$ac_file. $configure_input"
36438 { echo "$as_me:$LINENO: creating $ac_file" >&5
36439echo "$as_me: creating $ac_file" >&6;}
36440 fi
36441
36442 case $ac_tag in
36443 *:-:* | *:-) cat >"$tmp/stdin";;
36444 esac
36445 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036446 esac
36447
Reid Spencera773bd52006-08-04 18:18:08 +000036448 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036450 X"$ac_file" : 'X\(//\)[^/]' \| \
36451 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036453echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36455 s//\1/
36456 q
36457 }
36458 /^X\(\/\/\)[^/].*/{
36459 s//\1/
36460 q
36461 }
36462 /^X\(\/\/\)$/{
36463 s//\1/
36464 q
36465 }
36466 /^X\(\/\).*/{
36467 s//\1/
36468 q
36469 }
36470 s/.*/./; q'`
36471 { as_dir="$ac_dir"
36472 case $as_dir in #(
36473 -*) as_dir=./$as_dir;;
36474 esac
36475 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036476 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036477 while :; do
36478 case $as_dir in #(
36479 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36480 *) as_qdir=$as_dir;;
36481 esac
36482 as_dirs="'$as_qdir' $as_dirs"
36483 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036485 X"$as_dir" : 'X\(//\)[^/]' \| \
36486 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036487 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036488echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36490 s//\1/
36491 q
36492 }
36493 /^X\(\/\/\)[^/].*/{
36494 s//\1/
36495 q
36496 }
36497 /^X\(\/\/\)$/{
36498 s//\1/
36499 q
36500 }
36501 /^X\(\/\).*/{
36502 s//\1/
36503 q
36504 }
36505 s/.*/./; q'`
36506 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036507 done
Reid Spencera773bd52006-08-04 18:18:08 +000036508 test -z "$as_dirs" || eval "mkdir $as_dirs"
36509 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36510echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036511 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036512 ac_builddir=.
36513
Reid Spencera773bd52006-08-04 18:18:08 +000036514case "$ac_dir" in
36515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36516*)
John Criswell7a73b802003-06-30 21:59:07 +000036517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036518 # A ".." for each directory in $ac_dir_suffix.
36519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36520 case $ac_top_builddir_sub in
36521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36523 esac ;;
36524esac
36525ac_abs_top_builddir=$ac_pwd
36526ac_abs_builddir=$ac_pwd$ac_dir_suffix
36527# for backward compatibility:
36528ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036529
36530case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036531 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036532 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036533 ac_top_srcdir=$ac_top_builddir_sub
36534 ac_abs_top_srcdir=$ac_pwd ;;
36535 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036536 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036537 ac_top_srcdir=$srcdir
36538 ac_abs_top_srcdir=$srcdir ;;
36539 *) # Relative name.
36540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36541 ac_top_srcdir=$ac_top_build_prefix$srcdir
36542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036543esac
Reid Spencera773bd52006-08-04 18:18:08 +000036544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036545
John Criswell7a73b802003-06-30 21:59:07 +000036546
Reid Spencera773bd52006-08-04 18:18:08 +000036547 case $ac_mode in
36548 :F)
36549 #
36550 # CONFIG_FILE
36551 #
John Criswell7a73b802003-06-30 21:59:07 +000036552
36553 case $INSTALL in
36554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036556 esac
John Criswell7a73b802003-06-30 21:59:07 +000036557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036558
36559cat >>$CONFIG_STATUS <<\_ACEOF
36560# If the template does not know about datarootdir, expand it.
36561# FIXME: This hack should be removed a few years after 2.60.
36562ac_datarootdir_hack=; ac_datarootdir_seen=
36563
36564case `sed -n '/datarootdir/ {
36565 p
36566 q
36567}
36568/@datadir@/p
36569/@docdir@/p
36570/@infodir@/p
36571/@localedir@/p
36572/@mandir@/p
36573' $ac_file_inputs` in
36574*datarootdir*) ac_datarootdir_seen=yes;;
36575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36576 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36577echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36578_ACEOF
36579cat >>$CONFIG_STATUS <<_ACEOF
36580 ac_datarootdir_hack='
36581 s&@datadir@&$datadir&g
36582 s&@docdir@&$docdir&g
36583 s&@infodir@&$infodir&g
36584 s&@localedir@&$localedir&g
36585 s&@mandir@&$mandir&g
36586 s&\\\${datarootdir}&$datarootdir&g' ;;
36587esac
36588_ACEOF
36589
36590# Neutralize VPATH when `$srcdir' = `.'.
36591# Shell code in configure.ac might set extrasub.
36592# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036593cat >>$CONFIG_STATUS <<_ACEOF
36594 sed "$ac_vpsub
36595$extrasub
36596_ACEOF
36597cat >>$CONFIG_STATUS <<\_ACEOF
36598:t
36599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036600s&@configure_input@&$configure_input&;t t
36601s&@top_builddir@&$ac_top_builddir_sub&;t t
36602s&@srcdir@&$ac_srcdir&;t t
36603s&@abs_srcdir@&$ac_abs_srcdir&;t t
36604s&@top_srcdir@&$ac_top_srcdir&;t t
36605s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36606s&@builddir@&$ac_builddir&;t t
36607s&@abs_builddir@&$ac_abs_builddir&;t t
36608s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36609s&@INSTALL@&$ac_INSTALL&;t t
36610$ac_datarootdir_hack
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000036611" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036612
Reid Spencera773bd52006-08-04 18:18:08 +000036613test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36616 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36617which seems to be undefined. Please make sure it is defined." >&5
36618echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36619which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036620
Reid Spencera773bd52006-08-04 18:18:08 +000036621 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036622 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036623 -) cat "$tmp/out"; rm -f "$tmp/out";;
36624 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036625 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036626 ;;
36627 :H)
36628 #
36629 # CONFIG_HEADER
36630 #
John Criswell7a73b802003-06-30 21:59:07 +000036631_ACEOF
36632
Reid Spencera773bd52006-08-04 18:18:08 +000036633# Transform confdefs.h into a sed script `conftest.defines', that
36634# substitutes the proper values into config.h.in to produce config.h.
36635rm -f conftest.defines conftest.tail
36636# First, append a space to every undef/define line, to ease matching.
36637echo 's/$/ /' >conftest.defines
36638# Then, protect against being on the right side of a sed subst, or in
36639# an unquoted here document, in config.status. If some macros were
36640# called several times there might be several #defines for the same
36641# symbol, which is useless. But do not sort them, since the last
36642# AC_DEFINE must be honored.
36643ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36644# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36645# NAME is the cpp macro being defined, VALUE is the value it is being given.
36646# PARAMS is the parameter list in the macro definition--in most cases, it's
36647# just an empty string.
36648ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36649ac_dB='\\)[ (].*,\\1define\\2'
36650ac_dC=' '
36651ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036652
Reid Spencera773bd52006-08-04 18:18:08 +000036653uniq confdefs.h |
36654 sed -n '
36655 t rset
36656 :rset
36657 s/^[ ]*#[ ]*define[ ][ ]*//
36658 t ok
36659 d
36660 :ok
36661 s/[\\&,]/\\&/g
36662 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36663 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36664 ' >>conftest.defines
36665
36666# Remove the space that was appended to ease matching.
36667# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036668# example, in the case of _POSIX_SOURCE, which is predefined and required
36669# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036670# (The regexp can be short, since the line contains either #define or #undef.)
36671echo 's/ $//
36672s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036673
Reid Spencera773bd52006-08-04 18:18:08 +000036674# Break up conftest.defines:
36675ac_max_sed_lines=50
36676
36677# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36678# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36679# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36680# et cetera.
36681ac_in='$ac_file_inputs'
36682ac_out='"$tmp/out1"'
36683ac_nxt='"$tmp/out2"'
36684
36685while :
John Criswell7a73b802003-06-30 21:59:07 +000036686do
Reid Spencera773bd52006-08-04 18:18:08 +000036687 # Write a here document:
36688 cat >>$CONFIG_STATUS <<_ACEOF
36689 # First, check the format of the line:
36690 cat >"\$tmp/defines.sed" <<\\CEOF
36691/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36692/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36693b
36694:def
36695_ACEOF
36696 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036697 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036698 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36699 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36700 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36701 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036702 rm -f conftest.defines
36703 mv conftest.tail conftest.defines
36704done
Reid Spencera773bd52006-08-04 18:18:08 +000036705rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036706
Reid Spencera773bd52006-08-04 18:18:08 +000036707echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036708cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036709 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036710 echo "/* $configure_input */" >"$tmp/config.h"
36711 cat "$ac_result" >>"$tmp/config.h"
36712 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36714echo "$as_me: $ac_file is unchanged" >&6;}
36715 else
John Criswell7a73b802003-06-30 21:59:07 +000036716 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036717 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036718 fi
36719 else
Reid Spencera773bd52006-08-04 18:18:08 +000036720 echo "/* $configure_input */"
36721 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036722 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036723 rm -f "$tmp/out12"
36724 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036725
Reid Spencera773bd52006-08-04 18:18:08 +000036726 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36727echo "$as_me: executing $ac_file commands" >&6;}
36728 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036729 esac
John Criswell7a73b802003-06-30 21:59:07 +000036730
Reid Spencera773bd52006-08-04 18:18:08 +000036731
36732 case $ac_file$ac_mode in
36733 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036735 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036737 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036739 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036741 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036743 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036745 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036746 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036747 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036749 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036750 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036751 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036752 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036753 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036754 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036755 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036756 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036757 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036758 ${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 +000036759
36760 esac
36761done # for ac_tag
36762
John Criswell7a73b802003-06-30 21:59:07 +000036763
36764{ (exit 0); exit 0; }
36765_ACEOF
36766chmod +x $CONFIG_STATUS
36767ac_clean_files=$ac_clean_files_save
36768
36769
36770# configure is writing to config.log, and then calls config.status.
36771# config.status does its own redirection, appending to config.log.
36772# Unfortunately, on DOS this fails, as config.log is still kept open
36773# by configure, so config.status won't be able to write to it; its
36774# output is simply discarded. So we exec the FD to /dev/null,
36775# effectively closing config.log, so it can be properly (re)opened and
36776# appended to by config.status. When coming back to configure, we
36777# need to make the FD available again.
36778if test "$no_create" != yes; then
36779 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036780 ac_config_status_args=
36781 test "$silent" = yes &&
36782 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036783 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036785 exec 5>>config.log
36786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36787 # would make configure fail if this is the last instruction.
36788 $ac_cs_success || { (exit 1); exit 1; }
36789fi
36790
John Criswell12399a12003-09-30 15:55:44 +000036791#
36792# CONFIG_SUBDIRS section.
36793#
36794if test "$no_recursion" != yes; then
36795
36796 # Remove --cache-file and --srcdir arguments so they do not pile up.
36797 ac_sub_configure_args=
36798 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036799 eval "set x $ac_configure_args"
36800 shift
36801 for ac_arg
36802 do
John Criswell12399a12003-09-30 15:55:44 +000036803 if test -n "$ac_prev"; then
36804 ac_prev=
36805 continue
36806 fi
36807 case $ac_arg in
36808 -cache-file | --cache-file | --cache-fil | --cache-fi \
36809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36810 ac_prev=cache_file ;;
36811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36813 | --c=*)
36814 ;;
36815 --config-cache | -C)
36816 ;;
36817 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36818 ac_prev=srcdir ;;
36819 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36820 ;;
36821 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36822 ac_prev=prefix ;;
36823 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036825 *)
36826 case $ac_arg in
36827 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36828 esac
36829 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036830 esac
36831 done
36832
36833 # Always prepend --prefix to ensure using the same prefix
36834 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036835 ac_arg="--prefix=$prefix"
36836 case $ac_arg in
36837 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36838 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036839 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036840
36841 ac_popdir=`pwd`
36842 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36843
36844 # Do not complain, so a configure script can configure whichever
36845 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036846 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036847
Reid Spencera773bd52006-08-04 18:18:08 +000036848 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36849 echo "$as_me:$LINENO: $ac_msg" >&5
36850 echo "$ac_msg" >&6
36851 { as_dir="$ac_dir"
36852 case $as_dir in #(
36853 -*) as_dir=./$as_dir;;
36854 esac
36855 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036856 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036857 while :; do
36858 case $as_dir in #(
36859 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36860 *) as_qdir=$as_dir;;
36861 esac
36862 as_dirs="'$as_qdir' $as_dirs"
36863 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036865 X"$as_dir" : 'X\(//\)[^/]' \| \
36866 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036868echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36870 s//\1/
36871 q
36872 }
36873 /^X\(\/\/\)[^/].*/{
36874 s//\1/
36875 q
36876 }
36877 /^X\(\/\/\)$/{
36878 s//\1/
36879 q
36880 }
36881 /^X\(\/\).*/{
36882 s//\1/
36883 q
36884 }
36885 s/.*/./; q'`
36886 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036887 done
Reid Spencera773bd52006-08-04 18:18:08 +000036888 test -z "$as_dirs" || eval "mkdir $as_dirs"
36889 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36890echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036891 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036892 ac_builddir=.
36893
Reid Spencera773bd52006-08-04 18:18:08 +000036894case "$ac_dir" in
36895.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36896*)
John Criswell12399a12003-09-30 15:55:44 +000036897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036898 # A ".." for each directory in $ac_dir_suffix.
36899 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36900 case $ac_top_builddir_sub in
36901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36903 esac ;;
36904esac
36905ac_abs_top_builddir=$ac_pwd
36906ac_abs_builddir=$ac_pwd$ac_dir_suffix
36907# for backward compatibility:
36908ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036909
36910case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036911 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036912 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036913 ac_top_srcdir=$ac_top_builddir_sub
36914 ac_abs_top_srcdir=$ac_pwd ;;
36915 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036916 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036917 ac_top_srcdir=$srcdir
36918 ac_abs_top_srcdir=$srcdir ;;
36919 *) # Relative name.
36920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36921 ac_top_srcdir=$ac_top_build_prefix$srcdir
36922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036923esac
Reid Spencera773bd52006-08-04 18:18:08 +000036924ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036925
36926
Reid Spencera773bd52006-08-04 18:18:08 +000036927 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036928
36929 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036930 if test -f "$ac_srcdir/configure.gnu"; then
36931 ac_sub_configure=$ac_srcdir/configure.gnu
36932 elif test -f "$ac_srcdir/configure"; then
36933 ac_sub_configure=$ac_srcdir/configure
36934 elif test -f "$ac_srcdir/configure.in"; then
36935 # This should be Cygnus configure.
36936 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036937 else
36938 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36939echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36940 ac_sub_configure=
36941 fi
36942
36943 # The recursion is here.
36944 if test -n "$ac_sub_configure"; then
36945 # Make the cache file name correct relative to the subdirectory.
36946 case $cache_file in
36947 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036948 *) # Relative name.
36949 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036950 esac
36951
Reid Spencera773bd52006-08-04 18:18:08 +000036952 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36953echo "$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 +000036954 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036955 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36956 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036957 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036958echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36959 { (exit 1); exit 1; }; }
36960 fi
36961
Reid Spencera773bd52006-08-04 18:18:08 +000036962 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036963 done
36964fi
36965